Arduino Forum

Development => Other Hardware Development => Topic started by: xiedidan on Jul 31, 2015, 06:13 am

Title: Arduino ESP Shield
Post by: xiedidan on Jul 31, 2015, 06:13 am
Hi guys,

 Recently, I worked on Arduino WIFI solutions. My goal is to send sensor readings through MQTT protocol, the cheaper the better. :smiley-evil:
 Arduino Yun is good but I need a cheap solution so it's just too expensive for me.
CC3000 is cheaper but it has so many useless function (only for me, maybe) as its arduino library is too huge for 328 based Arduino. There's not much space for user codes...
 There are quite a few cheap ESP8266 modules floating around, so I purchased some ESP-01 modules for testing.

 However after messed up for hours, I quickly found that I should make a 'ESPShield' so wiring between ESP-01 and Arduino will be much much easier...  :smiley-lol:

 At least, the ESPShield should meet the following requirements:

 1. Burn ESP8266 firmware from serial port.
 2. Quickly switch ESP8266 between firmware mode and work mode.
 3. Quickly connect/disconnect ESP8266's serial port to/from Arduino.
 4. RST bottom should be able to reset both ESP-01 and Arduino.
 5. Optional external 5V power supply (regulated to 3.3V for ESP-01).
 6. Series resistor between Arduino TX and ESP RX.

 Additionally, I think connecting ESP-01 GPIO2 to an LED should be good. It could be used for custom purposes.

 After 2 runs of PCB making, I have a working prototype ESPShield now.
 (https://forum.arduino.cc/index.php?action=dlattach;topic=339121.0;attach=133805)
 I've tested the ESPShield prototype, it looks ESP is the right choice for me:

 1. It's just simple and cheap.
     ESP-01 costs only about $2. And my prototype shield board costed about $3 each.
     I'm already happy with this $5 solution and it might be cheaper to make more.
 2. ESP8266 firmware burning speed could be setup to 1.2Mbps(1228800bps).
 3. I modified esp_mqtt_bridge from github to support LED controlling on GPIO2.
     When MQTT is connected, the LED will light up.
     Since esp_mqtt_bridge implemented wifi and mqtt client on ESP, it greatly offloads Arduino UNO.
 4. Wifi and mqtt are very stable (compared to CC3000).
 5. SmartConfig is also working on my prototype. :smiley-evil:
 6. It's possible to send Arduino hex through WIFI and burn it into Arduino with ESP-01.
     I'm still working on this. It might need some hack to my prototype board.
     So a 3rd run of PCB is possible.

 Now I'm planning for a small run of the ESPShield, to make 100-200 units.
 So I want to know if there's anyone interested in this and, do you have any suggestions?
 Any comment will be appreciated :D
Title: Re: Arduino ESP Shield
Post by: shark_wang on Jul 31, 2015, 11:04 am
That's great. It's time to involve cheap wifi solution to arduino.
Title: Re: Arduino ESP Shield
Post by: doughboy on Aug 03, 2015, 08:04 pm
are you using ioref to do level translation of rx/tx pins? or at least the rx (input to esp) pin.
Title: Re: Arduino ESP Shield
Post by: Isaac96 on Aug 04, 2015, 04:18 am
Hey, 
So the ESP-01 modules are in the same form factor as NRF24L01?
Title: Re: Arduino ESP Shield
Post by: Chagrin on Aug 04, 2015, 07:31 am
Hey,
So the ESP-01 modules are in the same form factor as NRF24L01?
NRFs are taller and a little bit wider. 2x4 pins on .01" centers but completely different usage.
Title: Re: Arduino ESP Shield
Post by: Isaac96 on Aug 04, 2015, 08:20 pm
Is the pinout similar?
Title: Re: Arduino ESP Shield
Post by: Chagrin on Aug 04, 2015, 11:08 pm
Is the pinout similar?
Google down again? Dammit. :(
Title: Re: Arduino ESP Shield
Post by: xiedidan on Aug 05, 2015, 09:55 am
are you using ioref to do level translation of rx/tx pins? or at least the rx (input to esp) pin.
Hi doughboy,

  No, I just used a series resistor to limit current flow into esp rx.
  However, I think IOREF should be used to pullup esp tx output to 5V.

  Now I'm working on a 3rd version of prototype, using MAX14591 to do level shifting.
Title: Re: Arduino ESP Shield
Post by: xiedidan on Aug 05, 2015, 10:02 am
Is the pinout similar?
Hi Issac,

  ESP8266 is an SOC with WIFI module.
  NRF24L01 works on 2.4G but it's not WIFI.
  As Chagrin said, their usages are totally different.
Title: Re: Arduino ESP Shield
Post by: Chagrin on Aug 05, 2015, 11:02 am
Now I'm working on a 3rd version of prototype, using MAX14591 to do level shifting.
That's pretty ambitious if you're soldering by hand. The larger package of that chip (TDFN) is 2mmx2mm - and that's eight pins.
Title: Re: Arduino ESP Shield
Post by: Isaac96 on Aug 05, 2015, 03:59 pm
And the pads are under the chip.
Title: Re: Arduino ESP Shield
Post by: zcx on Dec 10, 2017, 12:37 pm
您好,想请教一下您您wifi传输hex文件成功了没?