My Make Projects
Introduction

The goal of THime is to display the time or the temperature & humidity, packed in a LEGO ® case.
Powered by an Arduino UNO, controlled by B4R.

Functionality
  • Display
    • the time hours & minutes in HH:mm 24h format.
    • the temperature (Deg C) and Humidity (%RH).
    • 4-Digits in red.
  • Infrared Remote Control to set Mode
    • [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 -/+.
Creation Rules
  • 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.
Prototype
  • Build to test the module functionality developed with B4R.
Download: B4R Source Code here.
Published External: B4R Forum
Hardware Parts (approx cost €)
  • 1x Arduino UNO (8 €)
  • 1x 4-Bit LED Digital Tube Model (2 €)
  • 1x DHT22 temperature & humidity sensor (8 €)
  • 1x IR Receiver with Remote Control (4 €)
  • In addition for the prototype: Breadboard (2 €)
  • LEGO bricks [LEGO is a trademark of the LEGO Group] (10 €)
Software
Wiring
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)
To-Do List
Ideas for a next version.
  • UPD: Use Real Time Clock (e.g. DS1302 or other) instead of timer.
  • NEW: Measure battery voltage and indicate via Micro LED when below threshold.
  • NEW: Control via Bluetooth with B4A App.
  • UPD: IR receive on Remote Control click first time right as in cases need to click multiple times.
Changelog
  • 20170114: v1.0 published.
  • 20170108: First ideas, build a prototype with Arduino UNO, DHT22, 4-Bit LED Digital Module, IR Receiver.
THime, 2017 by Robert W.B. Linn
LEGO Case

Circuit

Prototype