I am so new to Arduino that I just need a quick bit of help so I can determine if 2 boards I just purchased are working or not. I was under the belief that if I opened 1.8.19 and selected port and board type then went to Serial Monitor and selected 9600 baud then typed AT I should get an OK, but I am not. When I ask for board info it gives me the boards info. So it knows the board is there.
I have a Green light on the board and a small amber light that seems to dim and go bright.
I, reset both boards, unplugged, re-plugged in and loaded 2.03 IDE and the same thing occurs with both boards(boards are plugged in one at a time) both out of the box. AT not working or unseen response in Serial Monitor for the version of IDE.
2nd board also returned board info with no issue.
So my question is: What can I do to confirm board is working. Once I can determine that, then I can take my time reading these forums. I am in my 7th decade on the planet so I am not a "whiz kid"
Thanks for any help and I promise not to pester people.
In the ide window under File, there is a pull down menu. Go to File>Examples and look for the Built In Examples at the top. Start working your way through the 01 Basic Examples.
Thanks, for the reply, here is my problem. I am using this board as part of a DIY CNC plasma table. Literally the only thing I have to do to this board once wired into the controllers for XYZ is hook up a bluetooth card. Its the only requirement and it uses the Serial Monitor.
So I am unable to hook up the bluetooth because I cannot get a response out of the Serial Monitor.
Once I am able to hookup the bluetooth card, then I use another program to run the plasma table.
I was afraid to run the programs that are part of Examples because I was afraid I would not know how to erase those programs and get the pin outs and ins back to the norm?
Please explain more about the "bluetooth card", how you are connecting it to the Arduino, and how you are trying to communicate with it from the Serial monitor.
No need to erase any program. It is overwritten when the next program is uploaded. So everything goes back to "norm" when the original program is reloaded.
Sounds like a board with native USB. Using IDE 1.8.19, what are the VID and PID that are reported? It's my understanding that IDE 2.0.3 does not pull the board info from the board; 1.8.x and older however does.
as far as I can see OpenBuilds is the program and uses the original pin out data from the Arduino in its null state, so is their a "clear" program that brings it back to its factory settings and no program?
Sorry for all the posts I just found how to quote more than one person. I had this all working then suddenly the XY outputs failed. I was able to trace it back to the Arduino by using the only functional Z output and route to X then Y servo controllers and they both worked. At this point I had already wired in the Bluetooth and it was working. So ordered up a new board and a spare.
Then the little I knew from the video suddenly did not work on the two new boards. Serial Monitor will not respond, so I am stuck at the moment and I have designed the Plasma Table electronic box with no where to put the USB into the Arduino without removing the cover, and the Plasma has a water tank and it splashes. I have a Apple iphone plug in with a one foot length USB powered from the 120V line with lid on the box.
Yes, BareMinimum.ino It's one of the basic example programs. I believe it is also shown in the video as the program loaded following 3:45 in preparation for AT commands.
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Then the little I knew from the video suddenly did not work on the two new boards. Serial Monitor will not respond
Are you trying to have the monitor and ide talk to the HC06 with pass through AT commands and the blank sketch, or to the Arduino with a program?
Is the bluetooth module still connected to the 0 and 1 pins? You wont be able to load code (even the blank sketch) with the HC06 connected to those pins.
What is the baud rate setting of the HC06.
so I am stuck at the moment and I have designed the Plasma Table electronic box with no where to put the USB into the Arduino without removing the cover
I do not think you are going to be able to resolve what is going on without removing the cover and connecting a computer with USB to the Arduino.
You may have to walk through the video like you originally did.
No the Bluetooth is not connected, I have not gotten this far. I at first thought because it would not communicate that perhaps the baud rate was not 9600 so ran through all baud rates on the Serial Monitor to see if that was the issue. So nothing other than USB from computer is connected. I upload a sketch after selecting Port and Board type and then open Serial Monitor and type AT, with no response on both boards.
The Arduino that failed is out of the electronic box for the Plasma. These two new cards are sitting next to my computer and I am trying to get them to talk to me. Once I get the OK after AT I was going to once again go thru the setup of the bluetooth.
I do note that no one seems overly concerned that the Serial Monitor does not work or at least have not commented. Is there a way to name the card, and set the baud for the baud rate of the bluetooth without using the Serial Monitor?
Something just occurred to me, could I have the wrong cable? If it plugs into the Arduino and is a USB that plugs into the computer then its the right one, right? I think the one I am using is a Printer Cable?
This is not an inherent behavior of an Uno. If the sketch (AKA "firmware") program you uploaded to the Uno is designed to return "OK" when it receives "AT", then it is expected to do that, but if the program does not contain explicit code for that behavior, then the board will not behave as you are expecting.
For example, an Uno with the "BareMinimum" sketch program running will simply ignore your serial messages because it doesn't contain any code that instructs it to do something with them.
Hmmm that's interesting. I know the first board I purchased I never uploaded anything or ran any program I just started connecting it to the servo motors following the wiring diagram. Then the fellow came out with a Bluetooth connect, so I removed the board and followed his instructions s you see in the Youtube video. Again, not loading any program of any sort. The board answered with OK after AT? All of his commands you can see on the video, I replicated those and got the same response with no program added?
Is there a program somewhere that would give you the OK and change the boards program contents as dictated by the AT command that you are aware of?
The response to the AT commands with the empty sketch is coming from the Bluetooth Module HC06.
What are the conditions where you are trying to replicate what you originally saw. If its a new Arduino with a blank sketch loaded, and the HC 06 connected as before, it should give a response at some baud rate. With the USB pass through sketch, I think that tx>tx and rx>rx. There is no cross connection as is normal with the module and the Arduino.
There is a link in the video description which is supposed to take you to that project on the Arduino Project Hub, but unfortunately Arduino recently reworked the Arduino Project Hub and that broke all the previous links. I was able to track down the original project (All the old Project Hub projects are also available on hackster.io).
Notice that the program on the Arduino board echos the data between Serial and the SoftwareSerial object BTSerial. This allows you to communicate with the HC-06 module from Arduino IDE Serial Monitor. The Arduino board is only acting as a USB to serial bridge between the computer and the Bluetooth module
Thanks for that. I should not have posted so early in the morning because I tried to determine which board you have and now see that it's in the topic title
Thanks for this. You solved my problem. In my haste of being a know-it-all after doing this merrying of the HC06 to the Arduino I presumed my 74 year old brain remembers everything. News Flash...it does not
When going through the narrative on the link you sent I remembered at the start that RX is to be hooked up to RX and TX to TX where I was hooking it up RX to TX and TX to RX which is its normal operating status.
I forgot that part where the Arduino, through the USB is the master unit and the HC-06 is slave during the setup. As soon as your link tweaked me, I hooked it up and got an OK back after typing AT
So thank you for this and thanks to all that helped. This is not my last project with Arduino so I will keep on as an active member.
10 thumbs up, thanks again people!
There is now some confusing information in this thread.
There are two methods of AT command communication with the HC06.
One is with a blank sketch loaded, and connections rx>rx and tx>tx. This is the method used in the video link sent by @turbine-wine. And it appears to be the actual solution to achieving the communication desired.
The other method marked as "Solution" is with a software serial / serial echo sketch and the connections for this are rx>tx and tx>rx.
This was not the actual solution to the issue.
You are right cattledog.
I put it as solution because the link actually tweaked my memory (as poor as it is)
The actual solution is as per the video I included which shows the RX to RX and TX to TX as the initial setup. It allows you to set up the HC-06 and ready it to be the master receiver later.
I changed the solution message and again, thanks to everyone.