element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs Seven segment and arduino
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: idanre1
  • Date Created: 7 Mar 2017 12:15 PM Date Created
  • Views 1012 views
  • Likes 2 likes
  • Comments 5 comments
Related
Recommended

Seven segment and arduino

idanre1
idanre1
7 Mar 2017

I have bought a 4 digit seven segment module on banggood.

1 Pcs 0.561 Pcs 7-Segment 4 Digit Super Red LED Display Common Anode Time - US$1.79

these things cost about 2$ and i wanted to test if they worth anything.

image

 

I have decided to connect them to arduino nano in a quick plug and play connection, so that it can be added for existing design using only 1 connector.

 

The thing about buying from china online is that you not always get what you order.

The module I received is CL5642BH and the module they published is HSX41056K.

So without any schematics i have decided to reverse engineering it using a breadboard.

 

Apparently the module turned out to be common anode as specified and with pin diagram as in arduino mega - How to wire up 4-digit 7-segment display? - Arduino Stack Exchange

 

When you google about these displays there is allot on confusion when to put the current limiting resistors, some say in the digits, some in the segments.

Actually I figured it out it can be both ways, only the code of the arduino is changed.

 

Then I found a nice library to deal with with that really simplifying it all

http://playground.arduino.cc/Main/SevenSegmentLibrary

 

You can config where you want to put the resistors and if its common anode/cathode or even more complex drivers and it works!

Just by reading the code you can see this lib is great.

 

Form factor:

As I mentioned i have decided to make the circuit as compact as possible.

Because of that I put the resistors on the digits (4 instead of 8 resistors) and I used perforated board.

 

The front side is quite neat, only display and 4 resistors (and connectors)

image

 

The rear side is quite messy


image

 

I was using an old IDE connector from an old computer to drive it all from the arduino


image

 

 

Open items:

  • The SevSeg library uses loop to always update the leds (kind of a tdma over the leds), I read around there is a was to use charlieplexing for keeping the leds on without the fluctuations.
    Still I didnt find any way to implement it on my display.
    Anyone have an idea?
  • Decreasing cable amount. Is there a module that uses i2c to only take 2 cables out of the arduino onstead of 12 cables?

 

Video of operation:

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

Idan

  • Sign in to reply

Top Comments

  • c4m4ch0
    c4m4ch0 over 8 years ago +1
    MAX7219 or something like this ?
  • idanre1
    idanre1 over 8 years ago in reply to jc2048 +1
    Hi Im actually use it to display text on a remote vehicle. The sevseg lib can do text also... Actually the brightness can be adjusted. I will paste my code at the buttom. You can also adjust the brightness…
Parents
  • c4m4ch0
    c4m4ch0 over 8 years ago

    MAX7219 or something like this?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • c4m4ch0
    c4m4ch0 over 8 years ago

    MAX7219 or something like this?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • idanre1
    idanre1 over 8 years ago in reply to c4m4ch0

    This is a whole solution for i2c but in a pretty high price.

    I am looking on a i2c adapter only.

    And that the arduino will actually can have extended io with it.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube