I’d like to use the my Android phone to control Edison, so I went to the Intel website to search some info. Luckily, I found an article named COMMUNICATE TO ARDUINO CODE WITH YOUR ANDROID* PHONE BY BLUETOOTH SERIAL PORT PROFILE (SPP) ON INTEL® EDISON which is written by FRANKY H. is very suit for me.
In this tutorial we’ll get the command that input from SPP in the Arduino code, and control a Relay. Meanwhile, a button can also decide the Relay state.
You should insert the Base Shield board to the Intel Edison for Arduino board, and connect Grove – Button to the D4 port, Grove – Relay to the D3 port. Just as below picture shows.
Then you need to get a table lamp, and had to damage it.
Clip one wire and connect to the terminal of Grove – Relay, as shown below.
1.Download the file Bluetooth-sersvice.tar.gz
2.Copy Bluetooth-service.tar.gz to /home/root/Bluetooth and extract it
mkdir /home/root/bluetoothcd /home/root/bluetoothmv /home/root/bluetooth-service.tar.gz ./tar -xvf bluetooth-service.tar.gz
3.Copy Bluetooth-spp-pin.service to /lib/systemd/system
cp bluetooth-spp-pin.service /lib/systemd/system
4.Enable the system service
systemctl enable bluetooth-spp-pin
5.Reboot your device
6.Double check the service
systemctl status bluetooth-spp-pin<div></div>
We assume you have connected your Edison for Arduino board and computer well with USB.
Congratulations, you have already completed the most of the work.
There are many ways to do this, but I think the article written by Karthik M. is easy enough. Please put hand on here to learn more.
You can press and hold the button down to customize. The result is just as picture below shows.
Now you can remote control your table lamp by using Bluetooth SPP APP, or you can also press the Grove - Button to turn on/off the light.
This project is made as an Open Source Project. It's a starting point. Let your creativity go wild with the mechanical, electrical and software design. Make the demo your own. Decorate it. Improve the work. No matter what, write a recipe about it.
To share and progress together.