It’s just a lot harder to explain the steps to do it in a couple sentences.Īnd here’s a link to a tutorial, video, and sketch on how to enter the AT COMMANDS. It a quick easy fix, takes about a minute to do. Having the cap in between solves that problem. The reason is that the HC-05 will drive our custom pin LOW for the entire connection which would essentially be the same as holding the reset button the entire time. If you’re using an UNO or similar, you will need a capacitor in between our custom “state” pin and the reset pin on the uno. Voila! In about 1 minute of time you have successfully re-purposed the LED pin to a DTR pin which will reset your arduino to accept a new sketch when you hit the upload button.Ī couple things to note… This will work for a pro-mini without additional hardware by connecting to the DTR pin. 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. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |