Did you say this incorrectly or is your schematic wrong? Because, this line doesn't make sense that you have A-G connected to the PNP (not shown that way in the schematic).I have connected the common pins (A-G) of 7 segments to the PNP transistor
You should have only one of your PNP bases in a low-state at a time for proper multiplexing.
Good catch. That chip has max I/O current of 25mA.In round numbers, with a 5 V supply each PIC output is trying to sink around 30 mA. IIRC, too much. There is a limit to the max continuous current for each I/O pin and another limit to the total GND current for the chip.
Increase the segment resistors to 470 ohms each and see if things work correctly. It will be much dimmer, but once things are working you can decrease them for increased brightness. Without drilling down into the datasheet, keep the segment resistors above 220 ohms.
ak
In round numbers, with a 5 V supply each PIC output is trying to sink around 30 mA. IIRC, too much. There is a limit to the max continuous current for each I/O pin and another limit to the total GND current for the chip.
Increase the segment resistors to 470 ohms each and see if things work correctly. It will be much dimmer, but once things are working you can decrease them for increased brightness. Without drilling down into the datasheet, keep the segment resistors above 220 ohms.
ak
Exactly, slow it right down - once per second is good, as you can then actually measure things using a multimeter.If you set port D low and just cycle the PNP you should see each digit light in sequence - slow down the multiplex speed as suggested by Les.
Mike.
Thanks for your help.I'd also suggest adding resistors between base and emitter of each transistor, to ensure they switch off correctly.
Yes, you're right. that was type mistake.Did you say this incorrectly or is your schematic wrong? Because, this line doesn't make sense that you have A-G connected to the PNP (not shown that way in the schematic).
Also, a PNP must be pulled high to turn it off (low to turn it on). You should have only one of your PNP bases in a low-state at a time for proper multiplexing.
Thank you, I will try it.In round numbers, with a 5 V supply each PIC output is trying to sink around 30 mA. IIRC, too much. There is a limit to the max continuous current for each I/O pin and another limit to the total GND current for the chip.
Increase the segment resistors to 470 ohms each and see if things work correctly. It will be much dimmer, but once things are working you can decrease them for increased brightness. Without drilling down into the datasheet, keep the segment resistors above 220 ohms.
ak
No, I have not. However, most of the time I can not work with proteus, but I will try it in.Have you simulated the circuit in proteus or any other simulation software? If yes, what do you see in the simulation? As somebody has already said, You must have only one of your PNP bases in a low-state at a time for proper multiplexing. You can review the part of your code where you're controlling this scanning time.
Code works well, the problem occurs above 3.8v.If you set port D low and just cycle the PNP you should see each digit light in sequence - slow down the multiplex speed as suggested by Les.
Mike.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?