Quad 7 Segment display is flickering

Post and discuss new components that you have created.
nbgiltdnaogaon
Posts: 5
http://meble-kuchenne.info.pl
Joined: Sun Jan 16, 2022 9:42 am
Has thanked: 1 time

Quad 7 Segment display is flickering

Post 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

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 469 times

Re: Quad 7 Segment display is flickering

Post 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.
Martin

nbgiltdnaogaon
Posts: 5
Joined: Sun Jan 16, 2022 9:42 am
Has thanked: 1 time

Re: Quad 7 Segment display is flickering

Post 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 406 times
Please suggest How can I stable the Quad 7 segment displays Flickering.

Thank you

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 469 times

Re: Quad 7 Segment display is flickering

Post 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?
Martin

Steve-Matrix
Matrix Staff
Posts: 1234
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: Quad 7 Segment display is flickering

Post 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.

nbgiltdnaogaon
Posts: 5
Joined: Sun Jan 16, 2022 9:42 am
Has thanked: 1 time

Re: Quad 7 Segment display is flickering

Post 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

WingNut
Posts: 254
Joined: Tue Jul 13, 2021 1:53 pm
Has thanked: 33 times
Been thanked: 23 times

Re: Quad 7 Segment display is flickering

Post by WingNut »

Are you powering the circuit from an external power source?

nbgiltdnaogaon
Posts: 5
Joined: Sun Jan 16, 2022 9:42 am
Has thanked: 1 time

Re: Quad 7 Segment display is flickering

Post 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

WingNut
Posts: 254
Joined: Tue Jul 13, 2021 1:53 pm
Has thanked: 33 times
Been thanked: 23 times

Re: Quad 7 Segment display is flickering

Post 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

kersing
Valued Contributor
Posts: 149
Joined: Wed Dec 02, 2020 7:28 pm
Has thanked: 63 times
Been thanked: 56 times

Re: Quad 7 Segment display is flickering

Post 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!

Post Reply