This shows you the differences between two versions of the page.
|
pm:prj2026:vlad.radulescu2901:sebastian.coitu [2026/05/13 18:22] sebastian.coitu |
pm:prj2026:vlad.radulescu2901:sebastian.coitu [2026/05/13 19:02] (current) sebastian.coitu |
||
|---|---|---|---|
| Line 25: | Line 25: | ||
| ^ # ^ Component ^ Value / Model ^ Qty ^ Notes ^ | ^ # ^ Component ^ Value / Model ^ Qty ^ Notes ^ | ||
| | 1 | ATmega328P Xplained Mini | Microchip | 1 | MCU development board | | | 1 | ATmega328P Xplained Mini | Microchip | 1 | MCU development board | | ||
| - | | 2 | LED | 5 mm, white | 1 | Output lamp | | + | | 2 | RGB LED Strip | 5V, 15 LEDs, common anode | 1 | Output lamp | |
| - | | 3 | Resistor R1 | 220 Ω | 1 | LED current limiter | | + | | 3 | NPN Transistor | 2N2222 | 3 | Low-side switch for each RGB channel | |
| - | | 4 | Potentiometer | 10 kΩ, linear | 1 | Manual brightness control | | + | | 4 | Resistor | 1 kΩ | 3 | Base current limiter for 2N2222 | |
| - | | 5 | Photoresistor (LDR) | GL5528 or similar | 1 | Auto mode light sensor | | + | | 5 | Resistor | 220 Ω | 1 | LED current limiter | |
| - | | 6 | Resistor R2 | 10 kΩ | 1 | LDR voltage divider pull-down | | + | | 6 | Resistor | 10 kΩ | 1 | LDR voltage divider pull-down | |
| - | | 7 | LCD Display | 16×2, I2C (PCF8574) | 1 | Brightness level display | | + | | 7 | Potentiometer | 10 kΩ, linear | 1 | Manual brightness control | |
| - | | 8 | Breadboard | 400 point | 1 | Component mounting | | + | | 8 | Photoresistor (LDR) | GL5528 or similar | 1 | Auto mode light sensor | |
| - | | 9 | Jumper wires | M-M, F-F | ~15 | Connections | | + | | 9 | LCD Display | 16×2, I2C (PCF8574) | 1 | Brightness level display | |
| - | | 10 | USB cable | Micro-USB | 1 | Power & programming | | + | | 10 | Breadboard | 400 point | 1 | Component mounting | |
| + | | 11 | Jumper wires | M-M, F-F | ~20 | Connections | | ||
| + | | 12 | USB cable | Micro-USB | 1 | Power & programming | | ||
| ==== Electrical Schematic ==== | ==== Electrical Schematic ==== | ||
| - | {{:pm:prj2026:vlad.radulescu2901:schema_electrica_sebastian_coitu.png?700|}} | + | {{:pm:prj2026:vlad.radulescu2901:schema_electrica_v4.png?700|}} |
| - | + | ||
| - | * Note: in the above electrical schematic the LDR is a complete module including the R2 voltage divider | + | |
| ==== Pin Mapping ==== | ==== Pin Mapping ==== | ||
| ^ ATmega328P Pin ^ Arduino Pin ^ Signal ^ Connected To ^ | ^ ATmega328P Pin ^ Arduino Pin ^ Signal ^ Connected To ^ | ||
| - | | PD6 (OC0A) | D6 | PWM LED | LED anode (via R1, 220 Ω) | | + | | PD6 (OC0A) | D6 | PWM RED | R5 (1kΩ) → Base T1 (2N2222, R channel) | |
| + | | PD5 (OC0B) | D5 | PWM Green | R6 (1kΩ) → Base T2 (2N2222, G channel) | | ||
| + | | PD3 (OC0C) | D3 | PWM Blue | R7 (1kΩ) → Base T3 (2N2222, B channel) | | ||
| | PC0 (ADC0) | A0 | ADC input | Potentiometer wiper | | | PC0 (ADC0) | A0 | ADC input | Potentiometer wiper | | ||
| | PC1 (ADC1) | A1 | ADC input | LDR voltage divider midpoint | | | PC1 (ADC1) | A1 | ADC input | LDR voltage divider midpoint | | ||
| Line 51: | Line 53: | ||
| | PB7 | D7 | GPIO input | Onboard button | | | PB7 | D7 | GPIO input | Onboard button | | ||
| | VCC | 5V | 5V | VCC potentiometer, VCC LCD, VCC LDR | | | VCC | 5V | 5V | VCC potentiometer, VCC LCD, VCC LDR | | ||
| - | | GND | GND | GND | LED catod,GND potentiometer, GND LCD, GND LDR | | + | | GND | GND | GND | GND for all components + external power source | |
| ===== Software Design ===== | ===== Software Design ===== | ||