Intel Edison and Grove Sound Sensor - Send Message to Mobile Via MQTT
by GlaucoJ in Circuits > Microcontrollers
1732 Views, 3 Favorites, 0 Comments
Intel Edison and Grove Sound Sensor - Send Message to Mobile Via MQTT
This project use a sound sensor to capture sounds and monitoring sound intensity, when the sound reaches a high level, the Edison sends a MQTT message thats will be displayed on the Mobiles and/or PCs subscribed on the same topic.
The message could be delivered by a Cloud Server or directly via local network.
To start plug your Grove Sound Sensor in the A0 pins of the analog port on the ArduĂno.
After this plug the 2 USB cables to the MicroUSB Type B on the Edison board and on your computer USB.
Connects to your Edison via SSH:
$ ssh root@your_edison_name
Install and configure mosquitto service on Edison (I follow this tutorial):
https://software.intel.com/en-us/blogs/2015/02/20/...
Get the PIP package to manage python libs:
root@your_edison_name# wget https://bootstrap.pypa.io/get-pip.py
root@your_edison_name# python get-pip.py
Now that you have PIP, lets install the "mosquitto" python library:
root@your_edison_name# pip install mosquitto
And write the python script to put all together: