-->
Page 1 of 2

Using Arduino to Load Lua Firmware?

PostPosted: Mon Mar 23, 2015 4:46 pm
by Kris Cavitt
Hello,

Is it possible to use an Arduino Uno R3 to firmware update the ESP8266? I have the esp working on my bread board connected to my Arduino via the softwareserial and it works but I wouuld like to load the Lua firmware.


Thanks,

Kris

Re: Using Arduino to Load Lua Firmware?

PostPosted: Tue Mar 24, 2015 8:04 am
by alonewolfx2
if you can remove atmega328 on arduino uno, you can use arduino uno's serial chip for firmware upload. arduino uno's tx and rx pins are d0 and d1

Re: Using Arduino to Load Lua Firmware?

PostPosted: Tue Mar 24, 2015 9:27 am
by ArnieO
alonewolfx2 wrote:if you can remove atmega328 on arduino uno, you can use arduino uno's serial chip for firmware upload. arduino uno's tx and rx pins are d0 and d1

There is no need to remove the Atmega328.
Just upload an empty sketch to the Arduino first, to ensure that it does not access the hardware serial bus.
Then connect Arduino pin 0 (Rx) to ESP8266 Rx, and Arduino pin 1 (Tx) to ESP8266 Tx. NB: Do not cross Tx/Rx like you would normally do, as the Rx (pin 0) is where the AT328 normally receives its signal so it will act as Tx towards the ESP - and vice versa for pin 1. )
It is strongly recommended to use a level shifter between Arduino pin 0 (0-5V) and ESP8266 (0-3,3V), or else you could kill the ESP.
Use an Arduino IDE Serial Monitor window to talk directly to the ESP.

Re: Using Arduino to Load Lua Firmware?

PostPosted: Tue Mar 24, 2015 2:49 pm
by Kris Cavitt
Thanks to both of you for the information. I will try this when I get home this evening.