Hey everyone!
I want to upload code to my Arduino Uno wirelessly using Bluetooth.
I am facing an error when I try to give the "AT+POLAR=1,0" command to my Bluetooth module using the Terra Term software. I'm 90% sure it is HC05 as when I give the command "AT+ORGL" (to set all values to default) followed by "AT+NAME?" (to get it's name), then I get this:
HC-05
OK
I have connected the module to my PC using the CP2102 Module (USB to TTL). When I give the "AT+POLAR=1,0" command, I get an error message which says, "ERROR:[0]". I have tried every other command I need and I get an "OK" as a response meaning it works. Hope it is even possible to use this command with an HC05 Bluetooth Module. Thanks!
PS: I may have put this topic in the wrong category, (I wasn't sure!)
Just wondering,
whether you get a reply from
AT+POLAR?
Yeah, I get a reply ERROR:[0]
I found out that we can use a 'NOT gate' to replace this command. I tried by making my own using a transistor but I am still unable to upload code to my Arduino Uno using Bluetooth.
My main goal is to upload code to an Arduino Uno using anything other way than the cable we normally use to upload... I have an HC-05, that's why I tried to use that way. But if there is a more simple way, please recommend!
Discussing POLAR is moot then.
How could the "usb way" be simpler?
The usb is the quickest, easiest way. Anything else only adds layers of complication.
The thing is that the usb port of my Arduino doesn't work... Maybe I should try getting another one but I thought I could make use of this one by uploading just one code and repeating that code again and again as Arduino saves the last code we upload. That's basically my intention. It might be weird to do a thing like this but I thought it would be nice to utilize an Arduino by uploading one code and using it, rather than throwing it away...
They can be programmed via ICSP.
Look into that.
Oh, actually I tried that way. We use one Arduino to program another, right?
So when I tried uploading, I got an error. (That time I wasn't using Arduino Forum so I did not add a post about it). That's why I thought I should try using Bluetooth... I can try using ICSP again though, when I am free. Thanks for the suggestion!
Appreciate your help!!!
Using another Arduino has a lot of wiring, things to overlook.
Using one of these makes it as easy as it's going to get --
The advantage of Uploading this way is the program immediately runs (without having to clear the bootloader).
Hey, good news!
Turns out the video I was referring to use Arduino Uno as an ISP programmer for another Arduino Uno was not right for me... When I watched another video about this, the connections were different but this way helped me!
This video didn't work for me...
This one works for me!
I am mentioning these links so that they can help in the future.
Thanks for the idea of ICSP @runaway_pancake! If I wouldn't think of trying to use ICSP, I would have probable thrown this board rather than buying another component to make it work!
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.