This make project displays the time or the temperature & humidity, packed in a LEGO ® case. (LEGO is a trademark of the LEGO Group)
- the time hours & minutes in HH:mm 24h format.
- the temperature (Deg C) and Humidity (%RH).
- uses 4-Digits in red.
- [Button n] = [Mode]
- Button 1 = Display Time.
- Button 2 = Display Temperature + Humidity. No digits.
- Button 3 = Display Temperature with 2 digits.
- Button 4 = Display Humidity with 2 digits.
- Button 5 = Set Hours.
- Button 6 = Set Minutes.
- Button 7 = Set Brightness.
- Button 8 = Turn display on / off.
- Button 9 = N/A.
- Button - = Decrease Hours, Minutes, Brightness depending mode.
- Button + = Increase Hours, Minutes, Brightness depending mode. Notes
- When powering on, the default time is 19:58. Set the time by pressing button 5 for hours and button 6 for minutes.
- Ensure to press button 1 after completing settings via buttons 5 - 9 and -/+.
- Use as microcontroller an Arduino UNO or compatible.
- Use standard LEGO bricks.
- Minimize LEGO brick modifications.
- LEGO Case with modular components.
- Build code with B4R.
- 1x Arduino UNO (8 EUR)
- 1x 4-Bit LED Digital Tube Model (2 EUR)
- 1x DHT22 temperature & humidity sensor (8 EUR)
- 1x IR Receiver with Remote Control (4 EUR)
- In addition for the prototype: Breadboard (2 EUR)
- LEGO bricks (10 EUR)
- Arduino IDE 1.8.0 or higher
- B4R 1.8.0 or higher
LED Display = Arduino
CLK = Digital 8 (yellow)
DIO = Digital 7 (green)
VCC = 3.3v (red)
GND = GND (black)
DHT22 = Arduino
VCC = 5v (red)
DATA = Digital 4 (yellow)
GND = GND (black)
IR Receiver = Arduino
DATA = Digital 11 (purple)
VCC = 5v (red)
GND = GND (black)
(WireColors)
The B4R source code and required libraries can be found in archive thime.zip. The code is well documented.