ghasem_008
Full Member level 4
Hi.
I want to use a bluetooth module hc05 with a custom (my) arduino that includes a micro ATMega32A.
first:
I used an arduino Uno (instead of micro ATMega32A) and everything is working perfectly.
Second:
but when I used ATMega32A and Arduino IDE to program it, unreadable characters are shown in the lcd.
I used an external crystal 16 MHz for ATMega32A.
here lcd is used to show received character from the bluetooth:
char c = Serial.read();
lcd.write(c);
for example,I send '0' to bluetooth, but receive an unreadable character such as sigma or omega or ....
therefore my if commands can not be called and my code does not work.
all pinouts and connections are true.
why I receive unreadable characters?
I want to use a bluetooth module hc05 with a custom (my) arduino that includes a micro ATMega32A.
first:
I used an arduino Uno (instead of micro ATMega32A) and everything is working perfectly.
Second:
but when I used ATMega32A and Arduino IDE to program it, unreadable characters are shown in the lcd.
I used an external crystal 16 MHz for ATMega32A.
here lcd is used to show received character from the bluetooth:
char c = Serial.read();
lcd.write(c);
for example,I send '0' to bluetooth, but receive an unreadable character such as sigma or omega or ....
therefore my if commands can not be called and my code does not work.
all pinouts and connections are true.
why I receive unreadable characters?