Creator's Studio
  • Intro
  • Course Blog
  • Projects
    • Past Student Projects
  • Resources
    • Course Instructional Videos >
      • Adobe Illustrator CS 4
      • Autodesk 123D Design
      • Cardboard Construction
      • Drill Press
      • Hummingbird Robotics
      • Inkscape
      • Miter Saws
      • TinkerCAD
      • Weebly
    • Where to buy for yourself
  • Student Blogs
  • About
    • Teacher Resources
    • Contact
  • Special Projects

Don't Be Alarmed!

8/14/2013

0 Comments

 
Today I wanted to learn a little more about Arduino. I picked up a PIR sensor awhile back because I thought it would be interesting to learn how to make the Arduino react to the outside environment. A PIR sensor can detect motion at different distances, and send a signal back to the Arduino. When there is no motion, it sends a zero, but if there is motion, it sends a "1".

This sounds really simplistic, and it actually is. A "0" and a "1" are all that are needed to make things happen. With the right code, the Arduino can tell a light to turn on, or tell a buzzer to sound, when a "1" is received on the board. It can do many other things as well, but this was a good starting point for me.

I didn't have the background knowledge to write the code from scratch, so I searched the web. At Makezine, a person had posted just such a project, PIR Sensor Arduino Alarm.

Using this tutorial, I gathered my parts, and assembled the project. Below are some pictures of the following materials:
  1. Arduino and breadboard
  2. PIR sensor
  3. LED
  4. Piezo buzzer
  5. Connecting wires
Testing Out the Build
I assembled my materials according to the tutorial, and grabbed the code (sketch) from the website to upload to the Arduino IDE on my Mac. From there, I sent the code to the Arduino board and tested it out. Below is a short video clip of the results. As I move my hand in front of the PIR sensor, it reacts by sending a "1" to the board. Arduino then reacts by turning on the LED and sounding the buzzer.
0 Comments



Leave a Reply.

    Author

    Mr. Umekubo
    "Maker Ordinaire"

    Archives

    February 2020
    October 2019
    September 2019
    April 2019
    December 2018
    September 2018
    May 2017
    March 2017
    February 2017
    January 2017
    December 2016
    November 2016
    September 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015
    September 2015
    June 2015
    May 2015
    April 2015
    March 2015
    February 2015
    November 2014
    October 2014
    September 2014
    July 2014
    June 2014
    May 2014
    April 2014
    March 2014
    February 2014
    January 2014
    December 2013
    November 2013
    October 2013
    September 2013
    August 2013
    July 2013
    June 2013

    Categories

    All
    3d Printing
    3d Scanning
    Arduino
    Automata
    Bristlebots
    Circuits
    Conductive Tape
    Creativity
    Curriculum Integration
    Design Process
    Drill Press
    E Textiles
    Hacking
    Hummingbird
    Laser Cutter
    Laser Cutter
    Makey Makey
    Mechanical Motion
    Minecraft
    Miter Saw
    PIRL
    Professional Development
    Professional Development
    Raspberry Pi
    Robotics
    Rube Goldberg
    Scratch
    Scribblebots
    Set Design
    Soldering
    Squishy Circuits
    Video Instruction
    Wind Tunnel
    Woodworking

Creative Commons License
Creator's Studio by John Umekubo is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Westside Neighborhood School
5401 Beethoven Street, Los Angeles, CA 90066
www.wns-la.org