276°
Posted 20 hours ago

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

£9.9£99Clearance
ZTS2023's avatar
Shared by
ZTS2023
Joined in 2023
82
63

About this deal

Bluetooth low energy (BLE) characteristics and services are the means by which a device advertises itself. Some characteristics can be read from and/or written to. where Liz has succeeded in using BLE to do just that. What's more, she does it with (gasp!) an iPhone.... If she can do it one-way, I'm sure she can do it two-way.

The module is compatible with both Android and Apple systems. In an open environment, it can communicate with iphone4s, to achieve ultra-long-distance communication of 80 meters. While your code does something, a triumph in itself, the input section is incomprehensible, and I rather feel that your real problem is that you simply don't understand serial input, and all this BLE Characteristic stuff is just claptrap. In short, even BLE bluetooth is simpler than you think. prevSteeringphone (Serial1 ) ; // pass reference of bluetooth object to 21 ArduinoBlue constructor . 22 23 // Engines 24int ENA = 3 ; 25int IN1 = 2 ; 26int This value directlyaffects the time of disconnection, that is, the time of"unexpecteddisconnection".(active disconnection is not affected by this value) Keyestudio HC-08 Bluetooth module is a new digital transmission module, based on the Bluetooth Specification V4.0 BLE Bluetooth protocol. ID : " ) ; 111 Serial . print (sliderId ) ; 112 Serial . print ( "\ Value: " ) ; 113 114 Serial . println (sliderVal ) ; 115 spin = map (sliderVal , 0 , 200 , 80 , 150 ) ; 116 117 } 118 119 // Display throttle and steering data if steering or throttle value 120 is changed (only if usb is attached ) 121 if (prevThrottle != throttle Connected well, then connect the FT232 module (drive installation completed) to the computer using a USB cable.

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. Note: when using, must first upload the code to UNO board, then connect the Bluetooth module to UNO R3. Or else fail to compile the code. After that, the module works in full speed mode, and the serial port can send and receive data normally. There are two methods to clear the memory. One is to connect the module’s 18-pin (KEY pin) to a High level of 200mS or more. The other is to input the AT+CLEAR command in the unconnected state. Note: The module will restart automatically, and a new operation can be performed after restarting for 200ms!

492

Under the unconnected status, module after being awakened into full speed mode, which maintains for 5 minutes, and then return to the original mode. As long as 5 minutes in the UART has received data, then retiming. I am using an Arduino Uno with an SH-HC-08 bluetooth low energy adapter. I understand that the SH-HC-08 is similar to the HM-10 and is built on a TI chip. I can get the arduino to transmit serial data through the bluetooth adapter using the code below:

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 . This command does not filter any characters. If you need Chinese characters, you can transcode them according to your own device format. I see others are successfully using the BLE extension and these particular Write methods, so I assume this is something I'm doing wrong, or maybe something's gotten corrupted? I did a lot of searching and I don't see anyone else reporting this experience. I'm looking for a little advice on how to resolve it. Do I need to start fresh and reconstruct the app? I feel that it is more designed to talk to other devices that is the same as itself ie. another HC08 rather than an external device such as a mobile phone/tablet etc. Many of the commands are unavailable (even though the spec sheet does list all the usual commands?) and it'll nearly always reject 'AT' calls once you've customised it a bit. Input: AT+CINT=? Return:OK+CINT=6,12 (Query the minimum connection interval is 1.25*6=7.5ms, the maximum connection interval is 1.25*12=15ms)Upload the above code to UNO R3, then connect well the Bluetooth, powered up, you should see the red led on Bluetooth module flash. The higher the broadcast density of the slave, the easier the data is received by the Master. The higher the broadcast density, the higher the power consumption of the Slave. The 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. Before setting the AT command, for hardware, you need a USB to serial module (such as FT232 module ) and several DuPont lines. For software, need a serial port assistant software, and install well the driver for the USB to serial module.

if (distance > 70 ) { 203 analogWrite ( ENA , 100 ) ; 204 analogWrite ( ENB , 205 100 ) ; 206 forward ( ) ; 207 delay ( 400 ) ; 208 stopengine ( ) ; 209 } 210 } 211 212 void 213 drivemode ( ) { 214 findDistance ( ) ; 215 Serial . println (distance ) ; //value 10 equals 216 1cm obstacle distance steering ) { 123 Serial . print ( "Throttle: " ) ; Serial . print (throttle ) ; Serial . print ("\ Steering : 124 " ) ; Serial . println (steering ) ; 125 prevThrottle = throttle ; 126 prevSteering if (distance >= 100 ) { 218 drivesetup ( ) ; 219 } 220 221 else { 222 analogWrite ( ENA , 90 ) ; 223 analogWrite ( ENB , 90 ) ; 224 left ( ) ; 225 226 delay ( 1000 ) ; 227 } 228 229 } 230 231 void drivesetup ( ) { 232 233 if (throttle > 60 ) { 234 if (steering > 40 && steering < 60 ) { 235 analogWrite ( ENA , 236 acc ) ; 237 analogWrite ( ENB , acc ) ; 238 forward ( ) ; 239 } 240 if (steering analogWrite ( ENA , spin ) ; 266 analogWrite ( ENB , spin ) ; 267 right ( ) ; 268 269 } 270 } 271 if (throttle < 40 ) { 272 if (steering > 40 && steering 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 modeAfter the connection is successful, you can start to set the AT command according to the instructions. 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. If at this moment, for Master, AT+CONT=1, and successfully scan the broadcast from the Slave, the serial port will output: 1234567890AB 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.

Asda Great Deal

Free UK shipping. 15 day free returns.
Community Updates
*So you can easily identify outgoing links on our site, we've marked them with an "*" symbol. Links on our site are monetised, but this never affects which deals get posted. Find more info in our FAQs and About Us page.
New Comment