The 1 RGBLED clock is a clock representing the time with only 1 RGB LED.
Advantages:
- few and cheap components: <5€
- small size, portable
=> easy to recreate
Disadvantages:
- hard to read the time
A clock showing hours and minutes using only one RGB-LED to display the data
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
The 1 RGBLED clock is a clock representing the time with only 1 RGB LED.
Advantages:
- few and cheap components: <5€
- small size, portable
=> easy to recreate
Disadvantages:
- hard to read the time
For testing, I'm using an Arduino Nano clone as a microcontroller.
As it is easier to see the individual colors, I used individual LEDs for red, green and blue. They are connected from three digital Pins on the Arduino (D5, D6 and D7) and a resistor network of 680 Ohms, which connects to ground (GND on the Arduino).
The LEDs (from China) I use don't need very high current to light up, but they have different brightness at around same current. That could be fixable by using different resistor values, or using PWM.
I also wrote a simple code to test if everything works. It lights up the LEDs one at a time. (I'm using the Arduino IDE):
void setup(){
pinMode(5,OUTPUT);
pinMode(6,OUTPUT);
pinMode(7,OUTPUT);
}
void loop(){
digitalWrite(5,HIGH);
digitalWrite(6,LOW);
digitalWrite(7,LOW);
delay(1000);
digitalWrite(5,LOW);
digitalWrite(6,HIGH);
digitalWrite(7,LOW);
delay(1000);
digitalWrite(5,LOW);
digitalWrite(6,LOW);
digitalWrite(7,HIGH);
delay(1000);
}
There are two things to think about in this project: Hardware and Software.
The hardware is simple in this case: One RGB-LED or three individual LEDs in three different colors are connected to resistors and a microcontroller (ATTiny?) on analog output.
The important thing on software-side is representing the time on the LED in a format humans can read with easy explanations. Following are my first notices about this.
- There are 12 different hours to display. Assign each one a color. As each LED can be controlled in brightness, it should be easy to find 12 distinguishable colors.
- There are 60 minutes in a hour. Every LED can blink in 4 different patterns, which means 4*4*4=64 different blink combinations. One LED counts quarter hours, and the other two represent a number of minutes in that quarter.
Create an account to leave a comment. Already have an account? Log In.
Become a member to follow this project and never miss any updates
Looks interesting and hoping to see a video to see if my tired older eyes can track the colors :-)