Compare as many tool options as possible.
- Write an application that interfaces a user with an input and/or output device that you made
MIT App Inventor is a visual programming environment that allows everyone to build fully functional apps
for Android and iOS smartphones and tablets.
I designed an application that interfaces with the Ultrasonic sensor in my Final Project by using the MIT App Inventor
This is the blocks I designed to connect Bluetooth in the smartphone with Bluetooth in the microcontroller ESP32CAM. In addition to show the words (Someone is outside) with doorbell sound and vibration in the smartphone OR to show the word (Nothing) depending on the ultrasonic sensor's readings.
This is the design in MIT App Inventor
The following image shows how the app looks like in an Android Smarthphone
The images below shows the pinout of the ESP32CAM microcontroller I used and the code I updated to program the app with the ultrasonic sensor.
The Trig pin of the ultrasonic sensor is connected to pin GPIO 2 in the ESP32CAM and Echo pin in the ultrasonic sensor is connected to pin GPIO 14 in the microcontroller.
Later on I updated the code of my final project to program a Neopixle LEDs strip to light up with blue color.
I attached all code file below in the files list.
The following video show how the sensor works with the app.
|Sensor and App Code||Arduino IDE File|
|Final Project Code||Arduino IDE File|
|Smart DoorBell App||MIT App|