Abdulkadir ÜNVER
TURKEY • + Follow
Edit Project
Description
home assistant
Code
test
Arduino
#include <Adafruit_NeoPixel.h> #define NEOPIXEL_PIN 4 #define NUM_PIXELS 18 #define WHITE_LED_PIN 14 #define BUTTON_PIN 0 Adafruit_NeoPixel pixels(NUM_PIXELS, NEOPIXEL_PIN, NEO_GRB + NEO_KHZ800); int counter =0; int manu=0; bool reading; unsigned long lastTime = 0; unsigned long Delay = 50; void setup() { pinMode(BUTTON_PIN, INPUT_PULLUP); pinMode(WHITE_LED_PIN, OUTPUT); pixels.begin(); pixels.clear(); pixels.show(); // Initialize all pixels to off } void loop() { reading = digitalRead(BUTTON_PIN); delay(200); if(reading==0){ counter=counter+1; } if(counter>6){ counter=0; } delay(10); if(counter==0 ){ pixels.clear(); digitalWrite(WHITE_LED_PIN, LOW); } if(counter<5){ neopixel(); } else{ pixels.clear(); pixels.show(); delay(10); whiteled();} } void neopixel(){ if (counter == 1) { // Red for (int i = 0; i < NUM_PIXELS; i++) { pixels.setPixelColor(i, pixels.Color(255, 0, 0)); } } else if (counter == 2) { // Green for (int i = 0; i < NUM_PIXELS; i++) { pixels.setPixelColor(i, pixels.Color(0, 255, 0)); } } else if (counter == 3) { // Blue for (int i = 0; i < NUM_PIXELS; i++) { pixels.setPixelColor(i, pixels.Color(0, 255, 255)); } } else if (counter == 4) { // Magenta for (int i = 0; i < NUM_PIXELS; i++) { pixels.setPixelColor(i, pixels.Color(255, 0, 255)); } } pixels.show(); } void whiteled(){ if(counter==5){ analogWrite(WHITE_LED_PIN,100); } else if(counter==6){ analogWrite(WHITE_LED_PIN, 200); } }
Schematic and Layout
Aug 07,2023
1,095 views
end-flag
home assistant
2 Layers PCB 64.1 x 110.5 mm FR-4, 1.6 mm, 1, HASL with lead, White Solder Mask, Black silkscreen
1095
3
0
Published: Aug 07,2023
Download Gerber file 2
Purchase
Donation Received ($)
PCBWay Donate 10% cost To Author
*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(3)
![](/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!
-
Daniel K Feb 15,2024
-
Mr. Marsupial Oct 04,2023
-
ihsan TARHAN Aug 13,2023
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
356 0 2 -
-
📦 StackBox: Modular MDF Storage Solution 📦
197 0 2 -
-