IMG_7889.JPG

My Cousin runs a small not for profit Quadbike Enduro club. The race is two and a half hours and often the riders stop to ask how much time is left. To allow the riders to carry on racing I designed and built a Race Time Board out of 2.5" 7-segment displays.

I had laying around 4 such displays however they are common cathode which didn't lead itself to a very efficient circuit and later I brought new common anode displays. If you use this circuit, you need to use common anode displays otherwise you will waste power and have to deal with lots of heat!

Any I get ahead of myself. The overall requirements of the timer were to be able to display remaining time, indicated when the race is over and warn riders to slow down. As the race is mainly 2h 30m the unit defaults to this on power-on. However this time is able to be changed if need be. There is a remote button to activate the 'slow' warning and a later addition was a switch to turn off the panel buttons to prevent accidental changes to the timer.

 
Remove these adsRemove these ads by Signing Up

Step 1: Don't use common cathode!

Initially the circuit was going to use common cathode displays (cc), as they are what I had to hand. To drive them I have been using the TPIC6B595 SIPO shift register as the displays have a forward voltage of 9.6V. The 6B595 has 8 DMOS transistor outputs which are all connected to ground. In order to run a CC display the output of the chip needed to be inverted. To do this resistors were added between the chip and display and tied to the +12V line. It works, with a few caveats.

Firstly you have to remember to invert the logic in the program - 1 is off and 0 is on. Secondly as the resistors have to also act as the limiting resistors for the display they are quite small value, as such when a segment is on, the resistor is directly connected to ground. This means a large current flows and the resistor heats up. By my calculations that meant each resistor had to cope with 1.2w! I tried to get around this by adding two resistors in parallel and doubling the value of each resistor, however the power still meant too much heat was created. In the end I switched to common anode (CA).

The switch meant that power usage dropped from a peak of 1.5A to just 0.8A from the 12v line. Given that this has to run off of a battery it is a good thing.
1tri2god says: Aug 27, 2010. 10:30 AM
This is a great instructable!!! Is there any way to make a race clock that counts up instead of down??? We have to rent one for our fund raiser 5K and 10K and they charge us like $300 for using one for a day!
marschalek says: Jun 10, 2012. 4:56 PM
I just started making a race clock for a 5k race I help organize. I'll post when complete. Let me know if you got yours going.
smartroad (author) says: Aug 28, 2010. 12:56 AM
Oh and you would need to change all the instances of "second = 118" to "second = 0"
smartroad (author) says: Aug 28, 2010. 12:54 AM
To make it count up is easy, I have included the altered code for that below. However it would need a more extensive adjustment to make it count up to a specific point. I can look into that for you as it shouldn't be too hard (famous last words!). void clock() { static unsigned long lastTick = 0; // set up a local variable to hold the last time we moved forward one second // (static variables are initialized once and keep their values between function calls) // move forward one second every 1000 milliseconds if (millis() - lastTick >= 500+timeroffest) { lastTick = millis(); second++; } // move up one minute every 60 seconds if (second > 118) { minute++; second = 0; // reset seconds to zero } // move up one hour every 60 minutes if (minute > 59) { hour++; minute = 0; // reset minutes to zero} } if (hour > 9) { hour = 0; // reset hours to zero } }
1tri2god says: Aug 28, 2010. 7:23 AM
thanx! I've just ordered parts and will update if I can get this to work!
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!