This is an old revision of the document!
Edit your section here and provide a description of what it is you’d like to build by the end of this endeavour.
From the tutorial or other resources, identify what components from your electronics kit you are going to be testing, and provide any pertinent information regarding its operation (ie not entire programs, but succinct nuggets of information that could be useful to others wanting to get up and running).
Edit your section here and provide that pertinent information.
My plan is to control a stepper motor using two buttons. One button will make the stepper motor rotate some fixed amount clockwise. The other button will make the stepper motor rotate the same fixed amount counterclockwise. The rotation amount will be hard-coded into the program. Perhaps if everything else goes smoothly, I'll try to use a potentiometer to control the motor rotation amount.
For the first week I started with wiring and coding a stepper motor. I have a program which continuously moves the stepper motor either clockwise or counterclockwise. Next I need to expand the program to rotate a certain fixed amount and also use the states of the buttons to control direction.
The buttons have been added in to the wiring. The feedback from the buttons has also been incorporated into the program. Currently, the stepper motor rotates continuously one direction while one button is pressed, and continuously in the other direction while the other button is pressed. Next I need to program the motor to rotate a fixed amount upon each button press.
description of finished project details (not full source code), but present your finished product
description of what you are looking to do
description of what component(s) you have selected and are testing
description of changes made and construction pursuits, and some details of C program interaction
description of finished project details (not full source code), but present your finished product
Use joystick to change light color
How to read and change value
description of changes made and construction pursuits, and some details of C program interaction
description of finished project details (not full source code), but present your finished product
description of what you are looking to do
description of what component(s) you have selected and are testing
description of changes made and construction pursuits, and some details of C program interaction
description of finished project details (not full source code), but present your finished product
description of what you are looking to do
description of what component(s) you have selected and are testing
description of changes made and construction pursuits, and some details of C program interaction
description of finished project details (not full source code), but present your finished product
description of what you are looking to do
description of what component(s) you have selected and are testing
description of changes made and construction pursuits, and some details of C program interaction
description of finished project details (not full source code), but present your finished product
for the project, i plan on creating a circuit utilizing the ultrasonic sensor, 3 leds , and a buzzer. The overall goal is to make it so that at a certain distance an object is from the sensor, the leds will fill up, and when the leds are all on, a buzzer will go off.
I understand the premise of the circuit, and believe this will be an easy but tedious task.
ULTRASONIC SENSOR - a sensor that measures distance based on how long a sound wave takes to bounce back
ACTIVE BUZZER - a buzzer that makes noise when power is sent to it
LED - a light emitting diode
all that had to be done, was grab the c code downloaded with the starter manual for the pi, then add a couple if statements to compare the distance to a set distance, and if the distance was smaller, to turn on each light and then the buzzer, all of which were put into an array
the sensor needed to be hooked up to two different pins, with the echo pin needing 3 1kohm resistors also leading to our ground
the buzzer only needed a 1kohm resistor leading to a transistor, which ultimatly controls the buzzer
each led needed a 220ohm resistor.
looks like a piece of junk, but the closer you move your hand, the more lights pop up. the lights are put out of the way of the wires so its easier to see. Essentially, the pi is generating distance info with the sonar, then comparing that to a set distance, and turning on and off pins as it exceeds or fails to exceed those set distances
I want to use the seven segment display as a counter of some kind. I will probably use it with a button and a switch that makes the number displayed increase or decrease.
I am testing the Seven Segment Display, which uses the 74HC595 chip to display a variety of symbols. It can be used in counting, and I want to test its ability to count in hexadecimal.
In this part, I wanted to test how I could use the button with the seven segment display. I decided to have the button change the speed at which the display counted. Pressing the button more, means that the counter will slow down, since the delay is greater. I could also use another button or a switch to make it speed up as well, but this was mostly to confirm that the button could work and affect the seven segment display
description of finished project details (not full source code), but present your finished product
For my project I will be working with the 7-Segment Display and learning more about its functions along with 74HC595 chip. The display allows you to see an actual number or letter.
I left enough room at the bottom to test out using a button to control the display, one button to count up and another button to count down. Thats not definite.
I would like to explore using the 74HC595 chip with the seven segment display. I would like to program it to count even, odd then 0-9 number.
description of finished project details (not full source code), but present your finished product
description of what you are looking to do
description of what component(s) you have selected and are testing
description of changes made and construction pursuits, and some details of C program interaction
description of finished project details (not full source code), but present your finished product
The end project will be a timer that is turned on and off with a button and utilizes the 4 digit 7-segment display
I have decided to start with testing out the single digit 7-segment display and trying to display numbers 0 through 9
Now I will be using to 4 digit seven segment display as opposed to the 1 digit display. My main goal for this segment of the project is to get the numbers to both display and to change.
description of finished project details (not full source code), but present your finished product
Use a proximity sensor to determine the distance and display on an lcd screen.
I will be using a proximity sensor or ultrasonic sensor and an lcd screen for this project.
description of changes made and construction pursuits, and some details of C program interaction
description of finished project details (not full source code), but present your finished product
In my project, I would like to control some servos using data from the mpu6050. Ultimately, these will be attached to control surfaces in an “autopiloted” glider. Eventually, I would also like to use an ultrasonic sensor to detect how far this system is from the ground and initiate a landing sequence.
The components I have selected are the mpu6050 and servos attached to an Arduino Nano. The mpu6050 is a “motion tracking” device that provides accelerometer and gyroscope data necessary for this project. The mpu6050 only needs to be connected through SDA and SCL to provide data to our microcontroller (and of course power/gnd).
The servos are motors that can be used to precisely control our glider's control surfaces. The servos can be controlled via data line and must be connected to a PWM pin on the Arduino Nano. There is a handy-dandy Arduino library called “Servo.h” that simplifies the process of controlling servos greatly. You can initialize servos as objects in the code and easily write angles to servos without needing to worry about PWM (Pulse-Width Modulation).
The Arduino Nano is the microcontroller I am using to control the components in this circuit. Using the Arduino IDE we can load “sketches” (instructions) onto the Arduino Nano. The Arduino IDE uses its own modification of C/C++. The Arduino can be provided power (and sketches) through its mini USB port, or can be powered by a battery up to 12V (recommended). Before submitting code sketches to the Arduino Nano, you can click the verification button in the IDE to compile the code and see any errors.
description of changes made and construction pursuits, and some details of C program interaction
description of finished project details (not full source code), but present your finished product
Currently I am exploring the LCD screen component to use as my project, I don't exactly know the functionality of it yet or how to use it.
LCD Module: A compact electronic component that consists of an LCD screen, a driver circuit, and a control interface (meaning very basic, not like a standard flat screen television with far better resolution & image processing).
A liquid-crystal display (LCD) is a flat-panel display or other electronically modulated optical device that uses the light-modulating properties of liquid crystals combined with polarizers. Liquid crystals do not emit light directly but instead use a backlight or reflector to produce images in color or monochrome. LCDs are available to display arbitrary images (as in a general-purpose computer display) or fixed images with low information content, which can be displayed or hidden: preset words, digits, and seven-segment displays (as in a digital clock) are all examples of devices with these displays. They use the same basic technology, except that arbitrary images are made from a matrix of small pixels, while other displays have larger elements. LCDs can either be normally on (positive) or off (negative), depending on the polarizer arrangement. For example, a character positive LCD with a backlight will have black lettering on a background that is the color of the backlight, and a character negative LCD will have a black background with the letters being of the same color as the backlight. Optical filters are added to white on blue LCDs to give them their characteristic appearance.
description of changes made and construction pursuits, and some details of C program interaction
description of finished project details (not full source code), but present your finished product
description of what you are looking to do
description of what component(s) you have selected and are testing
description of changes made and construction pursuits, and some details of C program interaction
description of finished project details (not full source code), but present your finished product
The objective is to create code that will make the ultra-sonic sensor detect motions in front of it.
To start you will need 5 wires,3 1k ohm resistors, and an ultrasonic motion sensor. Have one wire hooked to a 5V power source and the other end attached to the VCC Pin, a wire in a GPIO pin going to “TRIG” and another GPIO pin connected with a wire leading to a 1k ohm resistor, and the GND pin should be connected to a wire going to ground.
The objective in eap1 is to make 3 leds flash for different distances. So for example I will have a red, blue and green LED all hooked up. When the ultra-sonic sensor reads any distance below 25cm the red LED will flash red. When the distance is between 26-50 the blue LED will flash up and the red one will turn off. When the distance exceeds 50cm the green LED will create a flash and the blue one will turn off.
description of finished project details (not full source code), but present your finished product
description of what you are looking to do
description of what component(s) you have selected and are testing
description of changes made and construction pursuits, and some details of C program interaction
description of finished project details (not full source code), but present your finished product