3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

DIY iPhone controlled electronics

DIY iPhone controlled electronics
In this Instructable I'll show how to control your stuff with your phone and the arduino board. I've controlled everything from smoke machines too christmas light's with this program.




Video:

sorry the video is kinda odd because my camera is trying to adjusting for the light difference.
 
Remove these adsRemove these ads by Signing Up
 

Step 1The parts

The parts
The parts

-NPN transistor

-Iphone/ Android(Using Iphone)

- The TouchOSC app (awesome app)

-Arduino 5v (any type)

-some wire

-Soldering iron

-Breadboard (optional but recommended)

- A Mac or PC

-Some sort of remote or low power button (anything that runs on AA,AAA batteries is usually fine)

-If you want to control a appliance look at the last step fore more info.

and thats it!
« Previous StepDownload PDFView All StepsNext Step »
26 comments
Apr 24, 2012. 3:37 PMKevinAlien26 says:
I am definitely going to do this once i repair my iPods screen :D
Apr 24, 2012. 3:23 PMrklemka says:
By the way, does anyone knows good samples ar tutorial using TouchOSC and Microsoft Visual c++?
Feb 8, 2011. 5:46 PMTheTeslaWarrior says:
hey, i get ""osp5" does not exist." error on controlproccesing.pde
Apr 24, 2012. 3:20 PMrklemka says:
Did you inserted libraary as sead in:

2. You will need to download the oscP5 library for processing
Go here and download the library. Extract the files and move the folder oscP5 to this directory {C:\Users\[your user name]\Documents\Processing\libraries\[put the folder here]}
?
And after inserting you need to turn off all processing windows and rerun it :)

Apr 15, 2012. 3:41 PMrklemka says:
hi, nice article, can you readd pde filoes? Because i can only download tem files, and when I rename them to pde, aplication is incomplete:
import processing.serial.*;
import oscP5.*;
import netP5.*;
OscP5 oscP5;
int alphaValue;
Serial arduinoPort;


float v_push1 = 0.0f;
float v_push2 = 0.0f;
float v_push3 = 0.0f;
float v_push4 = 0.0f;

void setup() {
size(320,440);
frameRate(25);
arduinoPort = new Serial(this, "COM1", 9600);//change to the serial port arduino is on
/* start oscP5, listening for incoming messages at port 8000 */
oscP5 = new OscP5(this,8000);

}

void oscEvent(OscMessage theOscMessage) {

String addr = theOscMessage.addrPattern();
float val = theOscMessage.get(0).floatValue();

if(addr.equals("/1/push1")) { v_push1 = val; }
else if(addr.equals("/1/push2")) { v_push2 = val; }
else if(addr.equals("/1/push3")) { v_push3 = val; }
else if(addr.equals("/1/push4")) { v_push4 = val; }
}

void draw() {
background(0);

// fader5 + push 1-4 outlines
fill(0);
stroke(0, 196, 168);

rect(17,21,287,55);
rect(17,369,60,50);
rect(92,369,60,50);
rect(168,369,60,50);
rect(244,369,60,50);

// fader5 + push 1-4 fills
fill(0, 196, 168);
if(v_push1 == 1.0f) rect(22,374,50,40);
if(v_push2 == 1.0f) rect(97,374,50,40);
if(v_push3 == 1.0f) rect(173,374,50,40);
if(v_push4 == 1.0f) rect(249,374,50,40);

if(v_push1 == 1.0f) arduinoPort.write("U");
if(v_push1 == 0.0f) arduinoPort.write("u");
if(v_push2 == 1.0f) arduinoPort.write("D");
if(v_push2 == 0.0f) arduinoPort.write("d");
if(v_push3 == 1.0f) arduinoPort.write("L");
if(v_push3 == 0.0f) arduinoPort.write("l");
if(v_push4 == 1.0f) arduinoPort.write("R");
if(v_push4 == 0.0f) arduinoPort.write("r");




as I see the rest is missing.
Jul 25, 2011. 11:37 PMxshi26 says:
if you don't want a pc in the middle, check out the ardumote app (http://bit.ly/nGBvjD). VERY easy to use, cheaper, and doesn't require a PC... it sends messages directly to the ethernet shield over WiFi.


http://www.youtube.com/watch?v=lX-VxmEOtIM
Apr 4, 2011. 10:27 AMflyinfinn says:
Hey,
Great writeup! Does this require a PC connection to the phone? I mean, after everything is configured and done, do you still need the PC on to operate the arduino?

Thanks alot!
Shane
Jul 25, 2011. 11:34 PMxshi26 says:
You can control your arduino without a pc in the middle with the Ardumote app: here is a link to it on the app store: http://bit.ly/nGBvjD

found this video of it on youtube: http://www.youtube.com/watch?v=lX-VxmEOtIM
Mar 30, 2011. 6:13 PMjamilm9 says:
Is there a way this could be controlled using a arduino ethernet shield and not have to use a computer? Thanks.
Feb 15, 2011. 10:26 AMcarjo3000 says:
What is the range of the communication? Does it only work within the same wifi network? I was just thinking it would be cool to control something in my house from across town :)
Mar 1, 2011. 7:50 PMcarjo3000 says:
Thanks, it works great! Awesome instructable. Now I'm working on making an IR remote so I can control my TV from my iphone :)
Feb 8, 2011. 10:14 PMmarselsipod says:
This may sound noobish, but how does the phone send the command to the arduino? Do you have a wifi shield for it or something? sorry im tired XD
Feb 8, 2011. 6:27 PMTheTeslaWarrior says:
cool, thanks.
ive been playing around with the program, how would i get it to just do a digital output? i don't have transistors on me.
Feb 8, 2011. 6:39 PMTheTeslaWarrior says:
never mind, got it. thanks for great instructable!
Feb 8, 2011. 7:24 PMTheTeslaWarrior says:
they are fun :)
Feb 5, 2011. 8:36 PMJamo_G says:
Sweeet! I totally want to try this when I get some time =D
Feb 2, 2011. 10:17 PMcomputer_gui says:
The robot is a TI EvalBot right?

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
23
Followers
7
Author:mman1506
I live in Toronto, Canada and I build almost anything computer related, Anything from robots to computer interaction devices. My favorite programming language is C+ and micro controller is avr with t...
more »