# Driver circuit ## Description designed an LED driver circuit using an STM32 microcontroller to control 12 RGOY LEDs. By carefully considering the forward voltage and current requirements of the LEDs, calculating appropriate current-limiting resistors based on the 3.3V supply voltage, and connecting the LEDs to GPIO pins with their respective resistors, you've created a functional circuit. Your programming skills were then applied to the microcontroller, enabling the control of LED brightness through PWM signals. Through testing and debugging, you ensured the circuit's proper functionality, showcasing your ability to engineer a versatile and efficient LED driver system tailored to your specific needs. ## Project Details - **Owner:** dashami - **Created:** 2/19/2024 - **Last Updated:** 2/21/2024 - **Visibility:** Public ## Key Components ### IC1 — [CD74HC541M96](https://www.flux.ai/jecstronic/cd74hc541m96~r23.md) - Part Type: Integrated Circuit - Datasheet URL: https://www.ti.com/lit/ds/symlink/cd74hc540.pdf - Manufacturer Part Number: CD74HC541M96 - Manufacturer Name: Texas Instruments - License: https://creativecommons.org/licenses/by/4.0/ **Pins:** - *OE [pin 1] - *OE2 [pin 19] - A0 [pin 2] - A1 [pin 3] - A2 [pin 4] - A3 [pin 5] - A4 [pin 6] - A5 [pin 7] - A6 [pin 8] - A7 [pin 9] - GND [pin 10] - VCC [pin 20] - Y0 [pin 18] - Y1 [pin 17] - Y2 [pin 16] - Y3 [pin 15] - Y4 [pin 14] - Y5 [pin 13] - Y6 [pin 12] - Y7 [pin 11] ### LED1 — [Red Right Angle LED](https://www.flux.ai/corynrobinson/red-right-angle-led~68.md) - Manufacturer Part Number: 155301RS73100 - Forward Voltage: 2V - Datasheet URL: https://www.we-online.com/catalog/datasheet/155301RS73100.pdf - Current: 20mA - Manufacturer Name: Wurth Electronics - Part Type: LED **Pins:** - A - K ### LED10 — [Low Power Green LED](https://www.flux.ai/corynrobinson/low-power-green-led~0r.md) - Purchase Url: https://octopart.com/598-8070-107f-dialight-872854?r=sp - Part Type: LED - Manufacturer Part Number: 598-8070-107F - Forward Voltage: 2V - Current: 20mA - Datasheet URL: https://octopart.com/datasheet/598-8070-107f-dialight-872854 - Manufacturer Name: Dialight - Package or Case Code: D_0603_1608Metric **Pins:** - A - K ### LED2 — [Red Right Angle LED](https://www.flux.ai/corynrobinson/red-right-angle-led~68.md) - Part Type: LED - Datasheet URL: https://www.we-online.com/catalog/datasheet/155301RS73100.pdf - Manufacturer Name: Wurth Electronics - Current: 20mA - Manufacturer Part Number: 155301RS73100 - Forward Voltage: 2V **Pins:** - A - K ### LED3 — [Red Right Angle LED](https://www.flux.ai/corynrobinson/red-right-angle-led~68.md) - Manufacturer Name: Wurth Electronics - Current: 20mA - Datasheet URL: https://www.we-online.com/catalog/datasheet/155301RS73100.pdf - Part Type: LED - Manufacturer Part Number: 155301RS73100 - Forward Voltage: 2V **Pins:** - A - K ### LED4 — [Low Power Green LED](https://www.flux.ai/corynrobinson/low-power-green-led~0r.md) - Forward Voltage: 2V - Current: 20mA - Manufacturer Part Number: 598-8070-107F - Package or Case Code: D_0603_1608Metric - Manufacturer Name: Dialight - Datasheet URL: https://octopart.com/datasheet/598-8070-107f-dialight-872854 - Purchase Url: https://octopart.com/598-8070-107f-dialight-872854?r=sp - Part Type: LED **Pins:** - A - K ### LED6 — [Low Power Green LED](https://www.flux.ai/corynrobinson/low-power-green-led~0r.md) - Part Type: LED - Purchase Url: https://octopart.com/598-8070-107f-dialight-872854?r=sp - Manufacturer Name: Dialight - Datasheet URL: https://octopart.com/datasheet/598-8070-107f-dialight-872854 - Package or Case Code: D_0603_1608Metric - Manufacturer Part Number: 598-8070-107F - Forward Voltage: 2V - Current: 20mA **Pins:** - A - K ### U1 — [STM32F030C6T6](https://www.flux.ai/vasy_skral/stm32f030c6t6~l0l.md) - Part Type: Microcontroller - Manufacturer Name: STMicroelectronics - Manufacturer Part Number: STM32F030C6T6 - Datasheet URL: https://www.st.com/content/ccc/resource/technical/document/datasheet/a4/5d/0b/0e/87/c4/4d/71/DM00088500.pdf/files/DM00088500.pdf/jcr:content/translations/en.DM00088500.pdf **Pins:** - BOOT0 [pin 44] - NRST [pin 7] - PA0 [pin 10] - PA1 [pin 11] - PA10 [pin 31] - PA11 [pin 32] - PA12 [pin 33] - PA13 [pin 34] - PA14 [pin 37] - PA15 [pin 38] - PA2 [pin 12] - PA3 [pin 13] - PA4 [pin 14] - PA5 [pin 15] - PA6 [pin 16] - PA7 [pin 17] - PA8 [pin 29] - PA9 [pin 30] - PB0 [pin 18] - PB1 [pin 19] - PB10 [pin 21] - PB11 [pin 22] - PB12 [pin 25] - PB13 [pin 26] - PB14 [pin 27] - PB15 [pin 28] - PB2 [pin 20] - PB3 [pin 39] - PB4 [pin 40] - PB5 [pin 41] - PB6 [pin 42] - PB7 [pin 43] - PB8 [pin 45] - PB9 [pin 46] - PC13 [pin 2] - PC14 [pin 3] - PC15 [pin 4] - PF0 [pin 5] - PF1 [pin 6] - PF6 [pin 35] - PF7 [pin 36] - VDD [pin 48] - VDD [pin 1] - VDD [pin 24] - VDDA [pin 9] - VSS [pin 23] - VSS [pin 47] - VSSA [pin 8] *The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/dashami/driver-circuit~r2](https://www.flux.ai/dashami/driver-circuit~r2).* --- *Generated from [https://www.flux.ai/dashami/driver-circuit~r2](https://www.flux.ai/dashami/driver-circuit~r2)*