User Tools

Site Tools


notes:c4eng:fall2022:projects:vcc2

This is an old revision of the document!


BACKGROUND

ANALOG vs DIGITAL

PULSE-WIDTH MODULATION

ELECTRONICS

PARTS

RGBLED

This LED is basically THREE LEDs packaged together, all sharing a ground.

BUTTON

SWITCH

You will also want to utilize a switch, which looks like this:

Your kit should have come with a couple of them, you will need ONE.

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.

notes/c4eng/fall2022/projects/vcc2.1663623483.txt.gz · Last modified: 2022/09/19 21:38 by wedge