Resend my activation email : Register : Log in 
BCF: Bike Chat Forums


Arduino geekery?

Reply to topic
Bike Chat Forums Index -> The Geek Zone
View previous topic : View next topic  
Author Message

UnknownStuntm...
World Chat Champion



Joined: 13 Sep 2007
Karma :

PostPosted: 13:34 - 23 Nov 2009    Post subject: Arduino geekery? Reply with quote

So, I've got one on order for a project, I would like to create a rev counter, from a single cylinder engine. Anyone got any experience of such a thing?
 Back to top
View user's profile Send private message You must be logged in to rate posts

Syx
World Chat Champion



Joined: 20 Oct 2006
Karma :

PostPosted: 15:07 - 23 Nov 2009    Post subject: Reply with quote

I've had some experience with PIC microcontrollers (I have a clock working at home, and am attempting to build a device to measure lean angle) - not sure how similar they are to the Arduino kit. I would guess there are lots of setup examples out there though... and then it's just a matter of the code!
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

UnknownStuntm...
World Chat Champion



Joined: 13 Sep 2007
Karma :

PostPosted: 15:41 - 23 Nov 2009    Post subject: Reply with quote

I suppose what I'm asking is a microelectronic pickup question really. Like, a coil of wire wrapped around the HT lead, then through some electrickery to remove spikes etc, before it can be safely fed to an I/O.

I remember years back I had some books about this kinda thing where I was supposed to be paying attention in class. Maybe I'll dig them out of the loft.
 Back to top
View user's profile Send private message You must be logged in to rate posts

Syx
World Chat Champion



Joined: 20 Oct 2006
Karma :

PostPosted: 16:54 - 23 Nov 2009    Post subject: Reply with quote

I seem to remember that some rev counters work by wrapping a "sensor wire" around the HT lead to induce a pulse - so that seems to be your option! I'd probably start out by doing that and passing it through a couple of filters then seeing what kind of pulse you get from it.

Edit: The filters you need will most likely be the same kind you get on voltage transformers, as they do the same thing (smooth out the "spikes"). Although I would guess you don't want to oversmooth as it is the spikes you'll be using!
Here's a similar project that includes a schematic: https://www.quasarelectronics.com/smart-kit/1143-digital-rpm-indicator.htm
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

The Shaggy D.A.
Super Spammer



Joined: 12 Sep 2008
Karma :

PostPosted: 18:29 - 23 Nov 2009    Post subject: Reply with quote

I'd be tempted to try a 555 timer as a Schmitt trigger with, as Syx has mentioned, a few loops of wire wrapped around the HT lead. The 555 will then produce a clean (reversed) square wave which you should be able to count on the Arduino.

https://www.kpsec.freeuk.com/555timer.htm#buffer

I read that if you don't have access to a test signal generator to calibrate it, you can always use the 50Hz from mains hum, which would be 3000RPM Smile
____________________
Chances are quite high you are not in my Monkeysphere, and I don't care about you. Don't take it personally.
Currently : Royal Enfield 350 Meteor
Previously : CB100N > CB250RS > XJ900F > GT550 > GPZ750R/1000RX > AJS M16 > R100RT > Bullet 500 > CB500 > LS650P > Bullet Electra X & YBR125 > Bullet 350 "Superstar" & YBR125 Custom > Royal Enfield Classic 500 Despatch Limited Edition (28 of 200) & CB Two-Fifty Nighthawk > ER5
 Back to top
View user's profile Send private message You must be logged in to rate posts

UnknownStuntm...
World Chat Champion



Joined: 13 Sep 2007
Karma :

PostPosted: 19:24 - 23 Nov 2009    Post subject: Reply with quote

Excellent, I shall break the soldering iron out as soon as the ard turns up, you two are suitably rewarded for some inventive thinking.

Need to get 6 engines' rpms simultaneously, (well, maybe two engines, as they'll be arranged in two banks of three) and prepare some way of showing the data. It's for a power tool drag racing project you see... Very Happy
 Back to top
View user's profile Send private message You must be logged in to rate posts

Syx
World Chat Champion



Joined: 20 Oct 2006
Karma :

PostPosted: 17:17 - 24 Nov 2009    Post subject: Reply with quote

Such is the complexity of life - a simple description hides a much more involved project!
Best of luck with it Thumbs Up
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

G
The Voice of Reason



Joined: 02 Feb 2002
Karma :

PostPosted: 20:07 - 26 Nov 2009    Post subject: Re: Arduino geekery? Reply with quote

My Veypor and the aftermarket tacho on the SV650 race bike I did have both cut into the +ve to the coil (before not after).
Using one of those splicing style connectors.
 Back to top
View user's profile Send private message You must be logged in to rate posts

UnknownStuntm...
World Chat Champion



Joined: 13 Sep 2007
Karma :

PostPosted: 07:29 - 27 Nov 2009    Post subject: Reply with quote

Well, the engines have no way to get a LT signal out. It's a two stroke disc cutter, and they have a sealed ignition amplifier with a massive magnet to generate the spark. I think the only way I'd be able to pick up the signal would be to wrap a wire around the HT lead.

But anyway, something dawned on me yesterday, it's a single speed thing, so I can just use a bike computer sensor to get the speed of any of the wheels, it'll be directly linked to the rpm of all the motors...
 Back to top
View user's profile Send private message You must be logged in to rate posts

Syx
World Chat Champion



Joined: 20 Oct 2006
Karma :

PostPosted: 12:48 - 27 Nov 2009    Post subject: Reply with quote

Being single speed does make things much easier... although I'm not sure if the accuracy of a bike speedo is much to shout about!
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

UnknownStuntm...
World Chat Champion



Joined: 13 Sep 2007
Karma :

PostPosted: 13:56 - 27 Nov 2009    Post subject: Reply with quote

just the sensor I'll be using, driving the arduino. It needs to manage the second stage of events you see. Smile
 Back to top
View user's profile Send private message You must be logged in to rate posts
Old Thread Alert!

The last post was made 16 years, 308 days ago. Instead of replying here, would creating a new thread be more useful?
  Display posts from previous:   
This page may contain affiliate links, which means we may earn a small commission if a visitor clicks through and makes a purchase. By clicking on an affiliate link, you accept that third-party cookies will be set.

Post new topic   Reply to topic    Bike Chat Forums Index -> The Geek Zone All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Read the Terms of Use! - Powered by phpBB © phpBB Group
 

Debug Mode: ON - Server: birks (www) - Page Generation Time: 0.06 Sec - Server Load: 0.88 - MySQL Queries: 13 - Page Size: 66.88 Kb