Arduino Bicycle Odometer Demo Video
this is my new bike with the automatic
shifting obviously I won’t open the
video series on there’s one thing
missing from it and that is a way of
adding up the mileage that’s done this
is rather useful for maintenance
purposes and as I’m testing out this hub
you nice to know how many miles it’s
done so I could just buy a typical cycle
computer for this purpose but I don’t
really want to clutter up the handlebars
and I’ve already got the Garmin mount
there and the Garmin could be used to
measure mileage but I don’t log every
ride onto Strava and they use it for
other bikes as well so oh well we’ve got
a reed switch already installed on the
rear wheel and we’ve got the Arduino so
let’s see if we can write some code to
go on the Arduino with the auto ship
code to log exactly how many miles this
bike does I’m gonna do the code testing
on the other bike because it’s got the
power latch circuit installed on it and
this one hasn’t yet and you’ll find out
when I go into the code in a minute why
the parallel circuit is rather important
for making this work to do this I’m
gonna try out something that I’ve not
used before and that is the Arduino
EEPROM it’s basically its equivalent of
a hard drive there’s one thing to note
about it and that is that it has a
limited number of read/write cycles
that’s around 100,000 so I don’t want to
be rewriting the data in it every time
to the leap because that would be every
half second just in case the auto
shifter got switched off
I could increase that every 10 seconds
every 30 seconds but it’s still a lot of
read/write cycles
I’d obvious think about it you could
actually rewrite the data in it every
time a speed gets to zero but what I’m
actually going to do because I’ve got
the power latch circuit and the Arduino
is in charge of when it switches off I’m
going to get it to write the new updated
mileage to the e from before so it gives
itself off first thing we need to know
is every time the wheel does a complete
rotation now in the auto shift code
we’ve got this timer interrupt which is
monitoring the read switch but you could
set up a interrupts on the pin itself if
you wanted to if you didn’t have this
code using it for another purpose what
I’ve done is add on to this section of
code here which will operate once on
every rotation of the wheel I’ve added
on this line here which basically adds
the wheel circumference in centimeters
to the distance traveled now chosen
centimeters because I feel it gives the
best resolution and you’re not working
with a decimal point is whole numbers
and it’s got plenty of space because I’m
using for the distance and unsigned long
now this distance measurement is going
to be only for the right so this will be
reset once it switches off and back on
again here’s the section of code that
the Arduino uses to switch off section
here and so basically it’s F speed
equals zero increment the timer timing
guess greater than 60 then do the
process of switching off but before that
I write it in this piece of code here is
where it gets a little bit complicated
with the units I’ve using for the
measurements
because if I was to take the distance
and convert it into miles or kilometers
and store into this odometer value here
it would always round down so over time
you keep missing out chunks of the
distance traveled so what I decided to
do was to store as hundreds of a
kilometer I basically gives it like a 10
meter resolution because I didn’t want
to use a decimal point because I’ll see
having a float that’s in the sort of
tens of thousands isn’t really going to
work this odometer is stored as an
unsigned long as well so it’s plenty of
space on so basically what this is doing
is read the last value from the Ephrem
add on the distance by converting it so
that’s divided by thousand like a versa
from centimeters into hundreds of a
kilometer and then store it in the
EEPROM before finally switching off to
check what the mileage is that has been
stored I’ve set up another mode that is
activated by the Bluetooth by sending a
seven so basically this section here and
it’s read the last stored value from the
EEPROM add on the distance which is
currently been added up during the ride
and then display on the serial monitor
so to do that I want it in miles so I
divide by 160 but if you wanted
kilometers you just divide by 100
instead and I’ve put in here just to
make the fries so like a chance to read
the Marge and if you send any value
here to the supermarket just continues
on and goes back to its normal running
mode that’s it for the code writing more
time to test it connected to the auto
shifter with the Bluetooth if I send it
a seven going to read EEPROM mode and
there’s the mileage you displayed which
I’ve put onto the EEPROM and it matches
up to the cycle computer mileage now
let’s go for a ride and see if the otter
shifter will correctly add up the
mileage count me out on the ride I’m
really gone very far but before it gets
any darker I would check to see what the
EEPROM says and the mileage matches up
nicely the number above the 1 million
and 39,000 is the distance I’m currently
from home in centimeters so next thing
I’ll see is to let it switch off but
power up again and see if this is now
stored in the EEPROM I’ve connected back
up again as you can see the distance or
volume has reset so I’m not gonna get
through he premiered II and it has
indeed saved it from the last time it
was powered so that seems to work
perfectly – just need a ride home now
thank you for watching
# | Preview | Product | Rating | Price | |
---|---|---|---|---|---|
1 | | YOSUDA Indoor Cycling Bike Stationary - Cycle Bike with Ipad Mount & Comfortable Seat Cushion... | $299.99 | Buy Now |
Bicycle Odometer Review
A bicycle odometer is designed to measure the number of revolutions that the wheels of the bike make while moving. It uses an electric sensor connected to the hub and sprocket, with a small magnetic coil on top of it. When the wheel turns the sensor records the changes in its voltage.
Bicycle odometers are calibrated so that they read exactly the same way every time the motorist takes out his or her keys to start the motor. If you have bought your bike from an outside source such as a dealer, you will find a gauge or sticker on the engine cover or motor housing which indicates the exact number of revs the bicycle has under its belt. The number of revs of each wheel that is read can vary slightly because it depends on the speed at which the wheel spins.
Make sure to check the scale periodically to make sure it is still working correctly. This is especially true if you have bought a used bicycle. You will need to do this if it has only recently been taken out of storage.
There are other types of motorcycle odometers and they are suitable for use on motorcycles as well as bicycles. You may need to do some research to find the one that works best for your needs. You might need a scale that works by using a laser instead of an electronic sensor. These are more accurate because they record the rate of friction between the tire and the road surface.
Electric bike odometers come as handheld units or you can mount it onto your dash. This helps to ensure that you are measuring the exact speed of your bicycle. They can be used to measure both your distance traveled as well as the speed that you will reach in the time it takes for you to get to your destination.
Manual ones also exist but they are more expensive. You will need to purchase an entire unit in order to run it correctly. Because of the accuracy that they provide you will need to purchase a model that meets your needs.
It is important to remember that buying a new bicycle odometer will be worth it in the long run. because it will help you save money and time when buying a new bike.



Bike Odometer FAQ
If you are in the market for a wireless odometer for bicycle, there are several options available for you. There are GPS units for automobiles that will actually give you miles per gallon and can be monitored by a computer. There are units that are simply built into your handlebars that will monitor the speed at which you are traveling and can also tell you how long it is since you’ve gone faster than a speed limit. There are also units available that have a small GPS receiver on the handlebar that can monitor the distance and speed that you are going as well as the odometer.
If you are looking for a wireless odometer for bicycle, then these are all things that you should consider. The GPS systems that come with units that are actually in cars are great in that if you are out of town and need to know how far you have gone, you can easily look up your odometer on a map and find out where you are. However, this is not something that is very practical for people who use their bicycles to commute, since the unit comes with a charger and you will have to carry the unit wherever you go.
If you have decided that a wireless odometer for bicycle is the way to go, then you will first want to decide on what type of unit you would like. For example, if you prefer to have the information on a screen that is easy to read and displays clearly, you can choose from LCD and LED units. Other options include those that are equipped with flash lights. These make it much easier to see the information that you are reading, so make sure that you choose an odometer that comes with a screen that is clear and that has the features that you like.
If you are shopping for an odometer for stationary bike, you may be interested to know that there are some advantages in doing so. One of the major reasons why is that when you purchase an item like this, you are essentially getting a new bike and you will have all the information on it, as it was when it was new. In other words, you are getting a complete history, from start to finish, on a bike that has been out long enough for you to get a feel for its reliability and durability. Many people are not interested in this information and simply want to buy a bike that they think is reliable.
However, the first step to buying any bike is to take it for a test ride so that you can be sure that you are going to be able to use it for years to come, and to ensure that it has the durability and reliability that you are looking for. When you test drive a bike, you are checking it out in the same way that you would if you were purchasing it. By testing it, you can ensure yourself that the frame, the engine, the suspension and the workout features are working, and that there are no mechanical problems with it. You can also test it by getting it wet and running on a hilly area, since that is a good way for you to check out the mileage without it getting damaged.
Once you are happy that you have purchased a durable and reliable piece of equipment that works well for your cardio needs, it is time to determine the exact details regarding odometer for stationary bike that you want. You can go online to find the odometer for stationary bike that you need, and you can do this without having to pay a large amount of money for it. Most dealers offer this type of service, but some will charge you a few hundred dollars. This is because the dealer wants to make a profit, so they will most likely charge you more than necessary. What you really want to do is find a site that will give you all of the information that you want to know without paying a lot of money for it, so that you will be able to get exactly what you need and you will not have to worry about being scammed.
When you buy an odometer for dirt bike, it is necessary that you are also provided with a copy of your odometer’s mileage. This way, if you will go back to the dealership and claim that your odometer for dirt bike is not working properly, they will be able to prove that it is working properly as stated in your vehicle registration certificate. If you will dispute the mileage that has been listed on your odometer for dirt bike, you have to provide proof that it was not working properly before you can get this issue settled. This is why it is also important for you to make sure that you always keep a copy of your original odometer for dirt bike when you have it out and about so that you will not have to deal with such issues. However, there are still instances wherein the mileage on your odometer for dirt bike may have been tampered with, which can result to inaccurate readings.
If the vehicle registration certificate that you have is for a new vehicle, it is advisable for you to get the odometer for dirt bike checked by a mechanic before you purchase it. If your odometer for dirt bike has already expired, you will be required to obtain a new vehicle registration certificate. But if you want to avoid all the hassles and the hassle of getting a new vehicle registration certificate, you can simply have the odometer for dirt bike checked by you before you purchase it. In fact, this option is much better because you will not have to spend a lot of time, money, or energy in obtaining a new vehicle registration certificate just to avoid the hassle of purchasing an odometer for dirt bike. If you have purchased an old vehicle, you can check its odometer for dirt bike from the owner.
Once your odometer for dirt bike becomes out of order, you can immediately get in touch with a mechanic so that he can check it for you. However, if you find out that your odometer for dirt bike has already expired, you should still have it checked before you sell it. Some people prefer to sell their odometers for dirt bikes even before they get to the mechanic. Although it is possible to get a great deal when you buy an odometer for dirt bike, you should still get the service and repair done as per the recommendations of the mechanic or dealer. Just remember that it is always better to be safe than sorry.
Last update on 2023-01-13 / Disclaimer: as an Amazon Associate I earn from qualifying purchases.