DSD TECH SH-HC-08 Bluetooth 4.0 BLE Slave Module to UART Transceiver for Arduino Compatible with iOS

£9.9
FREE Shipping

DSD TECH SH-HC-08 Bluetooth 4.0 BLE Slave Module to UART Transceiver for Arduino Compatible with iOS

DSD TECH SH-HC-08 Bluetooth 4.0 BLE Slave Module to UART Transceiver for Arduino Compatible with iOS

RRP: £99
Price: £9.9
£9.9 FREE Shipping

In stock

We accept the following payment methods

Description

Using something such as a HC05, the device connects to the PC or Android with no issue, an 'AT' command always results in 'OK', all commands work such as being able to rename the device etc - happy days. Enter "AT+MODE=2", it will enter a low power consumption mode2. The module entered the deep sleep state. It can not be discovered by master module. When you connect, you can send arbitrary data to awaken the module, and then it can send and receive data once connected .

B. The Slave broadcasts data to the Master, supporting one-to-many single communication (in theory, one slave can send to an unlimited number of master. prevThrottle = 49 ; 14int prevSteering = 49 ; 15int throttle , 16 steering , sliderVal , sliderId , button ; 17int automotive = 3 ; // starting in steering 18 modeThe module uses the CC2540F256 chip from TI, configured with 256K bytes of space, supporting the AT command. For need, the users can change the role (master or slave mode), baud rate of serial port, device name and other parameters, very flexible use.

Mode 1/2/3 are available through the UART port to send 1 byte data to wake up, but front few bytes of data may be garbled after wake up. Therefore we recommend sending 10 bytes hexadecimal code of "0xFF, 0xFF, 0xFF, 0xFF, 0xFF,0xFF, 0xFF, 0xFF, 0xFF, 0xFF" to awaken the module, avoiding the front several data byte might be garbled. Since then, modules work on the full speed mode, the UART port can be normal to send and receive data. Therefore, it is recommended to send a 10-byte hexadecimal code "0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF" to wake up the module, avoiding the first few garbled bytes. If the module is in the connected state, then after awakening, it will remain in the full speed mode. Before connection, module will return the original power mode. The master/slave module "CONT=1" is mainly used for transmitting broadcast data. Sending broadcast data from the slave module, the master module will receive the corresponding data through the serial output.

Display Text on an LCD with Bluetooth Using IOS and Android

NOTE: When you upload your code, don’t connect the Arduino RX pin. If it is connected during upload, the code won’t work. After uploading you must reconnect it for the LED to work. Code explanation In the experiment, we don’t set the AT command for Bluetooth module, but directly use it together with UNO R3. Bluetooth is default by Slave, default baud rate to 9600. When using, first upload the test code to UNO R3, then connect the Bluetooth to UNO R3, use phone APP and Bluetooth module to achieve the communication function between your phone and UNO R3 control board. The module will restart automatically, and a new operation can be performed after restarting for 200ms! Note: AUST defaults by 20 seconds. In the MODE1 low-power mode, since the mode is discoverable and connectable, AUST can be set to a minimum of 1 second to save power.

Serial . print ( "Slider ID: " ) ; 94 Serial . print (sliderId ) ; 95 96 Serial . print ( "\ Value: " ) ; 97 Serial . println (sliderVal ) ; 98 acc = 99 map (sliderVal , 0 , 200 , 80 , 255 ) ; 100 } 101 // changing between steering and auto 102 mode I have attached the manual for the HC-08 module but as with most cheap modules, it's mounted on another board with some power modulation hardware to allow you to use up to 5.5v. Note: The instruction AT+AINT replaces AT+TIME of V2.4 version to set the broadcasting cycle, which can set the interval TIME more accurate. Upload the above code to UNO R3, then connect well the Bluetooth, powered up, you should see the red led on Bluetooth module flash.

2 Comments

Serial.print("Throttle: "); Serial.print(throttle); Serial.print("\ Steering: "); Serial.println(steering); Since the Master is fixed for 2s scanning, the broadcast data received from the same Slave can be output only once in 2s. Moreover, this mode is characterized by "continuous broadcast from the Slave and continuous scanning by the Master", so the Master will continuously output data.

If at this moment, for Master, AT+CONT=1, and successfully scan the broadcast from the Slave, the serial port will output: 1234567890AB I'm betting the above is nonsense, and BLE Characteristic FFE1 particularly is irrelevant technobabble. In the light of what you have done , by successfully using a serial connection, the sort of thing everybody knows, loves, and understands, I think you need to be a lot more forthcoming about what you want to do in addition. Finally, about connecting. I have my SH-HC-08 plugged into an Arduino-centered circuit with a little software that will simply send a word of information when it receives a one-byte request for it.steering >= 10 ) { 242 turn = map (steering , 10 , 40 , 0 , acc ) ; 243 analogWrite ( ENA , 244 turn ) ; //decrease 245 analogWrite ( ENB , acc ) ; //hold 246 forward ( ) ; 247 248 } 249 if (steering >= 60 && steering <= 90 ) { 250 turn = map (steering , 251 60 , 90 , acc , 0 ) ; 252 analogWrite ( ENA , acc ) ; //hold 253 analogWrite ( ENB , 254 turn ) ; //decrease 255 forward ( ) ; 256 } 257 if (steering < 10 ) { 258 analogWrite ( ENA , 259 spin ) ; 260 analogWrite ( ENB , spin ) ; 261 left ( ) ; 262 } 263 if (steering After that, the module works in full speed mode, and the serial port can send and receive data normally.



  • Fruugo ID: 258392218-563234582
  • EAN: 764486781913
  • Sold by: Fruugo

Delivery & Returns

Fruugo

Address: UK
All products: Visit Fruugo Shop