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 [2018/05/30 23:08]
91.162.188.175 [Bluetooth Module]
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. 
  
-[[image 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
Line 114: Line 114:
  
 Connect the female DuPont cables to the 4 UART pins on the Smoothie (next to the USB connector - labelled TX RX V+ GND) and the corresponding pins on the HC-05 breakout and power up the board. Connect the female DuPont cables to the 4 UART pins on the Smoothie (next to the USB connector - labelled TX RX V+ GND) and the corresponding pins on the HC-05 breakout and power up the board.
- 
-[[image https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xap1/v/t1.0-9/10897898_10204780222321017_8021442161976629880_n.jpg?oh=e2c9870f930e48bbec533cf3cb360656&oe=5531704E&__gda__=1428364827_4c5597816c92e509af88f2ee8b5cdec4]] 
- 
-[[image https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/10906575_10204780222361018_7648431575382254051_n.jpg?oh=f3cad5b7fe6a825bdb39a70bc2b6c031&oe=55297F5F&__gda__=1428404041_9d1670126921306950467e62fab75e14]] 
- 
-[[image https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-xfp1/v/t1.0-9/10704043_10204780222401019_5666862332661991540_n.jpg?oh=1c0633c50841ec4f337771c8cc704da8&oe=55344D0D&__gda__=1429588840_efa18a8777557a928da6ae640ba56761]] 
  
 === Connect: === Connect: