![]() It’s default setting is to send the pin HIGH when a connection is made, but you can simply enter into command mode of the HC-05 and use an AT COMMAND to tell it to send the pin LOW when a connection is made. It’s purpose is to attach to an LED and indicate the connection status. The solution is to re-purpose the “state” pin (PI09) on the breakout board. The only thing that keeps the HC-05 from uploading a program to arduino is that it doesn’t have a DTR (Data Terminal Ready) pin which tells the arduino to reset and accept a new sketch. But it’s actually an extremely simple solution. In fact, the conclusion you came up with is in-line with all the information out there. Hi Paul… To be honest I couldn’t find any tutorials to explain how to program/upload sketches with the HC-05. Quote from: gabenix on Feb 15, 2014, 02:18 pm A way of resetting the Arduino to accept firmware uploads The configuration step is a one-time deal once the HC-05 is configured, it does not need to be done again unless the application requirements change. The reason is that several AT commands must be used in order to configure the HC-05 correctly for wireless Arduino program upload, and (as I understand it anyway), AT commands can only be communicated to the HC-05 via it’s hardware serial lines, and only when the HC-05 is in ‘Command’ or ‘AT’ mode. This part is discussed and demoed in many tutorials, but the piece that is almost always missing is why you need to have this link in the first place. A serial link between the PC, the Arduino and the HC-05 Don’t know if that is the right thing, but…. ![]() In this last iteration, I found that I could remove the two ‘incoming’ COM ports and use just the ‘outgoing’ one. ![]() As another poster mentioned, the pairing mechanism creates multiple ‘outgoing’ and ‘incoming’ COM ports, and it’s hard for me to figure out which to use. Here’s a link to a tutorial on pairing with the HC-05, and here’s another. I plan to use this with my Dell XPS15 9570 laptop, and I can pair with the HC-05 no problem. The HC-05 is a generic Bluetooth device, and as such is compatible with just about everybody’s Bluetooth setup – phones and PC’s. A serial connection between the HC-05 and Tx/Rx0 on the microcontroller – more about this later.A way of resetting the Arduino to put it back into programming mode, so the new firmware can be uploaded.My tutorial uses the Mega 2560, so I use Tx/Rx1 (pins 18/19) for the Arduino-to-HC-05 link This part is also well established, and the Arduino-to-HC-05 link can be done with either a hardware port (as with the Mega 2560) or a SoftwareSerial port using the SoftwareSerial library. A serial link between the PC and the Arduino and between the Arduino and the HC-05.A wireless link (obviously) between the PC and the HC-05.In order to remotely program an Arduino using a HC-05, the following basic parts are required: I found some posts claiming to have succeeded in remotely programming an Arduino using a HC-05 module, but the information was sketchy and incomplete, so I decided I would try and pull all the various sources together into a (hopefully) more complete tutorial for folks like me who want to use a HC-05 module for this purpose. However, I have been playing around with the cheap and small HC-05 Bluetooth module, and decided to see if there was maybe a way to use this module as a replacement for the Wixel.Īs I usually do, I started with LOTS of web research. On my Wall-E2 robot, remote programming/telemetry is accomplished using the very nice Pololu Wixel Shield. ![]() When I got the robot put together and started testing the motors, I realized I needed a way to remotely program the Arduino controller and remotely receive telemetry, just as I currently do with my 4-wheel Wall-E2 robot. As part of my recent Wall-E2 Motor Controller Study, I reincarnated my old 2-motor robot as a test platform for Pololu’s ’20D’ metal gear motors.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |