Page 1 of 1

Raspberry Pi - Photosensors and Arduino...

Posted: Sun Feb 03, 2013 7:11 pm
by raspberrypiguy1
Hello!

I recently uploaded a new video all about using Photosensors with the Raspberry Pi and Arduino.... GIve it a look here:

http://www.youtube.com/watch?v=CvDWmUw2XTw

Here is the code that I use in the tutorial! Just copy and paste into the Arduino IDE!

Code: Select all

int sensePin = 0;

void setup(){
  Serial.begin(9600);
}

void loop(){
  Serial.println(analogRead(sensePin));
  delay(500);
}
And that should do the trick!

The Raspberry Pi Guy