Hiya
TL;DR Jump to the question at the end in bold.
Decided to make up a stupidly cheap Chinese electronic dice circuit up (the one that decodes into a normal die face) and put it in a box as an excuse to get some practise in, especially the hacking up a box part.
As is always the way, it almost worked right!
But debugging and fixing is all part of the fun and the learning experience.
Firstly, there's an error on the PCB layout. one of the LEDs has been put in the wrong place. (So a 3 looks like .-. instead of .-', a 2 looks like . . instead of . ', etc.) Fortunately I managed to work around that.
The bigger problem: the circuit had a huge bias for selecting the number 1!Given that 1 has the least number of LEDs lit, and given that I am running the circuit on a pair of CR2032s (the most I can fit in the box) I figured this was probably an artefact of circuit current draw and voltage drop across the batteries? Measuring the voltage with a DMM and confirmed the unstable supply voltage depending on what was displaying. Oops.
So.... I played about with the current limiting resistor values: changed the 500ohm current limiting resistor for the single LED to 4.7Kohms and the 100ohm ones for the dual parallel LEDs to 2.2Kohms. Very little affect on brightness but hopefully a big change in current. Sadly, that didn't fix it.
Next.... I tried speeding up 555's pulses by reducing the 10uF capacitor to 1uF. Was still biased too much to 1. Left the 1uF in.
Tried a 220uF capacitor across the power. Still liked 1 too much. Left the 220uF there.
Finally, I gave up on the 47uF capacitor on the transistor base's RC input. This means no delayed switch off now and makes the transistor kinda redundant but...
... BINGO... that works.
And that's where I am.
QUESTION: How can I add 47uF capacitor back in to give the roll button a delayed switch off again without biasing the circuit towards showing 1 or otherwise being not as random? Assuming it's due to slightly unstable power, I can't really power it by anything juicier than the two CR2032s. Would adding something like a LM2940CT-5.0 voltage regulator work, as there's an extra 1V to play with and it's low drop out (0.5V @ 1A but much much less when the current is much less, which this is.) I've got a dodgy cheap chinese pack of 5 of LM2940CT-5.0 on order as, if they work, they might be handy.Warm Regards
Julie (Derby, UK)