Lab 4
Spark Fun Kit – Input/output
Electronic
Sarah Alshabboot
ENGR 150-Intoruction To Engineering
Spring 2019-March 18, 2019
Overview
This document will show the five different
Project where done by using the SparkFun
inventor Kit.
All the projects were done by using the
Instructions provided with the kit.
Project 1-A
Circuit 1: Blinking an LED: Light would come on for two seconds and go off
for two seconds
Figure 1- Blinking an LED Figure 2 - Blinking an LED
(ON) (Off)
Project 1-B: Potentiometer
Circuit 2: Potentiometer : Light would Blink faster or slower based on the
position of the knob.
Figure 3 - Potentiometer
Project 1-C: Photoresistor
Circuit 3: Photoresistor: using if /else statement, where the variable value is
compared to the threshold.
Figure 4 - Photoresistor
Project 1- D: RGB Night-Light
Circuit 4: RGB Night-Light : The color of RGB LED change based on the
trimpot’s value
Figure 5 - RGB Night-Light
Project 2-A: Buzzer
Circuit 5: Buzzer : a song plays from the buzzer when the program begins.
Figure 6 - Buzzer
Project 2-B: Digital Trumpet
Circuit 6: Digital Trumpet : different songs will play when you press different
keys.
Figure 7 - Digital Trumpet
Project 2-C: Simon Says Game
Circuit 7: Simon Says Game : using LED lights which player must remember
the pattern and repeat by using the keys on the breadboard.
Figure 8 - Simon Says Game
Project 3-A: Servo Motors
Circuit 8: Servo Motors : turning the potentiometer will cause the servo arm
to turn.
Figure 9 - Servo Motors
Project 3-B: Distance Sensor
Circuit 9: Distance Sensor : The light will change from green to yellow to red based
on the distance of an object from the sensor.
Figure 10 - Distance Sensor Figure 11 - Distance Sensor Figure 12 - Distance Sensor
Green Yellow Red
Project 3-C: Motion Alarm
Circuit 10: Motion Alarm: The light will change from green to yellow to red based
on the distance of an object from the sensor. When an object is too close the
buzzer will beep
Figure 13 - Motion Alarm Figure 14 - Motion Alarm Figure 15 - Motion Alarm
Project 4-A: LCD Hello World
Circuit 11: LCD Hello World : when the program upload, LCD screen will show
“Hello World” and a counter will count every second that pass. You can adjust the
light of the LCD.
Figure 15 - LCD Hello World Figure 16 - LCD Hello World
(higher light) (Lighter light)
Project 4-B Temperature Sensor
Circuit 12: Temperature Sensor : when the program upload, LCD screen will show
the temperature in Celsius and Fahrenheit.
Figure 17 - Temperature Sensor
(first reading) Figure 18 - Temperature Sensor
(Second reading)
Project 4-C “Diy Who Am I’ Game
Circuit 13: “Diy Who Am I’ Game : LCD will display a word and countdown, when
a key pressed, a new word will display with a new count down. At the end, you
will be shown if you win or loss.
Figure 19 - “Diy Who Am I” Game Figure 20 - “Diy Who Am I” Game
Project 5-A Motor Basics
Circuit 14: Motor Basics: A switch is attached to a
breadboard, when the switch is on the motor will spin at a
speed that can be set by the software.
Figure 21 - “Motor Basics
Project 5-B Remote Controlled Robot
Circuit 15: Remote Controlled Robot : The two motors connected to the bread
board can spin at the same time, when the switch is on.
Commands can be used in the software to determine the direction of the motors.
Figure 22 - Remote Controlled Robot
Project 5-C Autonomous Robot
Circuit 16: Autonomous Robot When the switch is on the Robot will move forward,
until it sense an object, where it will stop.
Figure 23 – A Autonomous Robot Figure 23 -B Autonomous Robot (off)
(on)
For Final Project
Since, I am going to the System Engineering
Field, I think a would like to work on the
Mechanical Project, because I think it would
make more sense for me when I do it.
Innovative design
Circuit 17: I designed a bridge that can fit one car at a time. When there is a car on
the bride a red light while come up and when the car leave, the signal will turn to a
green and new car can pass through.
Figure 24 -A Bridge empty Figure 24 -B bridge with a car Figure 24 -C bridge design