Connecting ardubbery and pi to a mobile phone


A friend of mine and I want to use Raspberrry pi for a school project. Our idea was to be able to acces the pi from you mobile phone, and in conjunction with a arduberry controll something like a light (probably using an arduino relay shield).

I’ve looked around the internet to see if I can find things that could help me with this and I stumbled upon the Piui. This seemed like a handy tool since it was easy to connect a phone to the pi in that way, but is it possible to either use the arduino development kit to edit the arduino scripts and use that too change the light on or off, even better would be to automate the raspberry pi to upload a few already existing arduino files to the arduberry when pressing a button on your phone.

hope anyone can help me with this


It should be possible to control a light with the Arduberry and the Raspberry Pi with the PiUi. If you look at the time-lapse example,, there is a function call() which runs scripts on the Raspberry Pi. So you can create 2 Arduino sketches, one to turn on the light and the turn off the light and save the hex files that you get when you compile the code in the same directory as the python code. When a button is pressed, you can send avrdude -c gpio -p m328p -U flash:w:on.hex or avrdude -c gpio -p m328p -U flash:w:off.hex , where on.hex and off.hex are the arduino firmware which turn on and off the lights.

You can also have a look at Wyliodrin which has support for the GrovePi ( and you should be able to use the Grove Relay to control it