Hardware and software requirements
For this project, you will of course need an ESP8266 chip. As for most of this book, I used the Adafruit Huzzah ESP8266 module, but any ESP8266 module will work fine here.
For the first project of this chapter, you will need an LED, along with a 330 Ohm resistor. You will also need a mini push button and a 1K Ohm resistor.
For the second project of this chapter, you will need a relay, a 10K Ohm resistor, and a small photocell.
You will also need a 3.3V/5V FTDI USB module to program the ESP8266 chip.
Finally, you will also need some jumper wires and a breadboard.
This is a list of all the components that will be used in this chapter:
Adafruit ES8266 module (x2) (https://www.adafruit.com/products/2471)
FTDI USB module (https://www.adafruit.com/products/284)
330 Ohm resistor (https://www.sparkfun.com/products/8377)
Photocell (https://www.sparkfun.com/products/9088)
10K Ohm resistor...