Difference: RemoteControlThroughBluetooth (2 vs. 3)

Revision 32017-10-27 - uli

Line: 1 to 1
 
META TOPICPARENT name="RobotSoftware"

Remotely controlling the Robot through Bluetooth

Line: 52 to 52
  Once I know that I can communicate through Bluetooth, I now replace the USB to serial adapter by the Arduino and write a sketch for Bluetooth Control.
Added:
>
>
What we really want to do is to connect an HC-05 to an Arduino (e.g. the Arduino nano) and use it in master mode. To this Arduino we also connect the joystick. A HC-06 is connected to the Arduino, controlling the robot. The values from the joystick will then be transmitted from the fixed Arduino to the robot and depending on the joystick values the DC motors must be controlled.

Before being able to do all this we must setup the HC-05 to master mode and make sure it can be paired with the HC-06. This can be done by switching the HC-05 into AT command mode. You push the button on the module and then power it. When it AT mode the LEDs will be blinking with a frequency of ~ 1/2 Hz.

The https://afnog.iotworkshop.africa/pub/Embedded_Systems/RemoteControlThroughBluetooth/serial.tar.gz package contains programs to serially connect to the HC-05 and send AT commands via the USB to serial adapter connected to a USB port on the PC.

Here is the HC-05 AT command set.

 -- Uli Raich - 2017-04-27

Comments

Line: 69 to 77
 
META FILEATTACHMENT attachment="helloWorld.c" attr="" comment="" date="1493293073" name="helloWorld.c" path="helloWorld.c" size="2089" user="uli" version="1"
META FILEATTACHMENT attachment="MakeHello" attr="" comment="" date="1493293073" name="MakeHello" path="MakeHello" size="70" user="uli" version="1"
META FILEATTACHMENT attachment="hc06Test.ino" attr="" comment="" date="1508768136" name="hc06Test.ino" path="hc06Test.ino" size="1089" user="uli" version="1"
Added:
>
>
META FILEATTACHMENT attachment="serial.tar.gz" attr="" comment="" date="1509113358" name="serial.tar.gz" path="serial.tar.gz" size="13241" user="uli" version="1"
META FILEATTACHMENT attachment="HC-0305_serial_module_AT_command_set_201104_revised.pdf" attr="" comment="" date="1509115228" name="HC-0305_serial_module_AT_command_set_201104_revised.pdf" path="HC-0305_serial_module_AT_command_set_201104_revised.pdf" size="85689" user="uli" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback