mirror of
https://github.com/bplaat/workshop-make-your-own-blynk
synced 2026-08-27 19:24:27 +00:00
No description
- TeX 29.3%
- JavaScript 28.6%
- C++ 22.3%
- Java 10%
- HTML 7.4%
- Other 2.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| manual | ||
| realtime-led | ||
| weather-station | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
Workshop Make your own Blynk
This is a workshop that shows you how you can create your own small IoT system with an ESP8266 or a CC3220SF, a simple website client and a Node.js backend server
The two projects
In this workshop we are going to create two different projects:
- The first project is a realtime system to control a LED on our ESP with a button on a website and a Java Desktop app
- The second project is a simple weather station that uses a DHT sensor or a TC74A2 with a microcontroller to send measurements to a server which are then displayed on our website in a realtime chart
Build instructions
This are the instructions that you need to follow to build and run the two examples on your own computer:
Node.js websocket server
- Install Node.js latest version if you don't have it and add it to your $PATH
- Go to the right folder
cd server - Install the packages with
npm install - Run the server with
npm start
ESP8266 micocontroller
- Install Visual Studio Code if you don't have it
- Open the right folder in Visual Studio Code
esp8266/ - Install the Platform IO extension and active it in the folder
- When you are building the Weather Station you need to connect a DHT11 sensor to pin D1 see the Breadboard Scheme
- Copy the
config.cpp.exampletoconfig.cppand fill in your WiFi info and your computer local IP-adress and server port - When Platform IO is loaded and everything is downloaded you can build and upload the program with the buttons in the bottom statusbar
CC3220SF microcontroller
- Install the Energia IDE
- Install CC3220SF board with the internal Boards Manager
- When you are building the Weather Station you need to connect a TC74 I2C sensor and a LDR and resistor to pin 60
- Open the right
.inofile - Copy the
config.cpp.exampletoconfig.cppand fill in your WiFi info and your computer local IP-adress and server port - Compile and upload to your device
Website client
- Just double click the
website/index.htmlHTML file to open it in your browser - Or start a integrated web server in Visual Studio Code with the Live Server extention
- Or use python as a simple HTTP server
cd websiteandpython3 -m http.server 5500then go tohttp://localhost:5500/
Java Desktop App (only for Realtime LED example)
- Install Java JDK 8 or higher and add it to your $PATH
- Install Maven and add it also to your $PATH
- Go to the right folder
cd realtime-led/java-app - Use
./build.shto compile and run the application direct - Use
./build.sh releaseto build a static jar file that you can find in thetarget/folder