Pages: [1]   Go Down
Author Topic: Angle sensor for the bicycle handlebar?  (Read 608 times)
0 Members and 1 Guest are viewing this topic.
Finland
Offline Offline
Jr. Member
**
Karma: 0
Posts: 96
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Arduino needs to know, how many degrees or radians to the left or to the right the handlebar is compared to the body of the bicycle.
What would be an easy to use and install sensor? A range  of +-30 degrees would be enough and the resolution could be e.g. 256 values for that range, or analog value. (Calibration could be done programmatically.)

Would a gyroscope be a good solution? (drift of the 0-point, "straight ahead"?)

One could use a potentiometer and read its value with AD-converter. But I suspect that any potentiometer would wear out soon in the constat motion of the handlebar.

Alternatives?
« Last Edit: November 30, 2012, 05:17:32 am by optimistx » Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 168
Posts: 12425
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My first try would be a potmeter just to get feeling how good it works.
normally a pot == 270° so 30° is 1/9 implying an analog range of 1/9 of 1023 ~~ 110 values. Given you have 1 bit noise brings this down to 55 values.

That is too little, but by setting the AnalogReference() of the ADC to 1.1V (INTERNAL) you will get 55 * 5 /1.1 is approx 250 (500) distinct values .
See - http://arduino.cc/en/Reference/AnalogReference  -
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 506
Posts: 31345
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Alternatives?
An absolute rotary shaft encoder, optical or magnetic like this one:-
http://uk.farnell.com/austriamicrosystems/as5040-assu/encoder-magnetic-rotary-10bit-16ssop/dp/1630800
Logged

Dallas, TX
Offline Offline
Sr. Member
****
Karma: 10
Posts: 318
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Alternatives?
An absolute rotary shaft encoder, optical or magnetic like this one:-
http://uk.farnell.com/austriamicrosystems/as5040-assu/encoder-magnetic-rotary-10bit-16ssop/dp/1630800

What an interesting sensor! I've never seen one of these before.
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

More alternatives!

Here are some interesting applications as well: http://www.edn.com/article/470153-Speed_acquisition_made_simple.php or http://www.ichaus.biz/appnote_magneticsensors .
Logged

Pages: [1]   Go Up
Jump to: