Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
bluetooth-serial [2021/02/20 15:24]
arthur
bluetooth-serial [2021/02/21 21:19]
arthur
Line 15: Line 15:
 You can also use a BLE (Bluetooth Low Energy) or BT4.0 device like the HC-10, but you will need a comms device that talks BLE/BT4.0 and not many computers do (a recent-model Apple Macbook Pro/Air will be able to, my recent-model HP doesn't), so by sticking to the HC-05 you can be sure of being compatible with the majority of devices.  You can also use a BLE (Bluetooth Low Energy) or BT4.0 device like the HC-10, but you will need a comms device that talks BLE/BT4.0 and not many computers do (a recent-model Apple Macbook Pro/Air will be able to, my recent-model HP doesn't), so by sticking to the HC-05 you can be sure of being compatible with the majority of devices. 
  
-{{https://web.archive.org/web/20161013235353im_/http://gd1.alicdn.com/bao/uploaded/i1/14767031049461097/T1RRyXXzXkXXXXXXXX_!!0-item_pic.jpg_400x400.jpg_.webp}}+{{/_media/external/https.web.archive.org.web.20161013235353im.http.gd1.alicdn.com.bao.uploaded.i1.14767031049461097.t1rryxxzxkxxxxxxxx.0.item.pic.jpg.400x400.jpg.webp}}
  
 I prefer the CZ over the JY for a few reasons – it is really small, it is really well made, it has the KEY (P34, state pin) already broken out and it does level shifting of all the pins back to the 3.3V required by the HC module, unlike some of the other breakouts. I prefer the CZ over the JY for a few reasons – it is really small, it is really well made, it has the KEY (P34, state pin) already broken out and it does level shifting of all the pins back to the 3.3V required by the HC module, unlike some of the other breakouts.
Line 42: Line 42:
 === Arduino sketch: to program the HC-05 === Arduino sketch: to program the HC-05
  
-<code>+<code cpp>
  
 // SERIAL LOOP SKETCH FOR COMMUNICATING WITH A BLUETOOTH SPP MODULE // SERIAL LOOP SKETCH FOR COMMUNICATING WITH A BLUETOOTH SPP MODULE