Microcontroller › Arduino › Measuring speed using inductive proximity sensor.
- This topic has 5 replies, 3 voices, and was last updated 7 years, 5 months ago by Ashutosh Bhatt.
-
AuthorPosts
-
March 25, 2017 at 1:44 pm #4628arduinoParticipant
Hii Guys,
I want to build a speedometer which is to measure speed of my bike using one proximity sensor placed very closed to bike frame. The reason to placed it there because the distance between spokes are at equal distance. So, I will get distance between spoke. Now whenever wheel rotates, first spoke of the wheel coincide with sensor then sensor becomes HIGH and will register time value in milliseconds. Now again when second spoke coincides with the sensor, it will again become HIGH and store the time in milliseconds. Now the time difference between spokes is captured. My question how to calculate the linear distance between spoke. I thought of r *Theta in radian, to get linear distance but problem here is I would not get proper angle between two spokes. Is there any other better solution? Thanks in advance.
March 27, 2017 at 10:12 am #14531Ashutosh BhattParticipantfind outer diameter of your bike wheel – say 120 cm
find how many spokes in wheel – say 6 spokes
now when 6 spokes passes ur bike has traveled 120 cm
from this you can easily measure speed of bike
March 27, 2017 at 9:25 pm #14533arduinoParticipantThanks Ashutosh for your response. After doing some research, I am selecting this approach, to calculate the speed of bicycle in kph
- Measure the wheel diameter and then multiplying it PI to get circumference of wheel. This distance is the distance travel by one revolution of the wheel.
- If suppose, I am having 30 spokes on my bicycle then setting a counter to 30 in attach interrupt function. If it matched then time is captured and indicating the time travel for one revolution.
Now, with these two measurement I will obtained speed in (m/s) which will be then converted into kph by conversion formula. I hope I am in right direction now. Once again thanks.
April 9, 2017 at 7:37 am #14564Ashutosh BhattParticipantyep….
exactly you have to do the same
I have made bicycle speed-o-meter on same principle
July 25, 2017 at 5:26 pm #14634RickyParticipantHI…I am trying to read speed from both front and rear wheels of my motorcycle. I am using an Arduino uno with a 16×2 lcd display to view results and two fotek pl-05l npn inductive sensors. Sensors are reading wheel spinning from 5 screws that each one has for the disk brake. The main idea is to calculate time between each screw and assuming that its 1/5 of wheel to calculate the km/h. So far I have managed to read wheel speeds and comparing them to my original motorcycle speedometer they are pretty close. The problem is that often I get no logical km/h for example while riding at stable 90km/h suddenly shows 50km/h for a while and after that I have 90km/h again. My sensors are supposed to work at 800hz which from my calculations are enough for over 300 km/h. Can anyone help to find a solution.
July 26, 2017 at 6:55 pm #14636Ashutosh BhattParticipantdoes it happen repeatedly at frequent interval?
-
AuthorPosts
- You must be logged in to reply to this topic.