Correct circuit design for interfacing ESP-01 using Uno
Posted: Sun Aug 21, 2016 9:14 am
Hi Guys! First post here. Before I talk about the specific problem, I thought I will give a small introduction.
I am a newbie and I recently started exploring ESP-01 for fun sake. First, I wanted to reflash the ESP-01 with a new firmware using FTDI USB to TTL converter (FTDI 232R). I understand now that this is not the ideal way to start learning about ESP-01 Anyways, I read a lot of blogs/forums without any success and I was getting nowhere. Recently, I read this blog (https://vilimpoc.org/blog/2016/05/04/es ... -shootout/), knew what the problem was (replaced the FTDI with CH340G) and bam, I had success!! Thanks to the blog owner
I am now looking at interfacing the ESP-01 with a UNO. Again, I read a post (http://iot-playground.com/blog/2-uncate ... connection) and I am not particularly convinced that the hardware circuit will work robustly. My understanding is that a resistor divider to connect Arduino Tx to ESP-01's Rx will not provide enough current/voltage level for reliable operation (cue: 20mA DC current per Arduino I/O pin and 56 mA typical consumption of ESP-01's Rx operation). My second concern is the other part of the connection i.e. Arduino Rx <---> ESP-01 Tx. In the same previously mentioned link, a direct connection is advocated as well as a transistor based level shifter. I do not believe a direct connection is a good idea as it may fry the UNO (cue: 170mA typical Tx operation current of the ESP-01). I have no idea if the transistor does it safely.
Does anyone have a better (read: safe and reliable) hardware circuit to achieve this? I have pondered over using a bi-direction logic level converter but am not sure if the current constraints are met. Any help is greatly appreciated
I am a newbie and I recently started exploring ESP-01 for fun sake. First, I wanted to reflash the ESP-01 with a new firmware using FTDI USB to TTL converter (FTDI 232R). I understand now that this is not the ideal way to start learning about ESP-01 Anyways, I read a lot of blogs/forums without any success and I was getting nowhere. Recently, I read this blog (https://vilimpoc.org/blog/2016/05/04/es ... -shootout/), knew what the problem was (replaced the FTDI with CH340G) and bam, I had success!! Thanks to the blog owner
I am now looking at interfacing the ESP-01 with a UNO. Again, I read a post (http://iot-playground.com/blog/2-uncate ... connection) and I am not particularly convinced that the hardware circuit will work robustly. My understanding is that a resistor divider to connect Arduino Tx to ESP-01's Rx will not provide enough current/voltage level for reliable operation (cue: 20mA DC current per Arduino I/O pin and 56 mA typical consumption of ESP-01's Rx operation). My second concern is the other part of the connection i.e. Arduino Rx <---> ESP-01 Tx. In the same previously mentioned link, a direct connection is advocated as well as a transistor based level shifter. I do not believe a direct connection is a good idea as it may fry the UNO (cue: 170mA typical Tx operation current of the ESP-01). I have no idea if the transistor does it safely.
Does anyone have a better (read: safe and reliable) hardware circuit to achieve this? I have pondered over using a bi-direction logic level converter but am not sure if the current constraints are met. Any help is greatly appreciated