Blog Home

Fai Un Contachilometri Con Arduino! [Wired]

Davide GombaJuly 20th, 2011

Riportiamo qui di seguito il tutorial su come realizzare il proprio contachilometri, pubblicato su Wired di Giugno. A realizzarlo sono stati due membri della community: Vittorio Zuccalà con il supporto di Enkel Bici. Per realizzarlo hanno usato una Arduino Uno, un SD shield di Sparkfun e una Reed Switch (sostituibile anche da un Hall Sensor).

L’idea è semplice: tramite arduino si visualizza la velocità di punta e la velocità media su un display 16X2.
Per contare i giri della ruota abbiamo utilizzato un reed switch. Questo sensore si comporta come un interruttore: esso rimane normalmente aperto (e quindi non passa corrente); arduino lo vede come un segnale digitale LOW.
Quando passa un magnete vicino (posizionato sui raggi della ruota), il sensore si chiude facendo passare corrente; in questo modo restituisce un HIGH digitale ad arduino riconosce il passaggio del magnete; il tempo trascorso tra un passaggio e l’altro ci permette di calcolare la velocità istantanea (e successivamente quella media) e, conoscendo il raggio della ruota, si può calcolare il numero di metri percorsi.

[set su Flickr] via [VittorioZuccalà Blog]

3 Responses to “Fai Un Contachilometri Con Arduino! [Wired]”

  1. liudr Says:

    I can’t read the language the article was written in but I am presenting this picture to a physics teaching conference anyway. This is the worst-looking bike odometer I have ever seen. I hate the yellow tapes and their sticky residues. The maker(s) of this odometer probably knew that they could buy a decent commercial unit for cheap on ebay but they wasted who knows how many hours of their time and probably got frustrated more than once while doing this project and even bothered to post this ugly picture online to share?! There must be something in this project that money can’t buy. You have to be a real arduinoist to know what it is. Good job to whoever made this crap. Carry on!

  2. ahdavidson Says:

    It just says that the system shows current and average speed on the text display and uses a reed switch with a magnet that works like an interrupt. The switch stays normally open until the magnet, which is on a spoke of the wheel, passes by the reed switch. It keeps track of the elapsed time since the last rotation and can then calculate the speed. Knowing the wheel radius lets it also calculate the distance traveled.

  3. liudr Says:

    Yep. I google-translated it and got the meaning. I my original reply, I was just building up a surprise ending with a long monolog of “I hate this”, which ends surprisingly with applaud. The project carries Arduino spirit. It was just a strange way I responded to the post 🙂

Leave a Reply

You must be logged in with your Arduino account to post a comment.