Page 1 of 3

Quad 7 Segment display is flickering

Posted: Mon Feb 21, 2022 12:40 pm
by nbgiltdnaogaon
Dear Sir,

I am using free version of Flowcode 9.
My problem is:
I have loaded the two Example programs (provided in your website) of Quad 7 segment display into my Microcontroller 16F877A .

https://www.matrixtsl.com/wiki/index.ph ... :_Segment)

But the 7 Segment display is flickering for a while and then stops working.
How can I solve this problem and make the display stable? Please Help.

Thank you
Fahim

Re: Quad 7 Segment display is flickering

Posted: Mon Feb 21, 2022 1:29 pm
by medelec35
Hi.
It will probably be a mixture of the hardware configuration settings and timer interrupt speed.
A tip would be to make sure the hardware speed matches the configuration settings.
This can be done by running a one-second flasher at the start of a new project.
If your hardware is running slower than the example, then you will need to adjust interrupt speed accordingly.
You can do that by double-clicking on the interrupt icon and change the settings.
If you post your flowchart, I will see if I can spot the issue for you.

Re: Quad 7 Segment display is flickering

Posted: Tue Feb 22, 2022 9:00 am
by nbgiltdnaogaon
Thank you Medelec35 for your reply.

I've tried the One_second Flasher in my Microcontroller.
One second counting is fine. I counted for a minute using stopwatch.

Here is the flowcode:
7Seg_Quad_Test2 (1).fcfx
(8.26 KiB) Downloaded 418 times
Please suggest How can I stable the Quad 7 segment displays Flickering.

Thank you

Re: Quad 7 Segment display is flickering

Posted: Tue Feb 22, 2022 11:16 am
by medelec35
I have just tried the flowchart you posted, set for my target device and 7seg LEDS.
No flickering at all running at 19.06MHz.
Count up is working as expected
Does the numbers look like they are correctly formed, so 1 looks like a 1 and 2 looks like a 2? etc.
Or are random segments lit?

Re: Quad 7 Segment display is flickering

Posted: Tue Feb 22, 2022 11:37 am
by Steve-Matrix
Another thought - if it's flickering in a random way then it could be there is a problem with the hardware (e.g. the cables between the micro and display or perhaps the power supply). This could also explain why it stops working after a while.

Re: Quad 7 Segment display is flickering

Posted: Sat Mar 05, 2022 12:23 pm
by nbgiltdnaogaon
I am using a 20MHz crystal oscillator. The numbers are not correctly formed or may be I can't understand the numbers due to flickering.

Today while loading program in the Microcontroller I got an electric shock. Now my Microcontroller is not working at all. No flickering and nothing.
The USB gives an electric shock. The measured voltage in USB is 5.17 V . Electric tester glows in all four wires of USB.

I am completely new in this. So please suggest me the hardware and other necessary details.

Thank you

Re: Quad 7 Segment display is flickering

Posted: Sat Mar 05, 2022 6:54 pm
by WingNut
Are you powering the circuit from an external power source?

Re: Quad 7 Segment display is flickering

Posted: Sun Mar 06, 2022 7:28 am
by nbgiltdnaogaon
While running I am using an external power source.
  • A 12V transformer
  • Full Bridge rectifier using 4 X 1N4007 diodes
  • 2200uf 50V Capacitor
  • 7805
  • 103 Ceramic capacitor in Input and Ground Pin of 7805
  • 103 Ceramic capacitor in Output and Ground Pin of 7805
I am getting 4.99 to 5.00 V between Output and Ground Pin of 7805. It does not gives any shock.

In my last question I told about the Electric shock when I touched 7805's body during program Loading into Microcontroller from my Computer.

Is my power supply okay for the project ? Or do I need to improve it?

Thank you

Re: Quad 7 Segment display is flickering

Posted: Sun Mar 06, 2022 10:05 am
by WingNut
Measure using the ac range to see if you are getting mains voltages on the dc end. And if you have a circuit diagram of your power supply post it here

Re: Quad 7 Segment display is flickering

Posted: Sun Mar 06, 2022 11:23 am
by kersing
nbgiltdnaogaon wrote:
In my last question I told about the Electric shock when I touched 7805's body during program Loading into Microcontroller from my Computer.

Is my power supply okay for the project ? Or do I need to improve it?
You need to find where the over voltage originates as it might be life threatening!