This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:c4eng:fall2022:projects:vcc2 [2022/09/22 14:27] – [ANALOG vs DIGITAL] cmille71 | notes:c4eng:fall2022:projects:vcc2 [2022/09/29 03:47] (current) – [ELECTRONICS] ilaface | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====BACKGROUND===== | =====BACKGROUND===== | ||
+ | In vcc2 we will continue to build onto that baseline of knowledge that we have established from previous projects such as vcc0 and vcc1, to build an even more complex circuit. In this project we will combine different types of LEDs, buttons and switches to create multiple functions within a circuit. Circuit control, in its simplest form, is the application and removal of power. This can also be expressed as turning a circuit on and off or opening and closing a circuit. | ||
====ANALOG vs DIGITAL==== | ====ANALOG vs DIGITAL==== | ||
+ | You will use digital pin modes when dealing with signals that are either " | ||
Analog and digital signals are used to transmit information, | Analog and digital signals are used to transmit information, | ||
Line 13: | Line 15: | ||
=====ELECTRONICS===== | =====ELECTRONICS===== | ||
+ | 7 10k ohm resistors | ||
+ | 3 buttons | ||
+ | 1 switch | ||
+ | 2 leds | ||
+ | 1 rgb LED | ||
+ | 1 220 ohm resistor to each LED including rgb LED (3 for rgb LED) | ||
+ | 1k ohm to switch | ||
====PARTS==== | ====PARTS==== | ||
====RGBLED==== | ====RGBLED==== | ||
This LED is basically THREE LEDs packaged together, all sharing a ground. | This LED is basically THREE LEDs packaged together, all sharing a ground. | ||
+ | The Red-Green-Blue (RGB) is three LEDs in one. By controlling the intensities of each of the three component colors individually, | ||
+ | (https:// | ||
{{: | {{: | ||
Line 30: | Line 40: | ||
Your kit should have come with a couple of them, you will need ONE. | Your kit should have come with a couple of them, you will need ONE. | ||
+ | A switch is a component which controls the open-ness or closed-ness of an electric circuit. They allow control over current flow in a circuit (without having to actually get in there and manually cut or splice the wires). Switches are critical components in any circuit which requires user interaction or control.A switch can only exist in one of two states: open or closed. | ||
The switch circuit will involve hooking up 3.3v to the center pin, putting a **1k** resistor between the pin of the switch and the 3.3v source coming from the pi. And ONE of the other pins should then go through a 10k resistor into a GPIO pin on the pi (set to INPUT mode, just like the buttons). | The switch circuit will involve hooking up 3.3v to the center pin, putting a **1k** resistor between the pin of the switch and the 3.3v source coming from the pi. And ONE of the other pins should then go through a 10k resistor into a GPIO pin on the pi (set to INPUT mode, just like the buttons). | ||
This switch is going to control the DIRECTION of change- one way, it will be INCREASING in value. The other, it will be DECREASING. | This switch is going to control the DIRECTION of change- one way, it will be INCREASING in value. The other, it will be DECREASING. |