Tagged “bike_racing”
- Triathlon Videos
-
Cheap internet bike racing part 5
The project is pretty reliable now. I regularly train against previous rides. Having beat a previous time, it's quite exciting and stimulating to try to retain the lead. I have been dropping seconds quite frequently. All I have to do is keep going at it, and I'll be in good condition for a springtime time trial I'm training for.
I also have added code to publish the times and distances to IRC. For example:
*** #bike 1266376160 *** demobiker (~demobiker@xxx.com) has joined channel #bike <demobiker> 900.000000 0.008644 <demobiker> 1100.000000 0.010805 <demobiker> 1300.000000 0.012966 <demobiker> 1500.000000 0.015127
The format is:-
Time in milliseconds
-
Distance in km
Eventually, the software will be able to pull in competitors times and display the differences, just as it does with prerecorded times.
Here's what I spent so far:
-
$20 for used bike trainer.
-
$3.50 for a female connector, used in the joystick.
-
$1.50 or so for postage. The magnet and sensor was donated.
Pretty inexpensive. Hopefully some more people will join in and build similar projects.
-
-
Cheap internet bike racing part 4
Looks like the GUI I wrote in GTK seems to be stable, at least in the living room. I need to take it down to the bike. When I was running it yesterday, I got 3km into the ride when the program crashed. What a horrible feeling. I think I had some mutual-exclusion issues with how GTK handles threading. Seems to be stable now, so I'll give it a shot tomorrow.
-
Cheap internet bike racing part 3
The sensor is hooked up and I've done a few minor time trials. With the data collection feature, I'm able to automatically generate plots of various practice runs.
In the above graphic, I have two of my runs, plus one of my son's.
Total cost so far: $4.50 (I needed a socket for the connector, bought at Radio Shack). I had the rest of the parts at home, plus the reed sensor was sent by my dad ($1.50 or so, shipping).
-
Cheap internet bike racing part 2
For the internet bike racing project, I modified an old Gravis Gamepad Pro controller to have a stereo headphone jack connected to two of the buttons. The plan is to get a reed (magnetic) switch, connect it to the bicycle and have it tripped by a magnet on the rotating wheel. This then acts as if a button was pressed on the joystick, and signals the software to do some processing.
(Image not found: DSCN1260.JPG)
(Image not found: DSCN1255.JPG)
-
Cheap internet bike racing
My newest project is a way to race other people with bike trainers on the internet. My goal is to have this as inexpensive as possible - hopefully under $10 or so. I'm not as concerned about fancy graphics or racing courses as much as "am I winning?", and having a reasonable price. So far, I have a simple C program that reads the joystick and calculates the time and distance traveled.
Distance (km) = 0.177 Time = 0:00:29.332 km/h = 54.025 Distance (km) = 0.179 Time = 0:00:29.452 km/h = 64.830 Distance (km) = 0.182 Time = 0:00:29.676 km/h = 34.730 Distance (km) = 0.184 Time = 0:00:29.876 km/h = 38.898 Distance (km) = 0.186 Time = 0:00:30.084 km/h = 37.402 Distance (km) = 0.188 Time = 0:00:30.284 km/h = 38.898 Distance (km) = 0.190 Time = 0:00:30.508 km/h = 34.730
Not too fancy so far, but data collection seems pretty good.
See all tags.