7SegLED-4 with common anode

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
ksor
Posts: 126
Joined: Mon Oct 23, 2006 3:50 pm

7SegLED-4 with common anode

Post by ksor »

I want to design with a unit with common CATHODE - how ?

Best regards

jimhumphries
Posts: 112
Joined: Wed Oct 12, 2005 6:29 pm
Location: USA
Been thanked: 1 time

Post by jimhumphries »

Ksor:

The quick and dirty way is to ground the cathode and to put series resistors between the anodes and the PIC output port lines. For 5 milliamps per segment, use 700 Ohm resistors (650 Ohms is close enough). When the output port goes high (to +5V) current will flow through the segment and it will light up. The PIC output ports can source 25 mills each so they can easily handle this.

Jim

ksor
Posts: 126
Joined: Mon Oct 23, 2006 3:50 pm

Post by ksor »

Yes yes - but how in FlodCode ?

And the common ANODE in the excisting 7SegLED HAS to be connected to a PORT - that's waste of ports - I believe.

I only have tried the DEMO version of the FlowCode.

KS

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post by Benj »

To do a common Anode design i think youll have to create the flow chart yourself. The inbuilt hardware modules are designed to work with the Matrix Multimedia hardware which is all common cathode.

Common cathode is a more intuative way for the 7seg to be powered as a segment lights up when there is a 1 output to a pin. However common anode lights up on the presence of a 0 output to a pin.

The 7seg uses 2 ports because this is the only way to be able to light up more then one display with different numbers. By cycling through the displays fast enough you can light up all 4 7segs one at a time without a sign of flickering.

Post Reply