Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Clock / Chrono

(you are viewing a thread; or go back to list of threads)

Clock / Chrono (by Tom J.)
Just finished this for the most part and thought someone might find it or parts of it useful so in the spirit of the forum I'm posting the ladder, it has some comments but just to define sections of code.
I'm still very novice but it works, need to tweak it for accuracy once I etch a board for it since it loses time slowly due to the ladder time but I don't see the sense in doing it on the breadboard.
There's pieces of sample code and another ladder from the forum in it. It's a 12 hr clock with a hack function and chronograph, when I write my speedometer I'll use the speedometer to initiate/start/stop/and clear the display to show 0-60, 1/4 mile, and 1/8 mile times.

Clock:
Need to pull acc high to enable display, in a car this will pull high with accessory power so the display is dark at night.

Depress MinIn and HourIn for two seconds to enter SetMode, the colon will go from a one second blink to a half second blink. The MinIn and HourIn inputs advance the minutes and hours respectively. SetMode will turn itself off after two minutes have passed.

There's a hack feature to reset seconds to 0 when the minute is advanced making it possible to sync it with another source of time.

Chronograph:
The chronograph will read to 60 seconds in tenths of a second.
Pull chronomode high and the chrono will take the display from the clock.
Pull Start high to begin timing, pull Reset high to reset to 00.0 or pull chronomode low to reset to 00.0.

Thamk You to everyone who makes LDMicro great and to those who guide us here on the forum!
Sat Nov 17 2018, 17:56:28, download attachment ClockSetModeAccChrono.ld
(no subject) (by Tom J.)
Oops, forgot the multimedia....

https://www.youtube.com/watch?v=33zcQuGTUIk
Sat Nov 17 2018, 17:57:26
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):