Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

bluetooth module hc05 and micro ATMega32A with Arduino IDE

Status
Not open for further replies.

ghasem_008

Full Member level 4
Joined
Feb 9, 2012
Messages
221
Helped
11
Reputation
22
Reaction score
10
Trophy points
1,298
Activity points
2,990
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?
 

Hi,

You didn´t say you use UART, but I assume.

--> always the same with UART problems: first check for baudrate mismatch.
Then for other communication setups like 8N1...

Klaus
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top