We've all done it. You leave the house for work in the morning and you wonder if you left the garage light on. You decide not to worry about it, and then get in trouble with your wife/husband/girlfriend/boyfriend/roommate for clocking up the energy bill. Sound familiar? Well have no fear! With a couple of components, and your Teleduino enabled Arduino device, you can check the light level from anywhere via the internet. Suave!

This process is made really simple using the Teleduino sketch for your ethernet enabled Arduino. Haven't heard of Teleduino? That's cool, you may want to take a look at Arduino Control via a Web Service with Teleduino to get yourself started.

This tutorial will guide you through the process of attaching a LDR (Light Dependant Resistor) to your Arduino, and provide some example Teleduino API calls to:
  • Fetch the value of an analog input
  • Fetch all inputs with a single API call

If you get stuck on any of the steps, or if you feel that there is a step that could be explained better, please leave a comment so that we can improve things.

Let's get cracking!

Step 1: Parts Needed and Circuit Diagram

Parts Needed
The need the following parts to complete this tutorial:
  • Breadboard (optional, but makes prototyping much easier)
  • 10K Resistor
  • LDR (Light Dependant Resistor)
  • Some hookup wire
Circuit Diagram
Take a peak at the attached circuit diagram. It shows how the components need to be connected. Pretty simple!

Let's get it all together!

About This Instructable


10 favorites


Bio: Developer of the telecontrol and telemonitoring system Teleduino, using the Arduino platform.
More by nathanknz: Control Servos over the Internet via Arduino with Teleduino Read Light Level over the Internet via Arduino with Teleduino Control a Relay over the Internet via Arduino with Teleduino
Add instructable to: