-->
Page 1 of 2

Atmega32 (smd) + ESP8266 not working??

PostPosted: Tue May 26, 2015 1:56 am
by platinnguyen
Hi everybody,
I'm doing my graduation project using ATMEGA32 smd + ESP8266. But it's not working. I don't know why.

When I use UART interface of chip, I can transmit but I can't recieve data from ESP. I try UART interfae with PC, it worked fine.
Then I try Arduino Uno + ESP, it worked fine.
Can someone help me???
I nearly expired.
Thank you so much.
This link is schematic.
https://app.box.com/s/zma1bvxlyy7qsykwp3y4wlqbfl2v97vb

Re: Atmega32 (smd) + ESP8266 not working??

PostPosted: Tue May 26, 2015 1:47 pm
by martinayotte
On your schematic, you've left the GPIO0 and GPIO2 floating. That's not good !
They needs pullups resistors to 3.3V, something like 4K7 or 10K ohms.
And when you wish to upload a firmware, you will need to short GPIO0 to GND.
https://github.com/esp8266/esp8266-wiki ... ot-Process

Re: Atmega32 (smd) + ESP8266 not working??

PostPosted: Tue May 26, 2015 7:27 pm
by lethe
Do you use espressif's AT firmware? If so, make sure you are sending CRLF (\r\n) line endings.
Also I did not see any crystal for the AVR in your schematic, are you using the internal oscillator? I never tried myself, but several sources suggest that the internal oscillator may not be stable enough for UART. Have you checked the actual signals with a scope or logic analyzer?

Re: Atmega32 (smd) + ESP8266 not working??

PostPosted: Fri May 29, 2015 3:12 am
by platinnguyen
Yes, Thank your comment :) I have solved my problem.
The problem was due to my error using internal oscillator 1Mhz,
so when faulty transmission at speeds baurate = 9600.
But when I moved baurate = 19200 for mcu and ESP is running fine.
Luckily !!
Thank you very much.
Wish you have a good day!