A traffic light using a Neopixel Stick ( WS2812 stick) - e.g. Arduino, ESP32, Raspberry, Microbit, Calliope, ...
Traffic light (Ampel)
A Neopixel Stick traffic light - usable with e.g. Arduino, ESP32, Raspberry, Microbit, Calliope, … Quick and easy to build
Parts needed Arduino, ESP32, Raspberry, Microbit, ESP8266, CalliopeNeopixel Stick (or similar e.g. https://www.roboter-bausatz.de/p/8bit-rgb-led-leiste-aehnl.-neopixelJumper cable ≥ 20cm e.g. https://www.roboter-bausatz.de/p/40-pin-dupont-jumper-kabel-buchse-stecker-40-cmPrintNo Orientation as in the filesInfill 15% Material: PLAFilament clear 4g / Filament black (matte) 42g
Final dimension (assembled): height 17.5cm, width 4cm, depth 4cm
Solder
Cut the jumper cable on one side and solder it to the LED stick (GND, 5V, DIN)
AssembleInsert the stick as shown in the pictures Fix the stick with using the spacer (make sure it is in the right direction)Push the cable including connector through the standpipeConnect the stand pipeConnect & CodeArduino: 5V → 5V, GND → GND, DIN → D6, example code: https://wokwi.com/projects/397144578284602369ESP32: 5V → 3.3V, GND → GND, DIN → D16 , example code: https://wokwi.com/projects/397147458586094593Calliope: 5V → + , GND → - , DIN → P0, example code: https://makecode.calliope.cc/_WiR00fh3FWwr
LEDs are named 0-7 (from top to bottom) visible are: red (0,1) yellow (3,4) green (6,7) covered by spacers (2,5)
######################################################
More information about Neopixel, code examples, connections and warnings at: https://learn.adafruit.com/adafruit-neopixel-uberguide/the-magic-of-neopixels.The sample code has been tested with original Adafruit Neopixel sticks and may require adaptation when using other sticks.
Disclaimer
Pls check the documentation of your microcontroller before connecting. I do not take any liablity for damages or injuries. Build and use at your own risk. The linked products and pages are for reference only. I dont get paid for from the owners.
#######################################################
[German translation]Ampel
Eine schnell und einfach zu bauende Ampelfür Calliope, Arduino, ESP32, Raspberry & Co.
Benötigt wird:
Arduino, ESP32, Raspberry,ESP8266, Microbit... oder CalliopeNeopixel Stick oder ähnlich z.B. https://www.roboter-bausatz.de/p/8bit-rgb-led-leiste-aehnl.-neopixelJumperkabel ≥ 20cm z.B. https://www.roboter-bausatz.de/p/40-pin-dupont-jumper-kabel-buchse-stecker-40-cmDruckenkeine Stützstrukturen nötig (ohne )Orientierung auf dem Druckbett wie in den DateienFüllung (Infill) 15% Material: PLAFilament klar, durchsichtig 4g / Filament schwarz (matt) 42g
Abmessungen (zusammengebaut): Höhe 17,5cm , Breite 4cm, Tiefe 4cm
Löten
Jumperkabel hinter dem Stecker abschneiden und am LED Stick anlöten (GND, 5V, DIN)
ZusammenbauenStick wie auf den Bildern zu sehen einlegen (Richtung beachten)Stick mit doppelseitigem Klebeband befestigenKabel mit Stecker durch das Standrohr schiebenStandrohr ins Gehäuse steckenVerbinden & Programmieren
Calliope: 5V → + , GND → - , DIN → P0, Beispielcode https://makecode.calliope.cc/_WiR00fh3FWwr
Arduino: 5V → 5V, GND → GND, DIN → D6, Beispielcode https://wokwi.com/projects/397144578284602369
ESP32: 5V → 3.3V, GND → GND, DIN → D16 , Beispielcode https://wokwi.com/projects/397147458586094593
Bemerkungen
Die LEDs werden im Programm mit 0 bis 7 benannt. (von oben nach unten) Sichtbar sind: rot (0,1) gelb (3,4) grün(6,7) Verdeckt durch die Abstandshalter sind: (2,5)
Mehr Informationen zu Neopixel, Codebeispiele, Verbindungen und Warnhinweise unter: https://learn.adafruit.com/adafruit-neopixel-uberguide/the-magic-of-neopixels
Der Beispielcode ist mit originalen Adafruit Neopixel Sticks getestet und benötigt ggf. Anung bei Verwendung anderer Sticks.
Disclaimer
Das ist ein Hobbyprojekt. Bitte prüft vor dem Anschluss die Dokumentation Eures Mikrocontrollers. Ich übernehme keine Haftung für Schäden oder Verletzungen. Bauen und benutzen auf eigenes Risiko. Die Links auf Produkte oder andere Informationen dienen nur der besseren Erklärung. Ich erhalte keine Vergütung von den Seiteninhabern.