Tag Archives: howto

Making an LED Sensor Light with Arduino

This video tutorial explains how to use an Arduino Uno to make an LED light. A light sensor will detect low-light conditions to turn on an LED and also turn off an LED when light is present.

The project involves an Arduino Uno board, an LED, a light sensor which can detect different levels of light and return a value, and a breadboard with jumper wires.

The way the project works is as follows. Use the light sensor to get light readings constantly. You can specify a value which, when the light is less than this value an LED light will be turned on, and when the light is greater than this value the LED light will be turned off.

This project allows you to work with getting readings from a sensor (input), use if statements to test conditions, and use an LED to produce some form of output.

Click Tools > Serial Monitor and set to 9600 baud to view the light sensor readings received from the Arduino when it is connected via USB to the computer.

Watch the video below or click here to view it on YouTube.


The source code is also available here:

int led = 13;
int lightReading = 0;

void setup () {
  pinMode(led, OUTPUT);

void loop () {
  lightReading = analogRead(A2);
  Serial.println(lightReading, DEC);
  if (lightReading < 50) // change this value to suit light conditions. Ranges from 0 (very dark) to 1023 (very bright).
    digitalWrite(led, HIGH); // turns the light on
    Serial.println("light on");
    digitalWrite(led, LOW); // turns the light off
    Serial.println("light off");
  // Delay of 1000ms before checking light level again

Diagram and photos


The photos below show the same layout although a 470 Ohm resistor is also being used.


2 3

Light sensor readings
Light sensor readings

Blinking LED Arduino project

This video tutorial has been designed for those just starting out with Arduino. For this beginner project you will need an Arduino Uno board (or compatible board), an LED of any colour, a 470-Ohm resistor, two jumper wires, a breadboard, a male A-B USB cable, and a computer (Mac/Windows) with the Arduino IDE software installed.

This project involves programming your Arduino Uno to make an LED light blink on and off. To get started, watch the video below or click here to view it on YouTube. Access the links below to get a copy of the code, printed instructions, schematic, and a guide to resistors.


The source code is also available here:

 Turns on an LED on for one second, then off for one second, repeatedly.
// Give the LED a name - it will be connected on PIN 13
int led = 13;
// the setup routine runs once when you press reset:
void setup() { 
 // initialize the digital pin as an output.
 pinMode(led, OUTPUT); 
// the loop routine runs over and over again forever:
void loop() {
 digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
 delay(1000); // wait for a second (1000 = 1 sec.)
 digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
 delay(1000); // wait for a second


1 2 3 4

How To Make Animated GIFs in Adobe Photoshop CC 2014

This video tutorial explains how to make animated GIFs by making multiple layers and converting them to frames on an animation timeline. This tutorial shows how to do this in Adobe Photoshop CC 2014. Click here to view the video on YouTube or view it below.

How to remove blemishes from a photo with Adobe Photoshop CC

Do you have any photos with dust or dirt marks or maybe some old scanned photos with marks on them you’d like to clean up? This video explains how to remove marks and blemishes, and blend colours in using the Spot Healing brush and the Clone Stamp tool. You can watch the video below or click here to view it on YouTube.