Industriële fabricage
Industrieel internet der dingen | Industriële materialen | Onderhoud en reparatie van apparatuur | Industriële programmering |
home  MfgRobots >> Industriële fabricage >  >> Manufacturing Technology >> Productieproces

3D RGB Arduclock – Bluetooth LED Tijdstuk met Real-Time Clock

Onderdelen en Benodigdheden

Onderdeel Aantal
Arduino Nano R3 1
HC-05 Bluetooth Module 1
Adafruit NeoPixel Ring: WS2812 5050 RGB LED (7 LEDs per ring) 7 ringen
Digilent Pmod RTCC (Real-Time Clock) 1
Speaker 0.25W, 8Ω 1

Benodigde Tools en Machines

  • Solderbout
  • 3D Printer

Over dit Project

Na de succesvolle "Animated RGB Wall Clock" presenteert het team nu de 3D RGB ARDUCLOCK. Een draagbare, 3D-geprinte klok met individueel adresbare RGB LEDs (WS2812), bestuurd via een eenvoudige smartphone app (APK beschikbaar).

Functies

  • Tijd weergave (uren/minuten/seconden op 7-segment stijl LED ringen)
  • Temperatuur weergave
  • Datum weergave
  • Tijd instellen via Bluetooth (vanuit telefoon)
  • Datum instellen via Bluetooth
  • Alarm instellen met "Game of Thrones" thema-melodie
  • Kleur aanpassen: alle cijfers, per cijfer-groep, of seconden-punten
  • Animatiemodus (regenboog, theater chase, color wipe, etc.)

Benodigd voor Bouw

  • 3D-printer bestanden (STL)
  • Arduino code
  • Elektronisch schema
  • APK voor Android (volledige controle)
  • Details & download: Projectpagina

Code Overzicht

De code gebruikt 7 aparte NeoPixel-strips (elk 7 LEDs) voor de 6 cijfers + seconden-scheidingstekens. Belangrijke datastructuren:

7-Segment Encoding

byte sevendisplay[19][7] = {
  {1,1,1,1,1,1,0}, // 0
  {0,0,1,1,0,0,0}, // 1
  {0,1,1,0,1,1,1}, // 2
  {0,1,1,1,1,0,1}, // 3
  {1,0,1,1,0,0,1}, // 4
  {1,1,0,1,1,0,1}, // 5
  {1,1,0,1,1,1,1}, // 6
  {0,1,1,1,0,0,0}, // 7
  {1,1,1,1,1,1,1}, // 8
  {1,1,1,1,1,0,1}, // 9
  {1,1,0,0,1,1,0}, // C (Celsius)
  {1,1,1,0,0,0,1}, // ' (apostrof)
  {1,0,1,1,0,1,1}, // H
  {1,0,0,0,1,1,0}, // L
  {1,1,0,0,0,1,0}, // t (klein)
  {1,1,0,0,1,1,1}, // E
  {0,0,0,0,0,0,0}, // blank
  {1,1,1,1,0,1,0}, // N
  {1,1,1,0,0,1,1}  // P
};

Kleurpalet


byte color[10][3] = {
  {0,0,255},     // Blauw
  {0,225,0},     // Groen
  {0,255,255},   // Cyaan
  {255,0,0},     // Rood
  {255,0,255},   // Magenta
  {255,255,0},   // Geel
  {255,255,255}, // Wit
  {100,150,250}, // Lichte blauw
  {255,50,30},   // Oranjerood
  {100,0,200}    // Paars
};

Bluetooth Commando's

De app stuurt commands als strings terminéerd met '.':

CommandoParametersActie
tarijdag.maand.jaar.Datum instellen
saatuur.minuut.Tijd instellen
alarmuur.minuut.Alarm instellen + activeren
d1..d4-Kleur volgende paletkleur (per digit-groep)
all-Alle digit-groepen volgende kleur
clock-Toon tijd (standaard)
date-Toon datum
temp-Toon temperatuur (×100 voor 2 decimalen)
animation-Start animatie sequentie

Alarm Melodie: Game of Thrones

De GameOfThrones() functie speelt de bekende openingsmelodie af op de buzzer, gesynchroniseerd met LED knipperen per noot. Gebruikt tone()/noTone() op pin 13.

Animatie Effecten

  • colorWipe() – Kleur vult strips één voor één
  • rainbow() – Regenboog over alle strips
  • rainbowCycle() – Gelijkmatig verdeelde regenboog
  • theaterChase() – Theater achtervolging effect
  • theaterChaseRainbow() – Theater chase met regenboog kleuren

Schema

3D RGB Arduclock – Bluetooth LED Tijdstuk met Real-Time Clock

Let op: De code bevat dubbele NeoPixel objecten (pixels + strip) voor dezelfde pinnen – dit kan opgeschoond worden. De RTCC module communiceert via I2C (SDA/SCL). Bluetooth op hardware serial (pins 0/1) of SoftwareSerial.

Productieproces

  1. Bouw je eigen UFO Attack Game met Arduino UNO & MAX7219 Display
  2. Arduino Digitale Dobbelsteen: Bouw Je Eigen LCD-willekeurige Getalgenerator
  3. Water-aangedreven vuureffect: Arduino UNO + NeoPixel Stick project
  4. Riviergezondheidsmonitor: Arduino-gebaseerd Waterkwaliteitssysteem
  5. Een Arduino Iron Man bouwen: onderdelen, sensoren en stapsgewijze handleiding
  6. Interactieve Joystick Game met Arduino en LED Feedback
  7. Find Me: Slimme Item Locator met Arduino en Bluetooth
  8. Bouw een Functionele, Arduino-aangedreven 3D-geprinte Robotarm – Stap-voor-Stap Handleiding
  9. Draagbare Afstandsdetector – Arduino Nano DIY Kit met HC-SR04, 18650 Accu en 3D-geprinte Behuizing
  10. DIY Arduino Luchtbevochtiger Controller met Relais – Veilige Hoogspanningsopstelling
  11. Arduino-gestuurde Residentiële Luchtstroommeter: Bouwen & Monitoren