# Common Anode Improvised 7 Segment

**URL:** <https://forum.arduino.cc/t/common-anode-improvised-7-segment/312310>\
**Category:** LEDs and Multiplexing\
**Created:** [May 18, 2015, 3:03pm UTC](https://forum.arduino.cc/t/common-anode-improvised-7-segment/312310 "2015-05-18T15:03:37Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![acosicdm](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@acosicdm](https://forum.arduino.cc/u/acosicdm)\
**Post date:** [May 18, 2015, 3:03pm UTC](https://forum.arduino.cc/t/common-anode-improvised-7-segment/312310/1 "2015-05-18T15:03:37Z")

</div>

Hi sir,

I am currently working on a project. I made a improvised 7 segment using LED. The display is working on a 12v supply. But arduino just give around 0.7v to 5.0v. Anyone can help me with this project. Thanks a lot. God Bless Us All.

Charles

---

<div class="post-metadata">

**Author:** ![Archibald](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@Archibald](https://forum.arduino.cc/u/Archibald)\
**Post date:** [May 18, 2015, 3:13pm UTC](https://forum.arduino.cc/t/common-anode-improvised-7-segment/312310/2 "2015-05-18T15:13:20Z")

</div>

Charles,

This post may help:  
[http://forum.arduino.cc/index.php?topic=323585.msg2236098#msg2236098](http://forum.arduino.cc/index.php?topic=323585.msg2236098#msg2236098)

---

<div class="post-metadata">

**Author:** ![acosicdm](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@acosicdm](https://forum.arduino.cc/u/acosicdm)\
**Post date:** [May 18, 2015, 3:34pm UTC](https://forum.arduino.cc/t/common-anode-improvised-7-segment/312310/3 "2015-05-18T15:34:26Z")

</div>

> Archibald:  
> Charles,
> 
> This post may help:  
> [Dome Button - #3 by Archibald - General Electronics - Arduino Forum](http://forum.arduino.cc/index.php?topic=323585.msg2236098#msg2236098)

Hi sir thank you for the circuit. Can tell me how does it work? Thanks.

---

<div class="post-metadata">

**Author:** ![PaulRB](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paulrb/32/216330_2.png) [@PaulRB](https://forum.arduino.cc/u/PaulRB)\
**Post date:** [May 18, 2015, 3:58pm UTC](https://forum.arduino.cc/t/common-anode-improvised-7-segment/312310/4 "2015-05-18T15:58:16Z")

</div>

Hi, have you made the display as common anode or common cathode, or can you easily adapt it to be either?

If it common anode, or you can make it common anode, the easiest solution could be to use either:

- 7 npn transistors such as bc337, driven by 7 Arduino pins
- a ULN2803 chip, driven by 7 Arduino pins
- a TPIC6C595 or TPIC6B595, driven by 3 Arduino pins

If you want to drive many of these displays, the last solution will be best, because the same 3 Arduino pins can drive many of the TPIC chips and you would need one chip per display.

Paul

---

<div class="post-metadata">

**Author:** ![acosicdm](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@acosicdm](https://forum.arduino.cc/u/acosicdm)\
**Post date:** [May 18, 2015, 5:08pm UTC](https://forum.arduino.cc/t/common-anode-improvised-7-segment/312310/5 "2015-05-18T17:08:22Z")

</div>

> PaulRB:  
> Hi, have you made the display as common anode or common cathode, or can you easily adapt it to be either?
> 
> If it common anode, or you can make it common anode, the easiest solution could be to use either:
> 
> - 7 npn transistors such as bc337, driven by 7 Arduino pins
> - a ULN2803 chip, driven by 7 Arduino pins
> - a TPIC6C595 or TPIC6B595, driven by 3 Arduino pins
> 
> If you want to drive many of these displays, the last solution will be best, because the same 3 Arduino pins can drive many of the TPIC chips and you would need one chip per display.
> 
> Paul

Hi Paul,

I guess this will be helpful. Thank you. But can you show the wiring and a sample program as well? Thanks in advance :))

Charles

---

<div class="post-metadata">

**Author:** ![CrossRoads](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/crossroads/32/214033_2.png) [@CrossRoads](https://forum.arduino.cc/u/CrossRoads)\
**Post date:** [May 18, 2015, 5:24pm UTC](https://forum.arduino.cc/t/common-anode-improvised-7-segment/312310/6 "2015-05-18T17:24:34Z")

</div>

Basic setup, see attached.

 ![7-segment plus shift register.jpg](https://europe1.discourse-cdn.com/arduino/original/4X/7/a/6/7a632b4b3da2f53aedce1c553786d90ccc37396e.jpeg)

---

<div class="post-metadata">

**Author:** ![CrossRoads](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/crossroads/32/214033_2.png) [@CrossRoads](https://forum.arduino.cc/u/CrossRoads)\
**Post date:** [May 18, 2015, 5:28pm UTC](https://forum.arduino.cc/t/common-anode-improvised-7-segment/312310/7 "2015-05-18T17:28:53Z")

</div>

code for fontArray

```cpp
byte fontArray[] = {
0b00111111, // 0    DP-g-f-e-d-b-c-a, 1 = segment that is on.
0b00000110, // 1    Writing 1 to TPIC6C595, TPIC6B595, turns output on (drives it low)
0b01011011, // 2
:
:
0b01101111, // 9
};

```

Can use PWM to drive OE for brightness control.  
If using LED strips for segments, the segment is typically 3 LEDs in series with a resistor and designed to run from 12V.

---

<div class="post-metadata">

**Author:** ![acosicdm](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@acosicdm](https://forum.arduino.cc/u/acosicdm)\
**Post date:** [May 19, 2015, 12:22am UTC](https://forum.arduino.cc/t/common-anode-improvised-7-segment/312310/8 "2015-05-19T00:22:51Z")

</div>

> CrossRoads:  
> Basic setup, see attached.

Hi sir, how about if im going to use 2 segment? How is the wiring?  
Because I want the display the value of an analog input into the improvise 7segment.

Thanks,

Charles

---

<div class="post-metadata">

**Author:** ![PaulRB](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paulrb/32/216330_2.png) [@PaulRB](https://forum.arduino.cc/u/PaulRB)\
**Post date:** [May 19, 2015, 5:32am UTC](https://forum.arduino.cc/t/common-anode-improvised-7-segment/312310/9 "2015-05-19T05:32:34Z")

</div>

Did you mean 2 _digit_?

You can chain two tpic chips. Data Out from the first chip goes to Data In on the second chip. Clock and Latch pins on the second chip connect to the Clock and Latch pins on the first chip.

In your sketch, you must send two bytes of data before you latch the data. The first byte sent will go to the second tpic chip.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 6, 2021, 2:56am UTC](https://forum.arduino.cc/t/common-anode-improvised-7-segment/312310/10 "2021-05-06T02:56:59Z")

</div>


