Post topics, source code that relate to the Arduino Platform

User avatar
By DeNB3rt
#4414
Patch wrote:I did, and it did! :D

Image

Vin == Arduino TX
Vout == ESP RX
R1 == 1K
R2 == 2K

I'm inclined to try 10 and 20K...


That did not work for me.
Even the 100ohm and 200 ohm devider.

The esp8266 is driving me nuts, when I send commands, I see the blue led lighting up. I only have some BC547's, so I've build this level shifter,
Image
but still the same. I receive data on my arduino, but can't send any command :(

anyone?
User avatar
By Michaelo
#4450 Assuming normal USB to Serial communication (digital pin 0 = input (RX) and digital pin 1 = output (TX))...

In a perfect world you would use a couple of gates from a 4050 or two BSS138 to isolate TX/RX but you rarely have them lying around...

TX from the ESP8266 can be directly connected to the RX of the Arduino as the voltage never exceeds the 3.3 volts...
I used a 100R resistor because I'm paranoid even though the ESP8266 does appear to be 5 volt tolerant despite the datasheet...

RX from the ESP8266 can be isolated using a diode as in the attached image (voltage at ESP RX will vary from 3.3 to 0.7 volts)...
this-works.jpg

Strangely enough, the resistor divider did not work for me either :P
You do not have the required permissions to view the files attached to this post.