I would like to create a device that uses data (distance from an obstacle) through an ultrasonic sensor and sends it to the app inventor and the app inventor uses that data to make a beep sound on the phone based on the distance received. This is my current arduino code that receives distance based on a formula.
It also has a vibration motor and buzzer physically that beeps and vibrates when the distance is under 61 cm as shown in the code. I would like to keep this feature but if it is not possible I am okay with the app and phone making the sound. Thanks!
Have you seen
?
You would have to set up a web server on the Arduino or have it talk to a common web server available to the Ai2 app.
Search this board for MQTT.
Alternatively, does it have Bluetooth support?
We have lots of those.
