Interested in building your own Internet-of-Things (IoT) project? Now is the right time to do it! ESPert is an platform that allow anyone to develop their own IoT solution easily and affordably.
By using ESPresso Lite V2.0, you can create your very own IoT project. It uses the ESP8266 chipset as the main micro-controller which also supports the Arduino environment. Beginners with little to no experience in software programming or electronics can start building their objects by simply connecting them together.
In this tutorial, we will use MaxSonar Ultrasonic Range Finder as our sensor. Having a ultrasonic range finder can be very useful in many different projects. It works better outdoors then the IR sensor. It basically sends a high frequency wave in one direction, the wave hits a object that reflects the wave. When the wave gets back to the sensor, it calculates the distance depending on the time it takes to go and back.
This is a connection for ESPresso for this project.
Step by Step (Hardware)
2. After setting up and familiarising yourself with ESPresso, we can start the wiring process. Place your ESPresso on a breadboard and setup the connection like above.
3. For this tutorial, we will using ESPert IoT Mobile App on our smartphone. But first, we need to create an account at ESPert.io.
4. If you don’t have an account yet, create an account by registering your email.
5. Login to the server
6. Install ESpert IoT Mobile App on your smartphone.
7. Login to ESPert.io on your laptop and this page will appear.
8. Then, on ESPert.io web, click the Smartphone column. Your email will be displayed on the screen.
9. To send a message to your smartphone using this website, click icon
10. You can send any message from this web and your phone will get notification about that message from the app.
For example, I just send a message “Hello World” and my smartphone will receive a notification like below.
Step by Step (Software)
For this tutorial, I will apply this project to my dustbin so I will get a notification when my dustbin is full.
1. Open the source code. Copy the code into the software Arduino IDE.
2. From the code, you need to replace the smartphone key.
3. Your smartphone key can be found at your ESPert.io website. It will appear on the URL of the webpage that sends messages to your smartphone.
4. Next, choose the correct board and port for your ESPresso Lite and upload the code.
5. To see the range of Ultrasonic sensor, open serial monitor. Set the baud rate to 115200.
From that, you can adjust the limit for the sensor. Default limit is 35.
6. When the ultrasonic sensor detects that the dustbin is at its limit for five times continuously(to prevent errors due to random objects blocking the ultrasonic sensor), the dustbin is considered full.
7. When the dustbin is full, the LED indicator will light up, the OLED Screen will display the message to the user. At the same time, the smartphone will get a notification from ESPert IoT Mobile App.
8. Done. Now, you can place the hardware at your dustbin and test the functionality of this application.
Okay, that’s all. If you have any question, feel free to ask in our technical forum as we seldom check the tutorial’s comment section. Thank you.
3. Distance Detection with Maxsonar Ultrasonic Range Finder by Bruce Allen from http://playground.arduino.cc/