-
1Software Installation
- Download and install the Arduino IDE
- Open the Arduino IDE
- Go to "File" -> "Preferences"
- Insert the following URL into the "Additional Boards Manager URLs" field
http://arduino.esp8266.com/stable/package_esp8266com_index.json
- Click "OK"
- Open the Boards Manager via "Tools" -> "Board" -> "Boards Manager"
- Look for "esp8266" and install the boards
Set the board by going to "Tools" -> "ESP8266 Boards" -> "LOLIN(WEMOS) D1 mini (clone)"
- Install dependencies
- Go to "Tools" -> "Manage Libraries..."
- Install the "Cytron Motor Drivers Library" by searching for "Cytron" and clicking "Install"
- Install the "HCSR04 ultrasonic sensor" library by seaching for "HCSR04". (Make sure to use the one from "gamegine")
- Download the source code of this project
- Visit the GitHub repository in your browser
- Choose a download option
- Unzip the archive if you've downloaded a ZIP, otherwise skip this step
- Open the directory "ESP8266-IKEA-Skarsta-Trotten-Web-Dashboard/src/main/"
- Open the "main.ino" file with your Arduino IDE
- Add your WiFi network data
- Simply replace YOUR-WIFI-* with your credentials and save the file
- Plug in your ESP8266 board into your Computer USB port
- Set the port by going to "Tools" -> "Port" -> select your Port
- If you can't select anything, make sure that you have the correpsponding drivers installed: https://www.wemos.cc/en/latest/ch340_driver.html
- Compile and upload the software to the board by clicking the upload button
- Visit the web dashboard
- Get the IP address: The board should've logged into your WiFi network after you have uploaded the software. You might want to open the Serial Monitor to know which IP address was assigned to the board. Othwerwise you can also download a smartphone app i.e. "Fing" to scan all the IP addresses in your local WiFi network.
- Open the hosted website in your browser: i.e. in the browser address bar: 192.168.1.137
- Should look like this
- Optionally set a domain name in your WiFi router etc.
- If everything is working, you can disconnect the board from your computer and assemble the system to the table. Also make sure to use a power supply for the board.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.