PIR Motion Sensor for ArLCD Touchscreen Backlight




About: From Arduino to Rube Goldberg follow along as we explore engineering together. With a focus on electronics come see projects based on 3d printing, physics, and fun. Mod your toys, upgrade your tools, and cus...

Hi, its Jazz with a new tutorial.  Today we are going to be using a PIR motion sensor to change the brightness of the arLCD screen.  Motion detection is useful for things you don't want on all the time.  For example to save battery life and to turn the screen off when you are not there.  For this project you will need three jumper wires, a breadboard, PIR motion sensor, and an arLCD.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Assembly

The motion sensor has three pins one for signal, VCC for five volts, and ground.  Place the PIR sensor on the board so each pin has its own row.  Put a jumper wire in each row.  Hook up the signal out jumper wire to any digital pin that you want but I used pin three.  Hook up the VCC to five volts and the ground to the ground pin on the Arduino.

Step 2: Code

Copy and paste the code below into your Arduino IDE


ezLCD3 lcd;

int pirPin = 3;

void setup()
  lcd.begin( EZM_BAUD_RATE );
  pinMode(pirPin, INPUT);

void loop()
  if(digitalRead(pirPin) == HIGH)
  if(digitalRead(pirPin) == LOW)

Arduino Contest

Participated in the
Arduino Contest

Full Spectrum Laser Contest

Participated in the
Full Spectrum Laser Contest

Be the First to Share


    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    2 Discussions


    4 years ago

    Smart idea! I really like this project! :)

    1 reply