Hi,
I was using for a while an Arduino Pro Mini board with a MPU6050 via I2C and a S14432 for radio purposes... Everything worked fine until a few days.
I can upload sketches, it seems that works fine but radio starts to go slower and I start getting timeouts. I tried the SI4432 module with other Arduino and works fine.
I dissasemble everythink (was soldered) and try to isolate the problem.
Now, I have the new Arduino board (identically as broken) and a HC-05 bt module wired to RX/TX
With the new board, the code (paste at the end) works fine (get bytes from BT).
With the broken, the code starts ok but never received bytes.
I tried both pins of RX/TX (two in a side, other two in gnd,vcc and dtr part) of the arduino broken board, for example uploading code. Both of them works fine, so I think is not a "pin problem".
I'm pairing the BT module with phone and BT Terminal app. Baudrate is 57600 and like I said, with no "broken" arduino board works perfect.
Here is the code
void setup()
{
Serial.begin(57600);
Serial.println("Ready");
}
void loop()
{
if (Serial.available())
{
Serial.print(Serial.read(),DEC);
Serial.print("\t");
}
}
Output in Serial monitor of PC (I type 3 'A' in BT mobile app):
Ready
65 65 65
If I try the same (A,A,A) in "broken" board:
Ready
But, in the BT console I get "Ready"...
-
First question: Why? Is there any way AVR command or something to test the arduino board or atmega328 chip?
-
(Solved) Second question: Why when I type something in Serial monitor it doesnt arrives to BT module? Only if in code I have Serial.print/write arrives to module... why?
Example:
- Starts app and sync with BT. Serial Monitor and BT App have "Ready" (OK)
- Send from BT App to Arduino 'A' -> BT App type 'A', Serial Monitor "65\t" -> Why this doesnt arrive to BT?
- Send from Serial Monitor to BT App 'A' -> Serial Monitor print 'A' but doest arrive to BT App, why?
- In loop code, I put delay(200), Serial.println("Hi") -> Serial Monitor shows "Hi" AND BT App too, why? Is not the same?
I want to investigate this because I do nothing extrange with the "broken" module and dont want to solder the same again and get the same results.
Any help will be welcome, thank you.