elektronika - ghdrako/doc_snipets GitHub Wiki
Diody
Connecting LEDs in a circuit takes some care, because they are polarized; this means that current can enter and leave the LED in one direction only. The current enters via the anode (positive) side and leaves via the cathode (negative) side. Any attempt to make too much current flow through an LED in the opposite direction will break the component.
When adding LEDs to a project, you need to consider the operating voltage and current. For example, common red LEDs require around 1.7 V and 5 to 20 mA of current.
Plytka stykowa(Solderless Breadboard)
PINs
pulse-width modulation (PWM)
- around 500 cycles per second
To create a PWM signal in arduino, we use the function analogWrite(x, y), where x is the digital pin and y is a value for the duty cycle, between 0 and 255, where 0 indicates a 0 percent duty cycle and 255 indicates 100 percent duty cycle.
The pins labeled with a tilde (~) can also generate a varying electrical signal, which can be useful for such things as creating lighting effects or controlling electric motors.