this is so weird, it is now 9600
the code about somehow worked lol
It sounds like you should be able to get back up and running now.
by the way I just checked the info on it, it looks like none of the infromaion has been saved and it seems to have wiped itself is that normal??? is there a specific way of saving the information
I don't see an AT command to save, so I am assuming that after you make a change, it should be permanent. Just power the module down, wait a few seconds, and power it up again. Supposedly, that should work, but I am out of my depth with the HC-05 at this point.
Thank you very much for assisting me
(btw if I have another question about the HC 05 should I create a new post?)
You are very welcome.
You probably should create a new post if it is a topic other than AT commands.
Code written by somebody who doesn't know what he is doing, so ignore it. Running software serial on hardware serial pins will cause you all the grief you deserve. Using hardware Rx as a software Tx just makes it about ten times dumber.
Having the led slow flash means you are indeed in AT mode, but that does not guarantee that you are properly connected. It may mean no more than that the power is connected, and you have pushed the button.
While you should have a divider on Bluetooth Rx, you are not likely to have destroyed it.
What should I do now??? how can I tell if it is destroyed or not? now my program doesn't event compile properly and if it does, errors come up.
Post your code here using code tags.
Post the compile errors also using code tags.
What Arduino board are you compiling for?
omg its so inconsistent I disconnected everything and replugged it in and now (still) my AT commands are not working
#include <SoftwareSerial.h>
SoftwareSerial BTSerial(1, 0); // RX | TX
void setup() {
Serial.begin(38400);
Serial.println("Enter AT Commands:");
BTSerial.begin(38400); // HC-05 default speed in AT command mode
}
void loop() {
//The code below allows for commands and messages to be sent from COMPUTER (serial monitor) -> HC-05
if (Serial.available()) // Keep reading from Arduino Serial Monitor
BTSerial.write(Serial.read()); // and send to HC-05
//The code below allows for commands and messages to be sent from HC-05 -> COMPUTER (serial monitor)
if (BTSerial.available()) // Keep reading from HC-05 and send to Arduino
Serial.write(BTSerial.read()); // Serial Monitor
}
should I just by 2 new modules at this point?
(Arduino R3 the, elagoo one (off brnad))
I just compiled your code for the Uno R3, and I am not getting any errors.
Please post the errors you are seeing.
Yes, well im not getting any errors anymore
but remember yesterday I said I fixed it? i used the EXACT same code, and now this time the AT commands do not work
I got this for inputting AT+...
I should be getting OK...
.
I suggest you start with the simplest scenario possible.
- On your Arduino, upload an empty script.
- Power the Arduino and HC-05 modules down.
- Reapply power.
- Use the button on the HC-05 to enter AT command mode (slow pulsating LED).
- Using the serial monitor configured for sending CR/LF and set it to 38400, enter AT and send the command.
- If you get an error, try sending AT once more.
Your serial monitor is set to the wrong speed. What speed is it set to?
Try changing the speeds until your get what you expect back.
I tried 38400 and 9600, none of those 2 wokred
Try typing just AT without the +.
yes
yesss
les gooooooo i got it finaly reworkng hopefully it doesnt break