Im looking into making a big counter display for team games, looking to have 4 teams, and a counter for each, one button counts up, the other button counting down.
What i would like to know, is it possible with the Mega, to have all 4 counters operate through the one arduino Mega board, or will i need an Arduino board for each counter/each team?
Thank you in advance for anyone that can help with this!
It's a common beginner error to think that using multiple Arduino in the same project is a good idea. For beginners and experts alike, using multiple Arduinos in a project can be very difficult.
My thinking was 4 boards each set up the same way, and using the large LED 7 segment numbers as the display for team points, i am a complete beginner and havent bought any components yet, just didnt want to be buying more than i need for it!
Would you recommend the Mega for this project or what would be best for me to get?
I have found buttons and displays for what im looking to do, its just a wee project for a youth summer club and will be used indoors so display brightness should all be good.
Would the Mega be able to run all 4 counters at once? Instead of having 4 Arduino Uno running one counter each?
I will either have 1 or 2 displays per counter (tens/units) so the score for each team can go above 9
If the mega has the capability to have all 4 counters at once, that gives me a good starting position for the project!
4 counters on Mega definitely. Mega is way more powerful. The display is about the pins so it depends on how many pins display needs. As I understand, if it is 7 segment, 2 places, 4 counters , then surely yes, Mega is OK. Also 2 buttons, of course.
This is the displays i had looked at, im not sure if this would be suitable or not, just trying to research things before i buy any parts to see if it is going to be possible. For now its confirmed a single Mega board is enough for controlling them, but the rest may cause issues with supply power for everything
You have a few considerations including the actual displays. Large 7 segment displays are available like this one. When choosing a 7 segment display you have a few lets say flavors. This is a data sheet for the unit I linked to. This example just happens to be a Common Anode, become familiar with terms like common anode and common cathode. Note the need for current limiting resistors on many displays and the need for a driver for each display. Note the current required for your displays making sure you have a power supply capable of handling the load. As you can see in the linked example large LED 7 segment displays are not cheap so you want to get things right the first time around.
Next you can figure each button to increment or decrement a display will use a DIO (Digital In / Out) channel of your uC along with an adequate number of DIO channels for the actual displays.
A single Arduino should do just fine. That was already covered.
Note that it requires 12 volts to drive it so you will need additional drivers (you can't control a 12v load directly). Also there are components like the TM1638 that can drive multiple 7-segment display digits and push buttons and handle the time multiplexing you would otherwise need to do in software unless you really want to connect 7 Arduino digital pins for each and every digit. Basically you can do it all with a Arduino Nano.
Matrixing (TM1638 etc.) is not recommended if the display is used in a bright environment.
Sparkfun has matching drivers (not matrixed) for those large displays.
The drivers can be daisy-chained, so eight (or more) displays are only using three Arduino pins.
Plenty of pins left for buttons, even on the smallest Arduino.
This is a simple task, so computing power is not relevant.
Leo..
So the website in the UK that i have been looking at has those drivers too, but are you saying i could link all 8 number displays together with them even if its only 2 displays per counter?
And i could supply them with 12v power directly through the Arduino or would i be needing a separate power supply?
Yes. Your code sends "data" to the display-drivers.
Whenever a part of the data changes send the data new.
Sending the data for all digits new will take less then 0,1 seconds.
I haven't yet looked into the pre-written part of the code for the display-drivers
but it is very likely that the display-drivers keep the "data" which segment shall be switched on/off until you send new "data"
The LED-driver-chip from sparkfun is a shiftregister
IC-type-number TPIC6C596
shiftregisters serial in parallel out work very similar to each other
here is a video that explains how a shiftregister IC-type 74HC595 works
the TPIC6C596 works the same way
additionally you can watch these videos
these chips can be daisy-chained which is explained in the video too.
For your 4 displays each with 2-digit you can daisy-chain the all the drivers
first step: all data is shifted in
second step: transfer "bits" to output-stage