Converting a controller to use an ESP Module

From diychristmas.org wiki
Revision as of 12:02, 10 December 2018 by Dirknerkle (talk | contribs)
Jump to navigation Jump to search

This is generally not a terribly difficult thing to do, although there are some critically important considerations one should make.

  • Powering the ESP module adequately is vital to success. If you are tapping the controller's power circuitry for power, remember that the ESP by itself can require upwards of 300ma of current just to start up and connect to an access point. Also remember that the ESP module requires 3.3vdc power; it will likely not survive 5vdc for even a moment or two.
  • The TTL data output from the ESP module is a 3.3vdc signal. This may or may not be adequate to drive the controller's input circuitry to a degree that minimizes communication errors. Therefore, a voltage level shifter may be required for error-free operation if the controller requires a 5vdc input signal. Note that in practice, users have found that most controllers can generally accept the 3.3vdc signal, but YMMV (your mileage may vary...)
  • It is necessary to connect the ESP's ground connection to the controller's ground for the data connection to be successful. Below is the default pinout of the popular ESP-01 module:
Esp01 pinout.png
  • Not all firmware may output data the same way. For example, Shelby Merricks' ESPixelStick uses the GPIO-2 pin while Bill Porter's version of the same firmware uses the TX pin. You should not simultaneously connect more than one pin to your controller's input; choose one or the other or create a method that allows choosing the pin you need.