Circuit Network and storing values for accumulator display
Posted: Tue Mar 05, 2019 9:02 pm
by AlienRaven
Hey, guys. I was using curcuit network for long time, but only for simple things, like switching power on\off if conditions are met, etc.
Just for a note, I've read everything, that is available on wiki in terms of descriptions and guides, also watched guides on youtube, but I feel like I'm stuck with my learning project and I ask for help.
Recently I wanted to dig a little deeper in circuit network magic of a little more complex things, so I decided to create something slightly more complex than I usually did, specifically the accumulator display.
This post is not about me asking for a blueprint, I'm instead interested to understand how it works through building, so later I can built something else myself.
Here's list of requirements, I've put in front of myself (green - i did it, yellow - I did it, but it doesn't work perfectly, red - I'm stuck):
Number 1 (final design)
Number 2 (test stand)
One more thing to note, I think I have an idea how to do it in terms of programming, the issue I'm having is I'm not 100% sure how to create specific things using circuit network itself.
Here's a list of my questions, that possibly someone can help me understand better:
This design, I've found on reddit seems to work, but its such a compact mess of combinators and wires, I'm just banging my head against the wall, trying to understand how it works.
Just for a note, I've read everything, that is available on wiki in terms of descriptions and guides, also watched guides on youtube, but I feel like I'm stuck with my learning project and I ask for help.
Recently I wanted to dig a little deeper in circuit network magic of a little more complex things, so I decided to create something slightly more complex than I usually did, specifically the accumulator display.
This post is not about me asking for a blueprint, I'm instead interested to understand how it works through building, so later I can built something else myself.
Here's list of requirements, I've put in front of myself (green - i did it, yellow - I did it, but it doesn't work perfectly, red - I'm stuck):
- Battery shaped lamp display with segments, representing charge, lightning up accordingly to charge percentage.
- Lighted up segments are painted to a specific color, based on charge (<=20% - red, <=40% - yellow, >40% - green), so at a single time whole battery is just displayed with one color.
- When exactly at 0% first segment will flash red.
- Battery border will blink, when charging or consuming charge.
- If its charging it blinks green, if it consumes the charge it will blink red.
- There's an indicator, that shows the lowest value overnight, that resets next time accums charge starts to go below 100.
Number 1 (final design)
0eNrdnW9uHMmRxe/Cz5RQ+b9ysDAwPoAvsDAG0ohjE5YogSJnPTB0gL3H7sX2JMuWujWaenxkvHF32xFfbIgjNclXLzIjI6Pi94+L12/vrz7cXt/cXXz3j4vrH9/ff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do4luRPz5gNmayPhYo9220WCTaJpJ1P8hjh4zycEkSf7buFaRt0OpcXiS1dTtrrTbtSJWvfRjqdnZOp2bxE2osNv5Pk9M167nSPsXaV4vBj5aRHK44LzY3pxA39ni9GTtvyJP5X3Q+X56wPWCR72uh/x1eu4zTNx1uV47xCQ7iOntENw5q/plZEO0OocQAdGdWI27AUEx2+3wQs16aenWha2+p6ZyQX/Lsopk2cugIxi3NM0Yq/e7f/neFKedtyWbP2BiF74UK9KshO3khJem8W02Q/RojFTRZ5tUpkC+D+NO3qrPSevHV2J8fdynOd763Kl85/Vpd3n77RvLq2/7mLEXN7eWRSQDrqKIR1wej/8AS39s3w==
One more thing to note, I think I have an idea how to do it in terms of programming, the issue I'm having is I'm not 100% sure how to create specific things using circuit network itself.
Here's a list of my questions, that possibly someone can help me understand better:
- How to store a value, that will stay same, disregarding of the continious input value? Like, to let CN know that accums are losing charge, I can compare A and B, where A is current charge level and B is a charge level lets say a second ago. If A<B - it is loosing charge. I tried SR latches and memory cells from tutorials on wiki, but my B is always equal to A as it changes overnight.
- How to force pulse machine to stop outputting the value if the initial condition is not met on first decider combinator? Please see the blueprint Number 2 for it - on the right a have a solution that forces lowest row of lamps to blink, if A(ccumulator charge)=0. It does so, but if A will raise above 0, when the pulse had negative value - it will continue to output that negative value, which will cause the lamps to be disabled due to enabled condition for A be greater or equal than 0 to light.
0eNrtXdtuI0eS/Rc+7lLeirxnY2YBz8UzmD9oDIyGLrSbWN1AUd5tGPr3JdktS51RwYyTIkWWVC8Du91TlYw4GdcTUb9Pzi7vZ7eL+fVy8uH3yfz85vpu8uHfv0/u5r9en16u/2z55XY2+TCZL2dXk+nk+vRq/W8Xs/P5xWxxcn5zdTa/Pl3eLCYP08n8+mL2f5MP9PDzdDK7Xs6X89nXp23+5cun6/urs9li9Rf+eM7d/dnd8nQ5v7lePfv25m6++cfVW1ePOYk/+Onky+ofyPzgHx6m7Dnm6TlXp5eXJ5enV7c9zwmPT+l7hlU9w297hFP9nFD7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Z
This design, I've found on reddit seems to work, but its such a compact mess of combinators and wires, I'm just banging my head against the wall, trying to understand how it works.
0eNrtXdtu4zYQ/ZWtgL60diGSImkHuwWy733Z16IwFIdJhNUNuqQ1Fv6A/Y/2x/olpeQkjilS0tCOZRZ52V3rQknnzIxm5pDab95NXIu8iNLKu/rmRessLb2r3795ZXSfhnGzrdrkwrvyokok3sxLw6T5dSvW0a0o5ussuYnSsMoKbzvzovRW/OVdoe0fM0+kVVRFYjda+2OzSuvkRhTygJdxEnEb1clcxGJdFdF6nmexkFfJs1KenKXN9eWAczbzNs1f2+2sMxjuu6nuUMEv9HmwmXcbFfLC7V45jHz4qsji1Y14CB8jebY85WnMldx3245TNlvvoqKsVh2MHqOiquWWlzvaHTG/bsBpoK3CBmfk+83PJA+L9iavvH+//yNPyuoqrwHD3hdCpLuh8428wzqtVndFlqyiVI7jXd2FcSm2u0unu+ds7x41fxTi9jU1kfwlgVlHxbqOqvanpFGeiw0HE7lXRwfZ32USxvE8DpNcQwPek6CD/fk+XmC3QD1MN9VDlN4fgq9C/2uzuy6FvFScFRKfqqjFeMzwIWbYgEoAtHjUY/DU0uDpZAa/7II+vbVj1dpnB7sZxBm4gXZmSVUwGVWLS6SK9lOFQIFraeCKjwtcZO9MTgcuqgauQ0wXBpQWoPDuPEpcNTVkwGUJsp7AdVxYv/Ug3wAT8kH24zxOSxUYU4KA0Dhg0P/EsUzxBWEQDs4biNlTxiXSkwVaTU4HeKOjwPTYAeSxz0//4rjHJko8wKYyCtlm+WSy1JFfYurIBrJ8DEkdEW86G7tbVHeZ0kpkWwPgyYhkpyByI+I4+/OU9RooyzfzAcvzifMvmIFEHxnfxLBU332g1Fwfm3J9BEv2sfPIDGT72DeHRTp8qhZjDCsU3MdYrRQw7nvXdI/VowirKtz3YVMww7Cywnlz6nFJuevQeogpzmFQCXJ+4+HHliCKF5lqEgyqSc5vO+woHLBakxBTTYJtaxI0WSpLLzKVRQNVCQaJD9ikPmDL0sOfjK7AkcrjkK4g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