[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

speed sensor?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 11
Thread images: 3

File: wheelspin.png (25KB, 880x390px) Image search: [Google]
wheelspin.png
25KB, 880x390px
Hey /diy/,

what would the best way to measure speed be using a speed sensor hooked up to some kind of microcontroller (ie, the arduino.) Most likely going to hook it up to one of my own avr boards that I made, but since it uses the same chip as the arduino it should be fine.

Pic related, basic diagram of what I'm imagining. Are there sensors that can tell you the relative speed at which they're traveling in miles or km per hour if they were attached to some sort of spinning axle, for example on a wheel?
>>
>>951821

Come on, nigga, try a little harder. This is basic stuff.

Stick optical encoder on shaft (can be literally just a piece of transparency paper and the optointerrupter from a mouse's scroll wheel). Measure time between pulses. Determine speed by multiplying frequency of pulses by circumference of wheel.
>>
>>951821

Reed switch and a magnet on the wheel would do it.
>>
File: CardInWheel.jpg (61KB, 576x366px) Image search: [Google]
CardInWheel.jpg
61KB, 576x366px
measure the audio frequency of the clicks...
>>
>>951941
holy shit the perspective of that picture is cringe worthy.
>>
>>951821
usually its just a dot or stripe with an optical sensor pointed at something that rotates.

if its a bicycle like in your pic you can just get a spoke magnet and use a hall effect sensor.

or you can just use your phone on a mount and use the gps.
>>
i have one on my bike right now.
used a magnetic reed switch and arduino interrupts
i have failed using opticalslot and sensors due to sunlight interference and dirt buildup
might post pics later
>>
>>951918
>>951821

https://en.wikipedia.org/wiki/Hall_effect_sensor
>>
>>951822
Actually a better way to do it is to measure the delay between rotations, and index that into a lookup table (or just do the math, if you have the processor bandwidth to do it). That way you get an accurate speed readout after the first full rotation of the wheel.

>>951918
More robust and foolproof than an opto-interrupter, lower power, too.
>>
File: Hall 1.png (112KB, 1024x561px) Image search: [Google]
Hall 1.png
112KB, 1024x561px
hall effect best effect
>>
>>953066

that's way too complicated

all you need is a magnet and an inductor.

you can handle the rest in the software of a microcontroller
Thread posts: 11
Thread images: 3


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.