Peek-a-BOO Kit JAMECO PART NO / / Experience Level: Beginner Time Required: 1+ hour

Similar documents
FABO ACADEMY X ELECTRONIC DESIGN

Programming 2 Servos. Learn to connect and write code to control two servos.

Objectives: Learn what an Arduino is and what it can do Learn what an LED is and how to use it Be able to wire and program an LED to blink

Arduino and Servo Motor

Programming a Servo. Servo. Red Wire. Black Wire. White Wire

Arduino: Sensors for Fun and Non Profit

Coding with Arduino to operate the prosthetic arm

Internet of Things Student STEM Project Jackson High School. Lesson 3: Arduino Solar Tracker

LED + Servo 2 devices, 1 Arduino

Adafruit 16-Channel Servo Driver with Arduino

For this exercise, you will need a partner, an Arduino kit (in the plastic tub), and a laptop with the Arduino programming environment.

Two Hour Robot. Lets build a Robot.

Introduction: Components used:

Rodni What will yours be?

You'll create a lamp that turns a light on and off when you touch a piece of conductive material

Building Machines that Emulate Humans. Lesson plan and more resources are available at: aka.ms/hackingstem

CONSTRUCTION GUIDE Robotic Arm. Robobox. Level II

OTTO THE BIPEDAL ROBOT

A servo is an electric motor that takes in a pulse width modulated signal that controls direction and speed. A servo has three leads:

Learning Objectives. References 10/26/11. Using servos with an Arduino. EAS 199A Fall 2011

Using Servos with an Arduino

Workshop 9: First steps in electronics

Cardboard Circuit Playground Express Inchworm Robot

Lesson4 Obstacle avoidance car

ZX Distance and Gesture Sensor Hookup Guide

How to Build the Robotics++ V2 Robot. Last Edited Nov

Lab 06: Ohm s Law and Servo Motor Control

Project 27 Joystick Servo Control

The Robot Builder's Shield for Arduino

100UF CAPACITOR POTENTIOMETER SERVO MOTOR MOTOR ARM. MALE HEADER PIN (3 pins) INGREDIENTS

APDS-9960 RGB and Gesture Sensor Hookup Guide

TWEAK THE ARDUINO LOGO

Lab 5: Arduino Uno Microcontroller Innovation Fellows Program Bootcamp Prof. Steven S. Saliterman

Sten-Bot Robot Kit Stensat Group LLC, Copyright 2013

Robotic Arm Assembly Instructions

INA169 Breakout Board Hookup Guide

PIR Motion Detector Experiment. In today s crime infested society, security systems have become a much more

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs Introduction to Arduino

Demon Pumpkin APPROXIMATE TIME (EXCLUDING PREPARATION WORK): 1 HOUR PREREQUISITES: PART LIST:

Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators

Arduino STEAM Academy Arduino STEM Academy Art without Engineering is dreaming. Engineering without Art is calculating. - Steven K.

Operating Mode: Serial; (PWM) passive control mode; Autonomous Mode; On/OFF Mode

URM37 V3.2 Ultrasonic Sensor (SKU:SEN0001)

Content Components... 1 i. Acrylic Plates... 1 ii. Mechanical Fasteners... 3 iii. Electrical Components... 4 Introduction... 5 Getting Started... 6 Ar

Adafruit 16-channel PWM/Servo Shield

Internet of Things Student STEM Project Jackson High School. Lesson 2: Arduino and LED

smraza Getting Start Guide Contents Arduino IDE (Integrated Development Environment)... 1 Introduction... 1 Install the Arduino Software (IDE)...

2D Floor-Mapping Car

Measuring Distance Using Sound

Montgomery Village Arduino Meetup Dec 10, 2016

Fryer's Trebuchet Paper Kits

CamJam EduKit Robotics Worksheet Six Distance Sensor camjam.me/edukit

Safe Landing of Autonomous Amphibious Unmanned Aerial Vehicle on Water

BUILDING A VR VIEWER COMPLETE BUILD ASSEMBLY

INS TRUC T I ON M A NU A L

Controlling a Sprite with Ultrasound

designed by Andrea Schewe

MATERIALS TO GATHER. Electronic Parts

Prelab: Introduction and Greenhouse Construction

Performance Analysis of Ultrasonic Mapping Device and Radar

Cardboard Box for Circuit Playground Express

J. La Favre Using Arduino with Raspberry Pi February 7, 2018

The µbotino Microcontroller Board

Sunday, November 4, The LadyUno Sound Unit

(Build Instructions)

Figure 1. Digilent DC Motor

3.5 hour Drawing Machines Workshop

Getting started with the SparkFun Inventor's Kit for Google's Science Journal App

Arduino Lesson 1. Blink. Created by Simon Monk

Assignments from last week

Lab 2.4 Arduinos, Resistors, and Circuits

Adafruit 16-channel PWM/Servo Shield

Parts List. Robotic Arm segments ¼ inch screws Cable XBEE module or Wifi module

Using Transistors and Driving Motors

Servo Sweep. Learn to make a regular Servo move in a sweeping motion.

StenBOT Robot Kit. Stensat Group LLC, Copyright 2018

Arduino Sensor Beginners Guide

Sten BOT Robot Kit 1 Stensat Group LLC, Copyright 2016

CONSTRUCTION GUIDE IR Alarm. Robobox. Level I

Pololu DRV8835 Dual Motor Driver Kit for Raspberry Pi B+

Attribution Thank you to Arduino and SparkFun for open source access to reference materials.

Adafruit 16-Channel Servo Driver with Arduino

Introduction. 1 of 44

Secret Storage Book. Part Lists. The Book

LaserPING Rangefinder Module (#28041)

Never power this piano with anything other than a standard 9V battery!

MAE106 Laboratory Exercises Lab # 1 - Laboratory tools

Wind Turbine Experimenter s Kit User Guide

Objective of the lesson

Preface. If you have any TECHNICAL questions, add a topic under FORUM section on our website and we'll reply as soon as possible.

A3 Pro INSTRUCTION MANUAL. Oct 25, 2017 Revision IMPORTANT NOTES

Arduino An Introduction

Lesson 3: Arduino. Goals

28in Super EVA Foam. F-22 Raptor Kit. Specifications. Wingspan: 27.5in (700mm) Length: 38.3in (975mm) Flying Weight: Approx. 1.

The USELESS BOX. Procedure:

Make a Sympathy Doll

Lab 2: Blinkie Lab. Objectives. Materials. Theory

Analog Feedback Servos

Over Speed Vehicle Marking System Using Arduino UNO Controlled Air Cannon

CONTENTS. x 32 ½ ½ ½ ½ ½ ½ ½ ½ ½ ½ ½ ½ ½ ½ ½ ½. x 4. A Planks. B Planks. C Planks. Basic Planks for Construction x 14 Basic Planks for Targets x 18

Transcription:

Peek-a-BOO Kit JAMECO PART NO. 2260076/2260084/2260092 Experience Level: Beginner Time Required: 1+ hour Make a ghost that reacts to an approaching object in the room. When idle, the ghost will keep its eyes covered, and when someone walks past, it will quickly uncover its eyes. The main body and arms of the ghost can be made out of cardboard or poster board. You'll want something sturdy, but not too thick that the servo can't attach to the arms. More cardboard can be used to create a support to keep the ghost propped up. The downloadable sample code starts the reaction distance at three feet away. You can adjust the distance, delay time and variables used for each servo to change the swing of the arms to change the behavior of the ghost. Required tools and parts: Cardboard or poster board White paper for the ghostly image Tape or hot glue Computer with latest Arduino IDE Ultrasonic library (download) http://www.jameco.com/jameco/products/prodsw/2206168additionalfiles.zip Ghost sample code (download) http://www.jameco.com/jameco/products/prodsw/2260076samplecode.zip Kit Includes (1) Arduino Uno* (1) breadboard (2) micro servos (1) sensor Connecting wires* *May not be included in all kits depending on kit version. Instructions are the same regardless.

Step 1 Draw your ghost on a piece of paper. You can also draw some arms when you know how long they should be. Make sure the arms are wide enough to cover the round servo attachment. Cut out the ghost and arms and save the scrap pieces. Step 2 Trace the ghost and arm shapes onto a piece of cardboard using the scrap left over from cutting out the ghost. Step 3 Cut out the ghost and arms from the cardboard with a hobby knife.

Step 4 Use hot glue and attach the round servo attachment close to the end of the arm. Step 5 Cut the arm holes where the servo shafts will connect from the back side. Step 6 Trace the ultrasonic sensor on the backside of the paper ghost, and cut out the circles with a hobby knife. Place the paper ghost over the cardboard ghost and trace the sensor circle cutouts. Carefully cut out the circles.

Step 7 Use a little hot glue to attach the paper ghost to the cardboard. You can temporarily mount the sensor to help hold everything in place. Glue a little at a time and work from one side to the other. Do the same for the arms. Step 8 Use some cardboard scraps as a base and upright support for the ghost. Use hot glue to attach the pieces.

Step 9 Use hot glue to attach the servos to the back of the cardboard ghost so both have the same vertical orientation. Be careful not to get any glue on the shaft. Hold them in place until the glue dries. Wait to attach the arms until after you've centered the servos. Step 10 Make the connections: Connect a wire from the black wire on one of the servos (ground) to your breadboard. Connect a wire from the black wire on the other servo to the same row on the breadboard as the other black wire. (Both servo black wires on the same row). Connect a wire from the red wire of one servo (power) into a new row on your breadboard. Connect a wire from the red wire on the other servo to the same row on the breadboard as the other red wire. (Both servo red wires on the same row). Connect a wire from the white (or yellow) wire on the ghost's right arm servo (signal) to pin 9 on the Arduino Uno Connect a wire from the white (or yellow) wire on the ghost's left arm servo to pin 10 on the Arduino Uno.

Connect a jumper wire from the GND pin on the ultrasonic sensor to the ground row on the breadboard. It should also share the connections with the black wires of both servos. Connect a wire from the row of ground (black) connections on the breadboard to the GND pin on the Arduino Uno. Connect a jumper wire from the VCC pin on the ultrasonic sensor to the power row on the breadboard. It should also share the connections with the red wires of both servos. Connect a wire from the row of power (red) connections on the breadboard to the 5V pin on the Arduino Uno. Connect a jumper wire from the TRIG pin on the ultrasonic sensor to a new row on the breadboard. Connect a jumper wire from the ECHO pin on the ultrasonic sensor to the same row as the TRIG pin on the breadboard. Connect a wire from the TRIG/ECHO row on the breadboard to pin 7 on the Arduino Uno. Mount the servo in the mouth of the ghost. Use a Sharpie to black out the silver color of the sensor. Connect a wire from the row of power connections (red) to the 5V pin on the Arduino Uno. Connect a wire from the row of ground connections (black) to the GND pin on the Arduino Uno. Step 11 Upload the code. Make sure you have the Ultrasonic_Ranger library installed first. You need to center the servos at their midpoint before you can attach the arms. Open the Ghost code and delete everything in the main loop so the Arduino will only initialize the servos and center them at 90. You main loop should just say: void loop() #include <Servo.h> /* The servos are both positioned in the same orientation. 90 is the midpoint. The right arm servo should use values from 90 to 0, and the left arm servo should use values from 90 to 180.*/ Servo rarm; // create a servo object for the right arm Servo larm; // create a servo object for the left arm void setup() rarm.attach(9); // attach the servo to pin 9 in the servo object larm.attach(10); // attach the servo to pin 10 in the servo object rarm.write(90); // set the servo to the midpoint larm.write(90); // set the servo to the midpoint void loop() Attach the arms so they are covering the eyes when at the centered position. Reload the Ghost loop with the main loop intact which will incorporate the ultrasonic sensor. By default, 36" is the trigger point for the ghost to react. You can change the reaction distance, delay time before responding again, and the amount of arm movement. The right arm should use values from 90 to 0, and the left arm should use values from 90 to 180.

#include <Servo.h> #include "Ultrasonic.h" /* The servos are both positioned in the same orientation. 90 is the midpoint. The right arm servo should use values from 90 to 0, and the left arm servo should use values from 90 to 180.*/ Servo rarm; // create a servo object for the right arm Servo larm; // create a servo object for the left arm Ultrasonic sensor(7); // create the object for the sensor void setup() rarm.attach(9); // attach the servo to pin 9 in the servo object larm.attach(10); // attach the servo to pin 10 in the servo object rarm.write(90); // set the servo to the midpoint larm.write(90); // set the servo to the midpoint void loop() sensor.measure(); //send a ping and listen for echo if (sensor.rangeininches > 36) //change number for distance reaction larm.write(90); //eyes covered rarm.write(90); //eyes covered delay(500); else larm.write(120); //eyes uncovered rarm.write(60); //eyes uncovered delay(2000);