Hi, so I was working on a project which requires a WS2812B RGB LED setup which an ESP12F module. the goal was to set up a web server for the RGB LEDs to change its colour.
To accomplish this feat, we need a minimal ESP12F setup, which would be this-
now, this setup lets us program the ESP12F from an FTDI module by manually putting the ESP12F in flashing mode just by pressing buttons in the right sequence.
check out my previous post about ESP12F with FTDI
Materials required- ESP12F which you can buy from utsource.net
- NodeMCU
- 10K resistors x 4
- Jumper wires
- 10uF Capacitor
- WS2812B LEDs
this setup works only if you know what are you doing, most of the time people make mistake in the button pressing sequence and this doesn't work.
SO what to do?
well, we can program the ESP12F module with another device which you might already have, a NodeMCU.
I saw Brain Lough on this topic using a NodeMCU board and ESP8266. and I thought I can add the NodeMCU on a proper PCB with all the resistance attached to make a permanent programmer for future ESP12F projects!
Schematicthis is the Schematic that we need to follow
after wiring everything together according to the schematic, we just need to upload the sketch to our setup with these settings-
Uploading the codeI have prepared a webserver for toggling the ws2812B which is based around Neopixel Library.
- Select the port number of the NodeMCU (Tools->Port)
- Select the Board type "NodeMCU 1.0 (ESP12-E Module)"
- Click upload
and that's pretty much it, we don't need to select the "generic ESP8266 board" this time.
ResultsIn order to set an ESP8266 Programmer via NodeMCU, we need to Breakout the following pins:
- Ground
- GPIO 0
- VCC
- TX
- RX
- RST
we need these pins in both modules, the programmer and your project's PCB in my case this-
by preparing these two setups and hooking them together via Programming headers which consist of VCC, GND, Reset, GPIO0, TX and RX, we can flash ESP12F without adding external buttons for putting the ESP12F into flash mode.
Conclusion-well, this auto-resetting and flashing without buttons is quite handy if you don't want to make a custom programmer with the same functions with adding transistors in the existing FTDI hookup sketch.
I mean the esp12F programming with NODEMCU setup is functional and can help you program ESP12F without any problem and effort.
so if you have any problem, just leave a comment!
Thanks
Comments
Please log in or sign up to comment.