By tracking and recording every single one of their lifts they can determine how quickly they are progressing and which things they need to work on most. Weightlifters know that to get stronger they must lift at certain percentages of their max lifts and they know how much they have gotten stronger by how much their overall max has increased. If you racing something that will go faster then 10 seconds, you will need to decrease this minLapTime variable.įeel free to modify / copy / distribute the code in any form or shape you like.In order to improve you need to record your progress on all aspects of your training, this is true for all sports and all skills. By default the minimum time is 10 seconds (1000 milliseconds). This variable is used to make sure then when you trip the sensor it can not directly be tripped again, thinking you have finished. If you find that the laptimer runs too fast, increase the number a little bit, if you find the timer runs to slow decrease the number :-)Īn other important variable is the int minLaptime = 1000 This variable allows you to calibrate the time. In the code you will find the variable int clockSync = 7600 By turning the pot-meter you can select between 1 and 9 laps. Setup mode: When you click on the "menu", 2nd button, you can setup how many laps you want to race. It will display the amount of laps still to go on the top 7 Segment display and the time on the 2nd 7 segment display. So there is no count down, just start racing, when the first time you cross the line, the timer will start. Race mode: This is started by clicking the left "race" button. When you run the software, it has 2 "Modes". Just load this in the Arduino software, make sure you have set the correct Arduino board for your setup and configure the varianbles in the top of the code if needed. One could be an light diode or infrared receiver LED and point a battery powered laser pointer at it.Įnclosed is the Arduino software code I wrote for my Laptimer. If you do not want to buy this sensor, you can create a "light bridge" in many other ways. I used an infrared transmitter and received in the box and an external reflector. I am using a Velleman PEM 10D, infra red light bridge. They connect via Serial, as I want to leave the hardware serial port for debugging, I am connecting it so pin 2/3 and using software based serial. I am using one of those cool thermal printers from sparkfun. I have placed a switch between the battery and all the electronics, so I can easily turn everything on / off. This is then supplied to the raspberry and (via the VIN port) to the thermal printer. I am using a step down power module to convert the LiPo power to 8 volt. The thermal printer want power between 5 and 9 volt. The light bridge need 12volt, so it is directly connected to the battery. Different components use different power. Each I2C device does need an unique address! Out-of-the-box each adafruit 7 segment display has the SAME address, so you need to solder one of the address pins on the 7 segment display to make sure each display has a different address.įor power I am using a 11.2 Volt LiPo battery, which easily can power the arduino, printer and sensors for a long time. I am using the large Adafruit 7 Segment displays with I2C backback, I2C allows you to connect multiple devices on a 2-wire communication network. If the 3rd button is pressed it has to travel thru 3x 10K resitor, based on the the analog value changes depending on how many resistors are traveled thru. This allows you to easily connect multiple buttons to a single port on the arduino. The buttons are connected with 10K resistors, this is then connected to ground and an Analog port on the arduino.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |