Abdulkadir ÜNVER
TURKEY • + Follow
Edit Project
Description
LED CONTROL BOARD
this project will increase your fun while listening to music
Code
#include <Adafruit_NeoPixel.h> #ifdef AVR #include <avr/power.h> #endif int outputValue=0; int rememberOutputValue; int randNumber; int counter = 0; int loopCounter = 0; #define PIN 4 #define NUMPIXELS 30 Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); void setup() { // put your setup code here, to run once: pixels.begin(); pinMode(14, OUTPUT); randomSeed(analogRead(0)); Serial.begin(9600); } uint32_t Wheel(byte WheelPos) { WheelPos = 255 - WheelPos; if(WheelPos < 85) { return pixels.Color(255 - WheelPos * 3, 0, WheelPos * 3,0); } if(WheelPos < 170) { WheelPos -= 85; return pixels.Color(0, WheelPos * 3, 255 - WheelPos * 3,0); } WheelPos -= 170; return pixels.Color(WheelPos * 3, 255 - WheelPos * 3, 0,0); } void loop() { int sensorValue; counter = 0; for (int i=0; i < 100; i++){ sensorValue = analogRead(A0); if(sensorValue > 100) counter++; } if(map(counter, 10, 60, 80, 80) > outputValue)outputValue = map(counter, 00, 40, 0, 40); else if(loopCounter %2 == 0)outputValue-=1; if(outputValue < 0) outputValue = 0; if(outputValue > 60) outputValue = 60; if(loopCounter % 100 == 0)randNumber = random(255); loopCounter++; for(int i=0;i < NUMPIXELS;i++){ pixels.setPixelColor(i, pixels.Color(0,0,0, 255)); } if(rememberOutputValue != outputValue){ for(int i=60;i > (60-outputValue) || (outputValue == 20 && i == 0);i--){ pixels.setPixelColor(i, Wheel((100) & 255)); if(i<10){ digitalWrite(14, HIGH); } else{ digitalWrite(14, LOW); } } pixels.show(); } rememberOutputValue = outputValue; }
Schematic and Layout
Mar 04,2023
716 views
end-flag
LED CONTROL BOARD
2 Layers PCB 56.5 x 70.5 mm FR-4, 1.6 mm, 1, HASL with lead, Blue Solder Mask, White silkscreen
youtube video
https://www.youtube.com/watch?v=7WekqeOSlz8
716
0
0
Published: Mar 04,2023
Download Gerber file 7
BOM(Bill of materials)
Purchase
Donation Received ($)
PCBWay Donate 10% cost To Author
Only PCB
PCB+Assembly
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
Copy this HTML into your page to embed a link to order this shared project
Copy
Under the
Attribution-ShareAlike (CC BY-SA)
License.
- Comments(0)
- Likes(0)
![](/img/images/note-tips.png)
Upload photo
0 / 10000
It looks like you have not written anything. Please add a comment and try again.
You can upload up to 5 images!
Image size should not exceed 2MB!
File format not supported!
View More
VOTING
0 votes
- 0 USER VOTES
0.00
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Design
1/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Usability
2/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Creativity
3/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Content
4/4
More by Abdulkadir ÜNVER
-
Capacitor Led Driver https://youtu.be/TIRHYlAV5L8Zener diode is not necessary for the led driver circuit. It can be used...
-
LM2596S POWE SUPPLY- CURRENT LIMITED you can watch youtube video for explanation of circuit diagramhttps://youtu.be/koqxd6jSiJE
-
LED CONTROL BOARD this project will increase your fun while listening to music
-
Robot Control Board this project is robot controller board
-
esp 12e Wifi RGBW KONTROL Note:There is a small problem with the circuit board. The enable pin of the ESP12f should be connect...
-
5630 SMD LED sa? ve sol taraftaki ledlerin art? hatt? birle?tirilmedi?i i?in d??ardan kablo yard?m? ile tamamlanm...
-
home assistant Ev otomasyonlarında ve ya dekor için kullanılabilir.https://youtu.be/BtKPsOtp3JA
-
2+1 amplifier circuit TDA2040 Important NOTEOnly r19,c1,r20 r24,c31,r25 will be soldered in the low pass filter section in the cir...
-
İnduction Heater Design IMPORTANT NOTEWhen assembling the PCB, the MOSFETs must be mounted with a thermal pad and insulated ...
-
DIY Soldering Station Bu projede ESP 12F kullanarak bir havya istasyonu yaptım. Sıcaklık kontrolü bir mosfet ve mosfet sür...
-
dc_motor_driver ÖNEMLİ NOTdevre şemasında d1 ve d2 diyotlarının birbirine ters olması gerekmektedir. Devre tasarımın...
-
ESP Weather Station ESP Weather Station and clock.
-
Capacitor Led Driver https://youtu.be/TIRHYlAV5L8Zener diode is not necessary for the led driver circuit. It can be used...
-
LM2596S POWE SUPPLY- CURRENT LIMITED you can watch youtube video for explanation of circuit diagramhttps://youtu.be/koqxd6jSiJE
-
LED CONTROL BOARD this project will increase your fun while listening to music
-
Robot Control Board this project is robot controller board
-
esp 12e Wifi RGBW KONTROL Note:There is a small problem with the circuit board. The enable pin of the ESP12f should be connect...
-
5630 SMD LED sa? ve sol taraftaki ledlerin art? hatt? birle?tirilmedi?i i?in d??ardan kablo yard?m? ile tamamlanm...
-
home assistant Ev otomasyonlarında ve ya dekor için kullanılabilir.https://youtu.be/BtKPsOtp3JA
-
2+1 amplifier circuit TDA2040 Important NOTEOnly r19,c1,r20 r24,c31,r25 will be soldered in the low pass filter section in the cir...
-
İnduction Heater Design IMPORTANT NOTEWhen assembling the PCB, the MOSFETs must be mounted with a thermal pad and insulated ...
-
DIY Soldering Station Bu projede ESP 12F kullanarak bir havya istasyonu yaptım. Sıcaklık kontrolü bir mosfet ve mosfet sür...
-
dc_motor_driver ÖNEMLİ NOTdevre şemasında d1 ve d2 diyotlarının birbirine ters olması gerekmektedir. Devre tasarımın...
-
ESP Weather Station ESP Weather Station and clock.
You may also like
-
-
Instrumentation Input, high impedance with 16 bit 1MSPS ADC for SPI
154 0 0 -
RGB LED Matrix input module for the Framework Laptop 16
354 0 2 -
-
📦 StackBox: Modular MDF Storage Solution 📦
197 0 2 -
-