SeniorWizard / laptimer

Arduino laptimer for go kart
10 stars 4 forks source link

Screen flikkering #1

Open Jsprs opened 5 years ago

Jsprs commented 5 years ago

Hi there!

first off al, great program, it works really well. The display is very clear and easy to understand.

Now I've got a question and hope you can help me. I know you've build this for karting, but I'm using it for my Carrera GO!!! race track. And I'm running in to one problem, a round can ben under 2,5 second. If I beat my previous time, the screen start flikkering and doesn't start a new timing until is done. So my lap after the flikkering off the screen is about a 1 second faster and do I need to reset the Arduino because I'm going to beat that time.

Hope you can help me.

Regards,

Jasper

SeniorWizard commented 5 years ago

I love the fact that you found some use for it. I would love to see how you have used it - mounting reed switch on the track and relay on the magnet in the car motor?

Anyway - the blinking takes 3 seconds and was to attract attention. Just deleting the lines 414-419 should get rid of that "feature". If you disable DEBUG (line 52) you should lower the DEBOUNCE to eg 500, on the other hand if it works as is, you might be able to get some serial output that could be helpfull if the bug persists.

I really never thought it could be used like you do, there might be some bugs hidden in there. It should be possible to make modifications to allow faster laps, and if you are not doing sectors, adding another reed switch and showing both car on same display would be a elegant solution.

Jsprs commented 5 years ago

Hi thanks for your quick reply. Didn't expect any reply soon because it is older project. But I had to give it a try. So thanks again.

No, I didn't use the magnet system, I would love to, but I don't know how to program that. I understand the physics of it and how it works but can't build it my self. Using magnets would be a cleaner solution. For now I've just cut a small hole in the track en mounted a micro switch. See the pictures below.

It works, really well, I think. I just don't know you how the plastic pin under the car is holding after some intensive use. For now it seems to work well, and I hope it does. This is hardware ver 0.1 maybe 2.0 will be with magnets and some help 😂.

I'm going to change the things you've managed above and let you know if it works, so that would be ver 0.2.

Again thanks and here are the images and a small video. link to my dropbox; https://www.dropbox.com/sh/4k80telev9qye2o/AADOsCJbKWztR-ylRT5eT4u-a?dl=0

Jsprs commented 5 years ago

Ah snap, what I forget to mention, this track has only one sector. So I change line 108 to value 1. So after the Arduino turns on it goes directly in to lap mode. I don't have the button shield but it works well. So another step would be remove those lines for the shield, or ad a shield so I can switch to timer for two lanes or one line with more details, so I can improve my self.

SeniorWizard commented 5 years ago

I will try to find the hardware used and see if I can make a fix. I think it could be interesting to time two cars, one one each line of the display (and the arduino can handle two interrupts, so it is a perfect match). As the electromotor is partly magnetic, it should work if you just replace the microswitch with either a reed switch or a hall sensor, they are pretty cheep and comes with most sensorkits.

Jsprs commented 5 years ago

Ah thanks for helping me out! Sorry for the late reaction. If let me know what to do, I can build it :). I've got a track to test it on.