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

Similar documents
Lab 2: Blinkie Lab. Objectives. Materials. Theory

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 Workshop 01. AD32600 Physical Computing Prof. Fabian Winkler Fall 2014

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

Coding with Arduino to operate the prosthetic arm

Electronic Components

Arduino Setup & Flexing the ExBow

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

Battle Crab. Build Instructions. ALPHA Version

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

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

Getting Started with the micro:bit

Rodni What will yours be?

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

APDS-9960 RGB and Gesture Sensor Hookup Guide

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

INA169 Breakout Board Hookup Guide

Two Hour Robot. Lets build a Robot.

Lesson 3: Arduino. Goals

Arduino An Introduction

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

Figure 1. CheapBot Smart Proximity Detector

Pulse Width Modulation and

INSTANT ROBOT SHIELD (AXE408)

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

Montgomery Village Arduino Meetup Dec 10, 2016

Adafruit 16-Channel Servo Driver with Arduino

Nano v3 pinout 19 AUG ver 3 rev 1.

Introduction to the Arduino Kit

HB-25 Motor Controller (#29144)

Ardweeny 1.60" 0.54" Simple construction - only 7 parts plus pins & PCB! Ideal for breadboard applications

Adafruit 16-Channel PWM/Servo HAT & Bonnet for Raspberry Pi

LED + Servo 2 devices, 1 Arduino

ZX Distance and Gesture Sensor Hookup Guide

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

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Lab Timer: Blinking LED Lights and Pulse Generator

Rangefinder Servo and LED Controller Board Hyperdyne Labs, 2001

1 Day Robot Building (MC40A + Aluminum Base) for Edubot 2.0

The µbotino Microcontroller Board

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

FABO ACADEMY X ELECTRONIC DESIGN

Arduino: Sensors for Fun and Non Profit

Adafruit 16-channel PWM/Servo Shield

HAW-Arduino. Sensors and Arduino F. Schubert HAW - Arduino 1

Breadboard Arduino Compatible Assembly Guide

Bill of Materials: Metronome Kit PART NO

Adafruit 16-Channel PWM/Servo HAT for Raspberry Pi

Adafruit 16-Channel Servo Driver with Arduino

MAKEVMA502 BASIC DIY KIT WITH ATMEGA2560 FOR ARDUINO USER MANUAL

EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE

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

meped v2 Assembly Manual

PLAN DE FORMACIÓN EN LENGUAS EXTRANJERAS IN-57 Technology for ESO: Contents and Strategies

The USELESS BOX. Procedure:

Sten-Bot Robot Kit Stensat Group LLC, Copyright 2013

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

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

Digital Electronics & Chip Design

RC Servo Interface. Figure Bipolar amplifier connected to a large DC motor

Milli Developer Kit Reference Application Published on Silver Spring Networks STAGE (

Congratulations on your purchase of the SparkFun Arduino ProtoShield Kit!

3.5 hour Drawing Machines Workshop

ARDUINO / GENUINO. start as professional

DoodleBot. ME 5643 Final Project Presentation Matt Galligan, Dustyn Roberts, Hussein Saab December 19, 2011

DC Motor and Servo motor Control with ARM and Arduino. Created by:

MATERIALS TO GATHER. Electronic Parts

Circuit Board Assembly Instructions for Babuinobot 1.0

Installation tutorial for Console Customs PS3 TrueFire Standard Rapid fire Microchip for Sixaxis and Dualshock 3 controllers

Installation tutorial for Console Customs Xbox ONE MaxFire ONE V2 PCB

Adafruit 16-Channel Servo Driver with Arduino

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

Flight control Set and Kit

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

Built-in soft-start feature. Up-Slope and Down-Slope. Power-Up safe start feature. Motor will only start if pulse of 1.5ms is detected.

Pulse-Width-Modulation Motor Speed Control with a PIC (modified from lab text by Alciatore)

On the front of the board there are a number of components that are pretty visible right off the bat!

Heartboard PCB Assembly Instructions

Adafruit 16-channel PWM/Servo Shield

LEARN ARDUINO SENSORS ALL SENSORS DESCRIPTION APPLICATION SPECIFICATIONS EXAMPLE CODES NOTES DOWNLOADS DHT11, DHT22 AND AM2302 SENSORS ADAFRUIT

Module: Arduino as Signal Generator

CONSTRUCTION GUIDE Robotic Arm. Robobox. Level II

Musical Pencil. Tutorial modified from musical pencil/

TETRIX PULSE Workshop Guide

Sunday, November 4, The LadyUno Sound Unit

LEDs and Sensors Part 2: Analog to Digital

Introduction to the EXPANSION HUB

Starship Lighting Kit

Bill of Materials: PWM Stepper Motor Driver PART NO

The Torxis Linear Servo meets the following environmental conditions:

LaserPING Rangefinder Module (#28041)

SB Protoshield v1.0. -Compatible Prototyping & Breadboard Shield Design and build your own interface for your Arduino-compatible microcontroller!

555 Morse Code Practice Oscillator Kit (draft 1.1)

Hobby Servo Tutorial. Introduction. Sparkfun:

The Motor sketch. One Direction ON-OFF DC Motor

EGR Laboratory 1 - Introduction to Circuit Analysis

AUTOMATIC CLOTH FOLDING MACHINE

Lab 2.4 Arduinos, Resistors, and Circuits

Name & SID 1 : Name & SID 2:

Light Emitting Diode IV Characterization

Blue Point Engineering

Transcription:

Demon Pumpkin This is a lab guide for creating your own simple animatronic pumpkin. This project encourages students and makers to innovate upon the base design to add their own personal touches. APPROXIMATE TIME (EXCLUDING PREPARATION WORK): 1 HOUR PREREQUISITES: Setup / Install latest Arduino software from http://www.arduino.cc/en/main/software. These instructions were tested / verified with version Arduino version 1.6.5 Download sketch code from http://github.com/skoonstudios/demonpumpkin Although not specifically required, basic soldering skills are useful to make this a permanent project PART LIST: Most of these parts can easily be obtained on the Internet through searching, however they are all readily available on sites such as Adafruit or SparkFun *. Arduino Uno Rev 3 or similar board based on the ATMega328P chipset. o If looking for a smaller form factor board, some of the various wearable boards will work as well (Trinket Pro, etc ) Small Pumpkin o The larger the pumpkin, the larger the servo to lift the head will need to be 5 mm Red LEDs (x 2) 220 Ohm Resistor (x 2) High Torque Micro Servo (e.g. Tower Pro MG90S) o When selecting a servo, be mindful of the operating voltage and the amount of torque that is used to ensure that it is compatible with the Arduino board. Battery / USB Power Source The following parts may be optional depending on your configuration Breadboard Jumpers / Wiring P a g e 1

TOOLS: Pumpkin Carving Tools Drill / Drill Bits Wire Cutter / Stripper Soldering Iron (if soldering) Shrink Wrap / Heat Gun (optional) INSTRUCTIONS: A) Carving The Pumpkin 1) The pumpkin needs to have the top half completely separate from the bottom half so that the jaw is able to move. 2) Scoop out the seeds and goop from the inside of the pumpkin 3) Drill holes the size of the LED in the upper half of the front of the pumpkin for the LEDs to rest in. The holes should NOT go all the way through the pumpkin, but rather approximately half way so that the eyes will appear partially recessed in the rind of the pumpkin 4) Cut off two 1.5 2 sections of the metal coat hanger 5) Drill a hole smaller than the diameter of the coat hanger on the back side of the pumpkin (represented by the black dots) going horizontally from the top half into the bottom half. Push the coat hanger through this hole to act as a hinge which will hold the two halves together. 6) Mount the servo on the side of the pumpkin bottom with the arm positioned so it can lift the top half. 7) Drill a larger hole on the bottom of the pumpkin (opposite of the stem) to feed in hidden wires into the pumpkin. P a g e 2

B) Wiring The Circuit 1) Wire the circuit per the following diagram 2) Some notes about the circuit The black wires generally represent connection to ground, the red wires represent a connection to power (+5V), and the yellow / orange wires are control wires although they have power running through them as well. Resistors - There are a ton of other websites dedicated to this, but we need to have a resistor here to limit the current across the LED to a safe value. Without a resistor, the LED will quickly overload and pop For the LED, the cathode (-) is typically the shorter leg, the anode (+) is typically the longer leg. If you hook up the polarity backwards, the LED will not light up The servo can be a big power drain / spike on the circuit. If the battery power is too low, it can cause the Arduino to reset. Additionally, there are some schools of thought that recommend isolating circuits to prevent damage to the Arduino caused by spikes. While I generally agree that is a good idea, in the interest of simplicity here, it has been omitted. You will notice that the control pins for the LEDs and the Servo have a ~ besides them. This indicates that they are a Pulse Width Modulation (PWM) channel. More information can be found here if you are interested in reading more. 3) The LED legs will stick through the rind of the pumpkin to be wired to the ground and resistors respectively. 4) The servo motor can be mounted in the pumpkin P a g e 3

C) Programming The Circuit 1) Hook the Arduino board up to the computer via USB cable 2) In the Arduino UI, select the appropriate board / COM port 3) Load the code sketch downloaded in the Prerequisites section 4) Upload it to the board The Arduino sketch has 2 main functions that are called when the board is first powered on. Initially, the setup() function is first called to initialize various components and variables within the program. The setup code here does the following: Sets the initial state of the variables (the eyebrightness, and mouthposistion). This function also sets up the _NextEventTime variable which is compared against the onboard timer to determine when the pumpkin will either come alive next or go back to sleep. Initializes the random number generator Configures the pins used to control both the LEDs as well as the Mouth Servo The other function that will then get called indefinitely is the loop() function. When it is time for the state to change (either wake up or go to sleep), the following logic occurs. The Pumpkin Is Asleep o The LEDs will Fade On (eyefadeinout()) o After the LEDs are at full brightness, the timer is set for 20 seconds (defined by EVENT_INTERVAL_MSEC) to turn off the effects. o The code then uses the random number generator to determine the effects that get used (if the mouth moves, and how the eyes blink). The Pumpkin Is Awake o Each time loop()is called, the minor updates to the eyes and mouth are made by updateeyestate() and updatemouthstate() respectively. o At the end of the wake interval, the LEDs will Fade Out (eyefadeinout()) o After the LEDs are completely out, the timer is set for 2 minutes (defined by WAKE_INTERVAL_MSEC) to wake up again. SUMMARY / ACKNOWLEFGEMENTS: This project was originally created while se to display at the 2015 Charlotte Mini Makers Faire at Discovery Place. It was conceived through various ideas gathered online as a quick, cheap, easy project to demonstrate creative ways to utilize a programmable microcontroller. We encourage you to innovate and put your own creative touches on this project with some ideas may including (but not limited to motion sensor, sounds, and other code innovations for different effects). Please keep this document fully intact, and if you do build, innovate, or have questions on this project, I do ask that you please let us know at info@skoonstudios.com. P a g e 4

http://www.skoonstudios.com Last Revised: October 18, 2015 * Skoon Studios, LLC has no affiliation or specific endorsement with Adafruit Industries or SparkFun but in the past have bought components and recommended the detailed tutorials and instructions available on the respective sites. P a g e 5