User Tools

Site Tools


notes:c4eng:fall2022:projects:vcc2

This is an old revision of the document!


BACKGROUND

ANALOG vs DIGITAL

Analog and digital signals are used to transmit information, usually through electric signals. In both these technologies, the information, such as any audio or video, is transformed into electric signals. The difference between analog and digital technologies is that in analog technology, information is translated into electric pulses of varying amplitude. In digital technology, translation of information is into binary format (zero or one) where each bit is representative of two distinct amplitudes.

https://www.diffen.com/difference/Analog_vs_Digital

PULSE-WIDTH MODULATION

This is a method of reducing the average power produced by an electrical signal by effectively chopping it up into discrete parts. The average value of voltage fed to the load is controlled by turning the switch between supply and load on and off at a fast rate.

The longer the switch is on, the higher the total power is to the supplied to the object. PWMs are particularly suited for running inertial loads such as, which is not as easily affected by this discrete switching because their inertia causes them to react slowly.

This means that the switching frequency must be high enough to not affect the load, which means that the resultant wave must be perceived as smooth by the load.

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. 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).

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.1664073091.txt.gz · Last modified: 2022/09/25 02:31 by lbrant2