|
|
Queens, New York
Online
Edison Member
Karma: 28
Posts: 1560
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
|
 |
« Reply #1 on: February 25, 2013, 10:33:49 am » |
Look into shift registers.
|
|
|
|
|
Logged
|
UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino
Arduino Tutorials, coming soon.
"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown
|
|
|
|
NE PA
Offline
Full Member
Karma: 5
Posts: 149
|
 |
« Reply #2 on: February 25, 2013, 01:47:27 pm » |
Depending on the seven segment configuration you need the I2C backpacks Adafruit sells might be up your alley. https://www.adafruit.com/products/878
|
|
|
|
|
Logged
|
|
|
|
|
South England
Offline
Full Member
Karma: 3
Posts: 194
|
 |
« Reply #3 on: February 25, 2013, 02:40:03 pm » |
I'd usually go for the MAX7219. Even my wanky ebay clones seem to work alright
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 76
|
 |
« Reply #4 on: February 25, 2013, 02:48:27 pm » |
I guess one of those would really help me but can't find them on local stores, already tried in the past. Importing is not an option either due government restrictions. 
|
|
|
|
|
Logged
|
|
|
|
|
Ayer, Massachusetts, USA
Offline
Edison Member
Karma: 27
Posts: 1096
|
 |
« Reply #5 on: February 25, 2013, 05:38:48 pm » |
I've only marked them down for future purchase, but you might look into TM1638 or TM1640 strips. Here is a library for the chips: http://code.google.com/p/tm1638-library/Quoting from the library documentation: - The TM1638 module is a module with 8x 7-segment display (8 digits), 8x 2 color (red and green) LED and 8x buttons and is controlled using serial commands. The TM1638 module is designed to be chainable. It uses only one pin for clock, one pin for data and an additional pin (strobe) for each module you chain up to 6... that's a total of 8 pins for controlling 48 (8x6) 7-segment digits, 48 buttons and 96 LEDs (48 red and 48 green).
- The TM1640 module is a module with 16x 7-segment display (8 digits) and is controlled using serial commands.
Here is an ebay listing for a TM1638 board with 8 Leds, 8 7 segment digits, and 8 keys from a Chinese ebay vendor: http://www.ebay.com/itm/8-Bit-LED-8-Bit-Digital-Tube-8-Bit-Key-TM1638-module-for-AVR-Arduino-ARM-STM32-/251116139165?pt=LH_DefaultDomain_0&hash=item3a77b0329d
|
|
|
|
« Last Edit: February 25, 2013, 05:41:42 pm by MichaelMeissner »
|
Logged
|
|
|
|
|
Massachusetts, USA
Offline
Tesla Member
Karma: 96
Posts: 6364
|
 |
« Reply #6 on: February 25, 2013, 06:03:46 pm » |
I guess one of those would really help me but can't find them on local stores, already tried in the past. Importing is not an option either due government restrictions.  Perhaps it you said where you where someone might know a local source of parts. Alternatively, it might be good to move to a country with a less restrictive government.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 76
|
 |
« Reply #7 on: March 08, 2013, 05:57:04 pm » |
I've only marked them down for future purchase, but you might look into TM1638 or TM1640 strips. Here is a library for the chips: http://code.google.com/p/tm1638-library/Quoting from the library documentation: - The TM1638 module is a module with 8x 7-segment display (8 digits), 8x 2 color (red and green) LED and 8x buttons and is controlled using serial commands. The TM1638 module is designed to be chainable. It uses only one pin for clock, one pin for data and an additional pin (strobe) for each module you chain up to 6... that's a total of 8 pins for controlling 48 (8x6) 7-segment digits, 48 buttons and 96 LEDs (48 red and 48 green).
- The TM1640 module is a module with 16x 7-segment display (8 digits) and is controlled using serial commands.
Here is an ebay listing for a TM1638 board with 8 Leds, 8 7 segment digits, and 8 keys from a Chinese ebay vendor: http://www.ebay.com/itm/8-Bit-LED-8-Bit-Digital-Tube-8-Bit-Key-TM1638-module-for-AVR-Arduino-ARM-STM32-/251116139165?pt=LH_DefaultDomain_0&hash=item3a77b0329dBut i'm facing the same problem, I don't think I can find those here. Perhaps it you said where you where someone might know a local source of parts.
Argentina. Alternatively, it might be good to move to a country with a less restrictive government.
LOL! Not an option for me ATM, but thanks for the advice.
|
|
|
|
« Last Edit: March 08, 2013, 06:00:14 pm by Rookie2 »
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 242
Posts: 16500
Available for Design & Build services
|
 |
« Reply #8 on: March 08, 2013, 06:18:32 pm » |
Can you get individual chips? TPIC6B595 or 74HC595 with ULN2803 as current buffer, can control both with just 3 pins. Sink current from common anode 7-segments. Use PNP to control the common anodes. Can control common cathode too, need NPNs to sink current, and use shift register to pull current away from the anodes you don't want on while pullup resistor provides source current. Or MAX7219 from taydaelectronics to control common cathode. Maybe from here: http://www.farnell.com/distributors/agentina_ele.htm
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 242
Posts: 16500
Available for Design & Build services
|
 |
« Reply #10 on: March 08, 2013, 07:23:54 pm » |
You could do it with No shift registers, just 7 IO pins to drive the anodes and 4 NPN transistor to sink current from the cathodes. Or 7 pins to sink the cathodes and 4 PNP transistor to source current to the anodes. Or 2 shift registers that are daisy chained - one controls the segments, the other controls transistors that sink/source current. Can you get any shift registers? A part that you can program like a shift register? What kind of availability do you have?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 76
|
 |
« Reply #11 on: March 08, 2013, 07:38:46 pm » |
Can you get any shift registers? A part that you can program like a shift register? What kind of availability do you have?
Yes I can find them here, I will have to check once I have the model I will use, that's what I'm trying to figure right now. The displays are common anode 7-segments. Thank you.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 242
Posts: 16500
Available for Design & Build services
|
 |
« Reply #12 on: March 08, 2013, 07:50:35 pm » |
Okay, look for PNP transistors too then if you want to multiplex.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 76
|
 |
« Reply #13 on: March 18, 2013, 04:42:50 pm » |
I've been reading and trying to learn the basics, but it seems to be still too far as for I can get this working by myself.
Would it be too much if I ask for a diagram? Currently I have the displays (common anode) and I can buy the rest of the components needed.
Thanks in advance.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 242
Posts: 16500
Available for Design & Build services
|
 |
« Reply #14 on: March 18, 2013, 04:52:08 pm » |
Take your pic.
With PNP, can use shift register to sink the 8 cathodes, TPIC6B595 would be best. Could use a 2nd TPIC6B595 to sink the current from the PNP gates to turn them on as well, use pullup resistor to pull them high to turn them off.
|
|
|
|
« Last Edit: March 18, 2013, 04:54:20 pm by CrossRoads »
|
Logged
|
|
|
|
|
|