Posts Tagged ‘ C++ ’

Using an LED as a Light Sensor on Arduino

IMG_0639

Thanks to the magic of electrical properties you can use an LED as a light sensor. It is easy to search and find the details of how and why, so I’m just going to include some code here. Ok, ok… If you plug the LED into one of the Arduino digital pins backwards (i.e. Cathode…

Read more »

Capacitive Input on Arduino

IMG_0638

This is just a small snippet of code for using a digital pin on the Arduino to capture capacitance. To test it I just stuck a paperclip into pin 8. Works great! void setup() {   Serial.begin(9600);      // connect to the serial port } void loop () {   char capval;   char pinval = 1<<PINB0; //digital pin 8…

Read more »

Newark Designs

Hi, I'm arbitrary text. Who are you?

My Twits

Error: Twitter did not respond. Please wait a few minutes and refresh this page.

User Login