A few few years ago (in 1995), Tehnium magazine publish an article send by me 😀 (then I was a young student) in nr. 1/1995 (see magazine).
Schematic was inspired by article from Tehnium anual magazine 1990, but my schematic have extra ligts "games":
A few time ago (3-4 years) I need a simple schematic for automatic dynamic games without microcontrollers, so I remenber my schematic... but I simplify my schematic to eliminate useless states, so new schematic is
I maded the schematic on test board:
I made few movie with this schematic, in my language, but lights made without language 😇, so, I reccomand you to see at nest movies:
- joc de lumini cu 4 canale
For car tunning enthusiastic like my friend George I design a Gear Shift Indicator based on my old article when use just keys, diodes, few resistors and 7-segment display. Now, I use TLE4905L hall sensors instead simple keys (push buttons) and Arduino board.
Schematic is simple:
If you upload my GearShift_1.ino sketch, on display you can see:
- P for parking
- 1 for first gear:
- 2 for second gear
- 3 for third gear
- 4 for fourth gear
- 5 go fifth
- 6 for sixth gear
- 0 flashing for reverse gear
- nothing for unknown state:
You can see George's movie (without sound 😎) named Gear Shift Indicator with first test in workshop:
I found a cheap led display some time ago, with TM1637 chip, has 4 digit 7-segment and 2 leds for seconds, so, I decided to made a clock using DS3231 RTC module clock:
In Arduino clock with DS3231 on TM1637 display (2) movie, you cand see the diference on display and in sketch....
Next step was to put an encoder (KY-040) to change hours and minutes, schematic is:
(also, I put an speaker/buzzer from PC between D7 and GND).
For change hours, must long push (2-3 seconds) the push button from encoder, and you will see
so, must rotate clocwise to increase value or rotate antioclockwire (trigonometric sense) to decrease value for hour. When hour has desired value must push on button from encoder to enter in mode to change minutes:
Procedure is similar, and after change value for minutes must push on button from encoder to enter in usual mode, as a claock.
I find a big display: 3.95" = 10cm: original use is for Raspbbery Pi board, but I put at Arduino Due development board because work like RPi with 3.3V logical level voltage... If I (or you) want to use with classical Arduino board (Uno, Mega, Nano, etc) must add two CD4060 chips (hex noninverting buffer)
or buy another display with logical interface and made as shield for Arduino board:
After I talk with Vlad who use Arduino Nano and than Mega, I made next schematic:
After I was documented, I use MCUFRIEND_kbv library with one example (single who works):
I tested with good resuls using Arduino IDE 1.6.0, 1.6.6 and 1.8.0 software version on different PC with Windows XP or Windows 10.
In test the display in Cristhmas period, so I put adequate texts:
In previous article I made a simple Arduino Chriostmas tree on breadboard with 9 leds, now I use a big piece of cardboard and cutter... I use 21 recovered leds (old leds) on 17 channels (I put 2 red leds in series) as in this schematic
I use Arduino Nono board with ATmega168 because sketch is small (see christmas_tree_17channels.ino), but hase interesting effects (random leds lite, random delay between commands, random leds off), as in Carton Christmas tree with leds movie:
After the Christmas tree was adorned I made new movies:
I write 2 sketches, first (christmas_lights_1.ino) chose random the led for power on, wait 50ms, chose random the led for power off, second sketch (christmas_lights_1a.ino) is like first, just change time wirtting as be random from 10 to 100ms.
I tested an (retired now) WeMos D1 development board made with ESP8266EX microcontroller. About this board I found some info at https://www.wemos.cc/product
For easy use as other Arduino boards, is ok to see this picture:
Last project with this board is a Web Switch Control.
This sketch made a webserver using AJAX style (static page and just some datas is changes).
My sketch led_controlled_from_webpage.ino has some change line, but I use same password (1234), and my led is at GPIO5 (D15/SCL) and GND (I not put 220-470 ohms resistor limiter, but is more good to put). I use 8087 port, but you can change to 80.
After I tested about one mounth, I see some problemes, when wi-fi router is disconnected and reconnect.. so, I study but I give a tip from a collaborator, Mircea Craciun, who indicate my another post from ESP8266 forum.
I put an LED for wi-fi error at GPIO12 (D12/MISO) and GND.
At first start, after restart or if link between router and WeMos is broken, second led blink until link with wi-fi is ok. You can see in ESP8266 Switch control with autoreconnect to wi-fi network movie how WeMos D1 board is working.
At http://www.esp8266.com/wiki/doku.php?id=arduino-docs I found how I can use EEPROM memory from ESP8266EX microcontroller for store the state of led (ON or OFF) and number of good clicks (just for see how work the system).