element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Arduino
  • Products
  • More
Arduino
Arduino Forum TM1650 Arduino library for 2 x 8 led display
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 3 replies
  • Subscribers 387 subscribers
  • Views 1813 views
  • Users 0 members are here
Related

TM1650 Arduino library for 2 x 8 led display

stealthrt
stealthrt over 2 years ago

Hey all I am using a 2 digit 8 segment TM1650 Arduino library and I can't seem to find the setting for that? I can only find TM1650_DISPMODE_4x8 and TM1650_DISPMODE_4x7. No 2x8.

My setup looks like this when running the code below:
image


My Arduino nano code:

#include <TM1650.h>
#include <TM16xxDisplay.h>

//              [data Pin]
//              |  [clock Pin]
//              |  |  [num Digits]
//              |  |  |  [activate Display]
//              |  |  |  |     [intensity]
//              |  |  |  |     |  [display mode]
//              ↓  ↓  ↓  ↓     ↓  ↓
TM1650 display1(2, 3, 2, true, 7   );

void setup()
{
}

void loop()
{
   int n;

   for (n = 0; n < 10; n++)
   {
      //                             [nNumber]
      //                             |  [byte bDots]
      //                             ↓  ↓
      display1.setDisplayToDecNumber(n, 0b0000);
      delay(250);                               
   }
 }

If someone could let me know how to go about modifying the code in order to allow me to use just 2 digitals instead of 4 then that would be great!

  • Sign in to reply
  • Cancel

Top Replies

  • shabaz
    shabaz over 2 years ago +1
    Hi, I don't get the issue. You can leave it at 4x8 or 4x7 and just write two digits. For instance if you wish to write the number 42 then try writing 42 or 0042, or try writing 4200 and see which works…
Parents
  • shabaz
    shabaz over 2 years ago

    Hi, I don't get the issue.  You can leave it at 4x8 or 4x7 and just write two digits. For instance if you wish to write the number 42 then try writing 42 or 0042, or try writing 4200 and see which works. 

    The animated GIF is not very helpful, there is poor contrast without a filter, also if you can just indicate in a photo or diagram which segments are lighting up for some example digits. Then that may help make things easier. 

    If you're finding that incorrect segments are lighting that do not resemble digits at all, then the manufacturer of the board that you're using has mapped segments differently to what the library uses. You'd need to then make changes to the library code.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • stealthrt
    stealthrt over 2 years ago in reply to shabaz

    Thanks for the reply shabaz I found some code that works a little. Still trying to find an example of how to go about reading what's on the led segment screen. I see there is a receive() function but no examples on how to go about using it.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 2 years ago in reply to stealthrt

    It's possible that the receive function may be for keypad entry (the TM1650 chip can be wired to a keypad), rather than retrieving the LED segments that are lit. It would need the source code to be examined to identify this for sure. In any case, if you wish to retain knowledge of what the TM1650 was instructed to display, then that can be done with a variable within your Arduino code, i.e. store it in RAM on the Arduino nano's microcontroller. That way there's no need to query the TM1650 chip.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • shabaz
    shabaz over 2 years ago in reply to stealthrt

    It's possible that the receive function may be for keypad entry (the TM1650 chip can be wired to a keypad), rather than retrieving the LED segments that are lit. It would need the source code to be examined to identify this for sure. In any case, if you wish to retain knowledge of what the TM1650 was instructed to display, then that can be done with a variable within your Arduino code, i.e. store it in RAM on the Arduino nano's microcontroller. That way there's no need to query the TM1650 chip.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
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