ON_OFF DISPLAY TM1637

For general Flowcode discussion that does not belong in the other sections.
chipfryer27
Valued Contributor
Posts: 1607
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 357 times
Been thanked: 565 times

Re: ON_OFF DISPLAY TM1637

Post by chipfryer27 »

Hi

Unless sleeping you will struggle to get anything like that. Also you have a minimum voltage that your display / chip will work at. Four AA will give you around six volts (e.g. from Duracell or similar) which is higher than your PIC/display can handle. From the picture I'm guessing that those batteries are giving out around 1.25v so you will be getting your 5v or thereabouts.

I've not looked at the display datasheet but if 5v then it will possibly have 10% tolerance, so 4.5 - 5.5. Therefore you only have about 0.5v to play with, which is 10% of your battery. Not a lot of room there. Your PIC will probably be happy with anything between 2 and 5.5v though.

Perhaps consider a different display module? Many LCD / OLED can use +3.3 to 5.5v which now gives you increased life from a 5V supply as now things die at 3.3 not 4.5v (roughly speaking). I know there are applications where the brighness and clarity of an LED display is better, but if your project can use LCD / OLED you may be better to try that, or a module that has a wider operating range.

I followed in simulation (no hardware) and that means I can't simulate sleep/wdt, but your program does seem to do what it is tasked. It counts for three minutes then after a further two minutes It jumps to connection point "A" which resets everything from the beginning.

If you go into debug and run your program, pause it then in simulation debugger add your variables, you will see what is happening inside. With speed set to Fast (with updates) it takes around 30 seconds to complete and in that time you can see all your counts increase etc. It's a very good feature of FC.

Regards

ELECTRONICA67
Posts: 143
Joined: Wed Dec 02, 2020 3:59 pm
Has thanked: 26 times
Been thanked: 9 times

Flowcode v10 Re: ON_OFF DISPLAY TM1637

Post by ELECTRONICA67 »

Hello Lain,

In fact I chose to remove the display and just focus on what you mentioned, putting the circuit to sleep, without the display I managed to lower the current consumption to 0.012mA, but I can't keep the data, the PIC resets.

I opened a new topic for battery saving (I appreciate you continuing to help me with low power consumption to extend battery life).

Saludos

Post Reply