Arduino Forum

Topics => Interactive Art => Topic started by: 9del9 on Oct 19, 2012, 07:12 pm

Title: Need help with a project!
Post by: 9del9 on Oct 19, 2012, 07:12 pm
I attended some programming classes but I barely remember anything...
I am starting a project which is a big countdown that consists of 25 7segments leds.
It goes from 9999999999999999999999999 to 0. So it would take billions of years to end...
I do not know if is necessary to write code or I just need a diagram.

It should work without a pc connected to it.

What materials will I need? As you can imagine any help would be greatly appreciated :)
Title: Re: Need help with a project!
Post by: CrossRoads on Oct 19, 2012, 09:40 pm
4 MAX7219, 4 22K resistors, 4 0.1uC caps, 4 1uF caps, COMMON CATHODE displays - 6 @ 4-digit, 1 @ 1-digit, 7.5 or 9V @ 1A power supply, 1 Uno.
All parts except uno available from taydaelectronics.com
Each MAX7219 will control 2 displays, and 1 will control 1 display.

Search e-bay for 18cm 30cm protoboard if the prototyping boards at tayda are not big enough or you can't string them together.

What will your assembly method be?
Title: Re: Need help with a project!
Post by: johnwasser on Oct 19, 2012, 09:46 pm

4 MAX7219, 4 22K resistors, 4 0.1uC caps, 4 1uF caps, COMMON CATHODE displays - 6 @ 4-digit, 1 @ 1-digit, 7.5 or 9V @ 1A power supply, 1 Uno.
All parts except uno available from taydaelectronics.com
Each MAX7219 will control 2 displays, and 1 will control 1 display.

Search e-bay for 18cm 30cm protoboard if the prototyping boards at tayda are not big enough or you can't string them together.

What will your assembly method be?


Since each MAX7219 can control eight digits you might as well go for 32 digits instead of 25.  The software isn't any harder and might actually be easier.
Title: Re: Need help with a project!
Post by: robtillaart on Oct 20, 2012, 12:23 pm
Quote
It goes from 9999999999999999999999999 to 0. So it would take billions of years to end..

depends on the step size and frequency.
What does the number represent, the national dept? ;)
Title: Re: Need help with a project!
Post by: 9del9 on Oct 20, 2012, 07:17 pm
Thank you for your fast response!

It is an art project so visual aspect is quite important. I was thinking in using quite big digits (3-4 inch). I do not know if this has a mayor impact on the structure of the electronic device.
Everything that makes things easier is welcome ;) So if it is better I would go for the 32 digits.
As I mentioned before I am completely new to all this so I appreciate your patience and any advice to keep it as simple as possible.
I found this one: http://www.ebay.es/itm/Protoboard-700-contactos-Breadboard-placa-prototipos-soldadura-Arduino-/170927079955?pt=LH_DefaultDomain_186&hash=item27cc0c4213#ht_2473wt_1190 , is this big enough?

The digit changes every second. That is why it will take so long.

I already know how to make a simple 1 digit countdown, but I can not find the way to make the 25 digits oneā€¦ any help with diagrams or code is more than welcome :D
Title: Re: Need help with a project!
Post by: CrossRoads on Oct 20, 2012, 07:48 pm
This kind of 4" digit?
http://www.kingbrightusa.com/category.asp?catalog%5Fname=LED&category%5Fname=KC1%2DDigit+4%2E0in&Page=1

I'd recommend the Common Anode parts, drive from 12V, connect the cathode segments to TPIC6B595 shift registers to drive them.

This board here can drive 12 digits, use 2 boards and wire up one TPIC6B595 for the 25th digit.
Probably want to wire the anodes together seperately and not source from the board tho. Connect grounds together.
I sell bare boards for $5 each mailed to US locations, all thru hole, easy to assemble. International, a little more for postage.
Complete kit, or assembled tested boards, I'd have to price up.
(http://www.crossroadsfencing.com/BobuinoRev17/12_digit_driver_board.jpg)

The actual counting down part is easy.
set up 25 bytes with 9 in each.
once a time period, test if the lowest digit is not 0 and decrement it.
If it is 0, set it to 9 and decrement the next digit.
if the next one is not 0, decrement it.
  if it is 0, set it 9 and decrement the next digit.
Will have one big long chain checking if a digit is to rollover or not.
Longest chain will from 1000000000000000000000000 to 0999999999999999999999999
And you can add leading 0 blanking too.
Title: Re: Need help with a project!
Post by: johnwasser on Oct 20, 2012, 09:54 pm
Looks like a fun project so I'd be willing to write the software for you or help you develop the software if you want to learn how.
Title: Re: Need help with a project!
Post by: Bob101 on Oct 25, 2012, 11:50 pm
Complete overkill but you could use bignumber.

http://arduino.cc/forum/index.php/topic,85692.0.html
Title: Re: Need help with a project!
Post by: 9del9 on Oct 28, 2012, 02:49 am
Thank you all for your help :)
Title: Re: Need help with a project!
Post by: CrossRoads on Oct 28, 2012, 09:45 pm
I'm thinking you can nicely get two 3" digits with 2 driver chips and SPI signal buffering to the next board.
LED on one side, thru hole parts on the other.
Title: Re: Need help with a project!
Post by: 9del9 on Jan 14, 2013, 12:35 am
Hi!
I just wanted to let you know that the problem is solved. :)

Thank you all for your help.
Title: Re: Need help with a project!
Post by: CrossRoads on Jan 14, 2013, 01:52 am
And what did you do to solve it?