Currently, I used male headers on the board and female headers soldered to the LED wire and the (cut off) USB cable to connect it.
ConnectorsĪlso, I want to add a USB connector for VIN aka the USB cable and a JST connector for VOUT aka the LED wire. Ideally it would have an integrated heat sink for the IRLB8721 (although during my test with a 10m long LED wire it never became warmer than room temperature). It would be great to have a 3D printed case that hides the electronics and makes the build more robust. So here we are with an easy to assemble PCB. Also, I placed the ESP8266 ESP-01 module in a way that it wouldn't overlap the AMS1117 3.3V module. They're not a game breaker, but I created a new version where I improved the above mentioned points. Of course, I noticed those caveats after ordering and testing them in real life. The AMS1117 3.3V module is wider than I thought and spans over the edge of the PCB. I messed up the label for VIN: VCC and GND labels are swapped. I didn't take into account they had to be 2.54mm apart from each other and just grabbed the first pins from the library. You can see the two versions in the pictures.ġ.
This made my life much easier and the PCB layout was done in about two hours. I've been afraid of PCBs because I thought I had to design them with the SMD components and I couldn't find readily made ESP or Arduino development modules to insert into the schematic or the PCB layout.įor this project I decided to simply consider the ESP8266-01 and AMS1117 3.3.V modules as the kind of stuff I would need to solder on the board in order to use them: as female header pins.
If you experience any difficulties, please follow the full and detailed tutorial linked above. Connect a LED with a 220 Ohm resistor to the D2 pin on the ESP8266 ESP-01 module and it should light up and turn off when you click the correct button on the website. If everything's working, you see a website with two buttons. Else you won't be able to access the ESP8266 ESP-01! Note: You have to be in the same network aka WiFi.
Then, open your browser and navigate to the IP address shown in the Serial Console. Open the Serial Console in the Arduino IDE and wait until the module is connected to WiFi. Then, remove the ESP8266 ESP-01 module from the OPEN-SMART adapter, set the switch to UART and reinsert it.
Then, plug the whole thing into a free USB port in your computer and fire up the Arduino IDE.Ĭopy and paste the code from Random Nerd Tutorials, replace your WiFi credentials and upload it to the ESP8266 ESP-01 module. If you got yourself the OPEN-SMART USB to ESP-01 Adapter you can plug your ESP8266 ESP-01 module into it and set the switch to PROG. Nonetheless, you can just use their code as is and replace your WiFi credentials.
I removed the second button though, since we only need to control one pin (D2). My code is heavily based on Random Nerd Tutorial's tutorial for the simple HTTP server. Before we set up a prototype on a breadboard, we should program the ESP8266 ESP-01 module, so we can test the prototype later on.