Hello,
I'm building a counter using the TM1637. I previously received help turning off unused digits, and now I'm resuming that project, but I can't get any digits to light up. I've tried Flowcode 10 and Flowcode 11 and get the same result: no digits light up. I don't know if it's a bug or if it's configured incorrectly. I would appreciate it if you could check the component.
Thanks
Enrique
TM1637
-
ELECTRONICA67
- Posts: 165
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 3:59 pm
- Has thanked: 29 times
- Been thanked: 9 times
TM1637
- Attachments
-
- FOTO.jpeg (59.54 KiB) Viewed 399 times
-
- ON_OFF_TM1637.fcfx
- (15.87 KiB) Downloaded 56 times
-
chipfryer27
- Valued Contributor
- Posts: 1945
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 425 times
- Been thanked: 646 times
Re: TM1637
Hi
Following on from Wingnut, 3 x 1.5v AA batteries may not last very long as it looks like you will be powering relays as well as everything else, however that is a problem for another day. Also, you are using an external oscillator with a 19.xx crystal but your picture isn't clear enough to see if that is present along with the necessary capacitors. If you don't have an oscillator "oscillating" then your chip will appear dead.
Assuming your oscillator is fine, then the issue may be that in your chart you have set brightness to "1" which is very, very dim. In simulation you cannot even see the digits illuminate. Changing that to a higher value (range 0-7) shows that your chart does work as it should, counting from 0 - 9999 before resetting.
Regards
Following on from Wingnut, 3 x 1.5v AA batteries may not last very long as it looks like you will be powering relays as well as everything else, however that is a problem for another day. Also, you are using an external oscillator with a 19.xx crystal but your picture isn't clear enough to see if that is present along with the necessary capacitors. If you don't have an oscillator "oscillating" then your chip will appear dead.
Assuming your oscillator is fine, then the issue may be that in your chart you have set brightness to "1" which is very, very dim. In simulation you cannot even see the digits illuminate. Changing that to a higher value (range 0-7) shows that your chart does work as it should, counting from 0 - 9999 before resetting.
Regards
-
ELECTRONICA67
- Posts: 165
- Joined: Wed Dec 02, 2020 3:59 pm
- Has thanked: 29 times
- Been thanked: 9 times
Re: TM1637
They work with previous examples, but with the same examples in updated versions, the display doesn't show any digits.
-
chipfryer27
- Valued Contributor
- Posts: 1945
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 425 times
- Been thanked: 646 times
Re: TM1637
Hi
I am using the latest edition of FC with updated databases and if I change brightness to a high level, it works fine in simulation.
Can you be more specific with your issue?
Regards
I am using the latest edition of FC with updated databases and if I change brightness to a high level, it works fine in simulation.
Can you be more specific with your issue?
Regards
-
ELECTRONICA67
- Posts: 165
- Joined: Wed Dec 02, 2020 3:59 pm
- Has thanked: 29 times
- Been thanked: 9 times
Re: TM1637
I want to count a number of pulses. In the example, I count using a variable: count = count + 1; It doesn't read the pulses received by the PIC and the displays don't light up.
- Attachments
-
- IOC_1847dply.fcfx
- (22.04 KiB) Downloaded 38 times
-
- display.jpeg (44.46 KiB) Viewed 326 times
-
ELECTRONICA67
- Posts: 165
- Joined: Wed Dec 02, 2020 3:59 pm
- Has thanked: 29 times
- Been thanked: 9 times
Re: TM1637
en la simulacion funciona correctamente, en el hardware no encienden los segmentos, incremente a 4 el brillo
-
ELECTRONICA67
- Posts: 165
- Joined: Wed Dec 02, 2020 3:59 pm
- Has thanked: 29 times
- Been thanked: 9 times
-
chipfryer27
- Valued Contributor
- Posts: 1945
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 425 times
- Been thanked: 646 times
Re: TM1637
Hi
The above is a very different chart to the one you originally asked about.
What problem?
No display or not counting pulses?
Regards
The above is a very different chart to the one you originally asked about.
What problem?
No display or not counting pulses?
Regards
-
ELECTRONICA67
- Posts: 165
- Joined: Wed Dec 02, 2020 3:59 pm
- Has thanked: 29 times
- Been thanked: 9 times
Re: TM1637
no se visualiza y creo tampoco cuenta los pulsos, ahorita estoy probando una simple suma de una variable que incrementa en 1 cada 500 mS sin tomar en cuenta los pulsos, nadamas para visualizar el display; cambie a Flowcode 11 pro