CMPT Wire Tri-Colour LED and Magnetic Contact Switch

Similar documents
Basic Electronics Course Part 1

CamJam EduKit Sensors Worksheet Three. Equipment Required. The Parts

Techgirlz Workshop Scratch and Raspberry Pi

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

Building an Electric Circuit to Convert the Sensor Resistance into a Usable Voltage INSTRUCTIONS

DARK ACTIVATED COLOUR CHANGING NIGHT LIGHT KIT

1103 Period 16: Electrical Resistance and Joule Heating

SC30 powered through NN3D (6 meter antenna cable)

Physics Work with your neighbor. Ask me for help if you re stuck. Don t hesistate to compare notes with nearby groups.

DIY Synth Kit - Manual STUTTER SYNTH

General Purpose Flasher Circuit

BREADBOARD PLUGIN POWER SUPPLY # REV3 +5VDC

PRODUCT MANUAL Gecko Wireless One Zone LED Dimmer and Receiver

Circuit Analysis Questions A level standard

Engineers in Training Day 2. Developed by Shodor and Michael Woody

Device Interfacing with Python and ZIO

C capacitance, 91 capacitors, codes for, 283 coupling, polarized and nonpolarized,

ELECTRICITY & MAGNETISM - EXAMINATION QUESTIONS (4)

Digital Multimeter: This handheld device is used by this course to measure voltage and resistance we will not use this to measure current or capacitan

Electronic STEM Kit. 15 Projects-in-1. Documentation

Experiment P-16 Basic Electromagnetism

SLIMFLEX LED Tape Lighting

Lab 4.4 Arduino Microcontroller, Resistors, and Simple Circuits

General Electrical Information

Installation Tips Crimestopper/ProStart Remote Start system + PLJX + DLRM + SPDT (for GM vehicles) T0760 v1.1 updated 2/5/14

Tip: LED Lighting for the 3098 Locomotive and 4392 Coach Set Date: , ,

Quick Guide. Unipro Laptimer Version September Go faster faster. UNIPRO ApS

WARNING: ALWAYS UNPLUG THE TREADMILL FROM THE ELECTRICAL OUTLET BEFORE SERVICING THE UNIT.

PRODUCT MANUAL Desktop LED Dimmer and Receiver

Lab #1: Electrical Measurements I Resistance

ACTIVITY 1: Electric Circuit Interactions

INSTRUCTION MANUAL FOR VOLTAGE REGULATOR APR P/N

PRODUCT MANUAL Onyx 2 Zone In-Wall Wireless LED Dimmer and Receiver

P3 Electronic Brake Control

SC10F Circuits Lab Name:

SQUEEZY TORCH KIT ESSENTIAL INFORMATION. Version 2.0 LEARN ABOUT SIMPLE CIRCUITS WITH THIS

INSTALLATION I N S T R U C T I O N S

Optional: Wiring a Relay for Gauge Controlled Output

Quick Guide. Unipro Laptimer Version Go faster faster. UNIPRO ApS

Tech Tip The Fundamentals of Supercapacitor Balancing

PRODUCT MANUAL Gecko Wireless 2 Zone LED Dimmer and Receiver

Experimental Procedure

INSTALLATION INSTRUCTIONS

Glow Plug Driver. What is a Glow Plug Driver?

WARNING: ALWAYS UNPLUG THE TREADMILL FROM THE ELECTRICAL OUTLET BEFORE SERVICING THE UNIT.

ELECTRICAL TABLE OF CONTENTS

TIMED NIGHT LIGHT KIT

SUPER CAPACITOR CHARGE CONTROLLER KIT

Description.

Lab 6: Wind Turbine Generators

Prototyping Walk through for PIC24HJ32GP202 Startup Schematic

Series and Parallel Networks

Experimental Procedure

CI-C1-RNSE. Compatible with navigation systems Audi Navi Plus RNS-E

Electronic Circuit Basics With Tinkercad

QTFX-F1, QTFX-F2 FLAME EFFECT

Efficient-Tec International LLC.

FOR MDRIVE kit instructions download the MDRIVE manual:

1 Function Scope of Delivery Mounting Electrical Connections Initial Setup Troubleshooting...

THERMOMETER PROJECT KIT

Electronic Brake Control

Applicable to the Following Part Numbers. Notes and Maintenance. Torque Specifications. Metric SAE. Use above torque setting unless otherwise noted

Operating Manual OBD Link Connector

Instruction & Owner s Manual

Experiment 1 Breadboard Basics

Retro it Steering Column

~IV"A..'T.L.'S. SM digit serial numbers. Note: SM916 serial numbers are similar to the St.irmaster 2400PS Stepper SIN: #

Emergency lighting units EM powerled

CHAPTER 7 ERROR MESSAGE AND TROUBLESHOOTING

Greenpower Challenge. Student support sheet

With magnetic fixing With ON/OFF switch

1 Function Scope of Delivery Mounting Electrical Connections Initial Setup Troubleshooting...

Electrical power. Objectives. Assessment. Assessment. Equations. Physics terms 5/27/14

Installation Tips for your Crimestopper/ProStart Remote Start system (add-on for GM vehicles) v1.02 updated 1/16/2013

INSTALLATION AND OPERATION MANUAL

Electronic Dynamo Regulator INSTRUCTION MANUAL. COPYRIGHT 2014 CLOVER SYSTEMS All Rights Reserved

Emergency lighting units EM powerled

Mustang. Installation Manual. Revision 11/16/10

Table of Contents Revolution Bulbs 2 Revolution Bulbs 2 Revolution Bulbs.. 3

3-Phase Motor Demo. R Hoadley 10 Oct 2009

SMART METER TEXAS. Transcript of Smart Meter Texas Demonstration in English. Smart Meter Texas Version 1.0, January 30, 2010

Simple Free-Energy Devices

2006 Johnson T8000E(TM97) SERVICE MANUAL

ELECTRICAL / GENERAL INFORMATION

Quiz Buzzer. Build Instructions. Issue 1.2

ASSEMBLY INSTRUCTIONS FOR NEW FK109 4 LED Railroad Crossing Flasher Kit WITH ADJUSTABLE FLASHING SPEED CONTROL with 4 Red 3mm Leds

Wireless Dimmer Installation and User Guide

POWERED RUNNING BOARDS INSTALLATION MANUAL

University of Jordan School of Engineering Electrical Engineering Department. EE 219 Electrical Circuits Lab

MJPower engineering. Variomatic Tuning guide.

Projectile Impact Tester

Wind display type WSDI-2

RLCP30 Leg Kit - To be used on Jeep Backbone RJKB1&2

Tip: 3425 Kittle Loco with LP4.0 Micro Conversion and LED Lighting Date: , Corrections Addition Link added

Sorting Line with Detection 24V

TR22F Repair Manual (Electronics)

XR500D-277V Special Voltage Regulator

Mandatory Experiment: Electric conduction

12V 160W Folding Portable Solar Panel Kit KDSLR160PNLA User Manual

Series and Parallel Circuits

Transcription:

CMPT 433 - Wire Tri-Colour LED and Magnetic Contact Switch Team Coodadusa: Cooper White, Daphne Chong, Sabrina Bolognese Introduction This guide will walk through wiring up a tri-colour LED and magnetic contact switch, and demo through the terminal. This differs from existing tri-colour LED guides as it handles the LEDs through GPIO instead of PWM. Materials LED Setup: 1 tri-colour LED 3 470 Ω resistors 1 M-M jumper wire 3 M-F jumper wires

Magnetic Contact Switch Setup: 1 magnetic contact switch 1 10 k Ω resistor 1 M-F jumper wire

Wiring After wiring, your setup should resemble this (instructions below). Wiring the LED 1. Insert the tri-colour LED into the breadboard. Remember which lead is the longest lead (marked LL in the diagram).

2. Connect the longest lead (LL) to the red power bar of the breadboard using a M-M jumper wire. (Purple wire in the diagram.) 3. Insert the three 470 Ω resistors that cross the middle divider of the breadboard, with one end in the same 5-slot column of the R, G, and B leads of the LED. 4. Use a M-F jumper wire to connect the red lead to GPIO pin P9_21. (Red wire in the diagram.) 5. Similarly, connect the green lead to P9_22 (green wire in the diagram), and the blue lead to P9_23 (blue wire in the diagram) 6. Double check your wiring matches the diagram. Wiring the Contact Switch 1. Connect one end of the magnetic switch to the breadboard s red power bar. (Cyan in diagram.) 2. Connect the other end of the magnetic switch to a 5-slot column. (Cyan in diagram.) 3. Use a 10 k Ω resistor to connect the 5-slot column to the breadboard s blue ground bar. 4. Use a M-F jumper wire to connect the 5-slot column to GPIO pin P9_16 (Pink wire in the diagram.) 5. Double check your wiring matches the diagram. Finally, 1. Connect the breadboard s blue ground bar to P_2 (Leftmost blue wire in the diagram). 2. Connect the breadboard s red power bar to P_4 (Leftmost red wire in the diagram). End result:

Troubleshooting When powered on, the LED should emit a faint glow to indicate it has power. If LED isn t lit up, make sure the breadboard s red power bar is connected to the correct pin on the beaglebone Double check the LED wiring by following the circuit Beaglebone s 3.3V (P9_4) is connected to the breadboard s red power bar LED s longest lead is connected to power via jumper wire LED s R, G, and B leads are connected to resistors that connect to GPIO pins R is connected to P9_21 (Not P8) G is connected to P9_22 B is connected to P9_23 Double check the switch wiring by following the circuit Beaglebone s 3.3V (P9_4) is connected to the breadboard s red power bar Switch is connected to the red power bar on one end On the other end, the switch is connected to a GPIO pin and a resistor The GPIO pin is P9_16 The resistor connects to the breadboard s blue ground bar The groud bar is connected to the beaglebone s ground (P9_2) Demo 1. Export all pins. Beaglebone Pin Number Linux Pin Number Usage P9_16 51 Magnetic switch P9_21 3 LED Red P9_22 2 LED Green P9_23 49 LED Blue

LEDS 2. Set all LED pins directions to out. All three colours of the LED may turn on at this point, emitting a very bright white colour. 3. Turn off the LED. 4. Turn the LED red by writing 0 to gpio3/value, and off again by writing 1. 5. Turn the LED green by writing 0 to gpio2/value, and off again by writing 1. 6. Turn the LED blue by writing 0 to gpio49/value, and off again by writing 1. Magnetic switch 7. Set the magnetic switch direction to in. If using poll (or similar) in your C program to detect events on the switch, set edge to both to detect both opening and closing the switch.

8. Put the two magnets together to close the circuit. 9. Cat the value of the pin. 10. Separate the magnets, then cat again. Troubleshooting LED Double check the correct RGB leads are connected to the correct GPIO pins (see previous section). Ensure all wires and pins are fully pressed in. Jumper wires come loose easily. Ensure all steps are taken for each R, G and B pins, and that you enter the correct pin numbers (R = 3, G = 2, B = 49) Magnetic switch Ensure the switch is connected to the breadboard properly. You may need to strip the wires a couple millimeters to be able to get it in far enough.