kengr: (Default)
kengr ([personal profile] kengr) wrote2019-01-08 12:50 am
Entry tags:

Electronics help

Hopefully one of you is an electronics wizard.

I need a circuit design. *hopefully* it's a fairly simple job. Once I've got the design, I can build it myself.

Ok, hopefully you've seen the ever-popular-with-geeks binary clocks. They have rows of LEDs the tell the time in BCD or even "true binary".

What I want to build is a *trinary* clock. It'd use the Red/green LEDs. The ones that are red if the current flows one way, and green if it flows the other way (and a sort of orange if the flow is changing directions really fast).

The trinary states would (obviously) be:
0 = off
1 = red
2 = green

And the display would be "trinary coded decimal" (Perhaps with true trinary as an option.)

So the values would be (turned sideways) with X for off,. R for red, and G for green

0 = XXX
1 = XXR
2 = XXG
3 = XRX
4 = XRR
5 = XRG
6 = XGX
7 = XGR
8 = XGG
9 = RXX

So the display for the TCD version would look like this: (underlines are just to get things to line up right)

_X___X___X
_X__XX__XX
XX__XX__XX

For the true trinary, we need the numbers up to 59

10 = XRXR
11 = XRXG
12 = XRRX
13 = XRRR
14 = XRRG
15 = XRGX
16 = XRGR
17 = XRGG
18 = XGXX
19 = XGXR
20 = XGXG
21 = XGRX
22 = XGRR
23 = XGRG
24 = XGGX
25 = XGGR
26 = XGGG
27 = RXXX
28 = RXXR
29 = RXXG
30 = RXRX
31 = RXRR
32 = RXRG
33 = RXGX
34 = RXGR
35 = RXGG
36 = RRXX
37 = RRXR
38 = RRXG
39 = RRRX
40 = RRRR
41 = RRRG
42 = RRGX
43 = RRGR
44 = RRGG
45 = RGXX
46 = RGXR
47 = RGXG
48 = RGRX
49 = RGRR
50 = RGRG
51 = RGGX
52 = RGGR
53 = RGGG
54 = GXXX
55 = GXXR
56 = GXXG
57 = GXRX
58 = GXRR
59 = GXRG
60 = GXGX
61 = GXGR
62 = GXGG
63 = GRXX
64 = GRXR
65 = GRXG
66 = GRRX
67 = GRRR
68 = GRRG
69 = GRGX
70 = GRGR
71 = GRGG
72 = GGXX
73 = GGXR
74 = GGXG
75 = GGRX
76 = GGRR
77 = GGRG
78 = GGGX
79 = GGGR
80 = GGGG

So the true trinary display would look like this:
_XXX
XXXX
XXXX

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting