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

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.

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

Display Text on an LCD with Bluetooth Using IOS and Android

Display throttle and steering data if steering or throttle value is changed (only if usb is attached) 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+CLEARcommand in the unconnected state. The module will restart automatically, and a new operation can be performed after restarting for 200ms!

pulseIn ( ECHO , HIGH ) ; 150 distance = duration / 2 / 7.6 ; 151 delay ( 60 ) ; 152 153 } 154 155 156 void 157 selfdrivemode ( ) { 158 for (angle = 35 ; angle <= 70 ; angle += 10 ) { 159 servo . write (angle ) ; 160 161 findDistance ( ) ; 162 Serial . println (distance ) ; //value 10 equals 1cm obstacle 163 distance Connected well, then connect the FT232 module (drive installation completed) to the computer using a USB cable.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 . Limited to 12 characters, support visual ASCII code and partial escape characters. The module supports Chinese character input, and Android device must be converted to "UTF8 encoding" to display properly. Send more than 12 characters, only recognize the first 12 characters. ) From that same serial monitor app, I type in a string and send it to the bluetooth adapter on the arduino. It appears in the BLE characteristic FFE0 which is what I want. The AT command behind no newline; if no special instructions, all AT commands are not transmitted using newline.

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. Using the HC08 however is nothing like in comparison - it'll reply with an 'OK' once, then needs the power resetting before it'll reply again, renaming the device is possible but then it will no longer accept the 'AT' command. It is very frustrating to use and code and seems quite unreliable for basic Android/PC/iOS communication. B. The slave module send the broadcast data to the master module, can achieve one-way communication of one to many (theoretically it can be from a slave module to infinite master module).

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 The manufacturer DSD Tech provides a simplistic app that can send and receive text with my application. That connects and works fine. My intent with MIT AppInventor is to create a more tailored app for my application rather than manually typing in and seeing text strings to/from my Arduino. phone (Serial1 ) ; // pass reference of bluetooth object to 21 ArduinoBlue constructor . 22 23 // Engines 24int ENA = 3 ; 25int IN1 = 2 ; 26int The parameter "xxx" can be any user data of 1~12 bytes. If the Master status AT+CONT=1 at this time, the Master serial port will output xxx data. This broadcast data will not be saved permanently and will expire after the module is restarted. steering ) { 123 Serial . print ( "Throttle: " ) ; Serial . print (throttle ) ; Serial . print ("\ Steering : 124 " ) ; Serial . println (steering ) ; 125 prevThrottle = throttle ; 126 prevSteering

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