Go Down

Topic: RPM Help.  (Read 1 time) previous topic - next topic

MarkT

The accurate way is to count/time the pulses, not integrate them.  Individual pulse size depends
on mechanical positioning/runout and temperature.
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

DaveBlackpool

I don't understand. I have what I have. The sensor is fixed as is the amaount of teeth.  I'm unsure about how to write the code to read the rpm from an inductive signal. It will be spinning around 60,000rpm. Thanks.

jremington

#17
Nov 11, 2017, 03:01 am Last Edit: Nov 11, 2017, 03:06 am by jremington
Have you built the circuit shown in reply #3?
Have you googled "arduino inductive sensor rpm"?
Have you tried any code at all? If so, post it, using code tags, and tell us what you observed and learned.

Quote
It will be spinning around 60,000rpm
At that extreme rotational speed, hopefully the wheel is very carefully balanced and spinning in a steel jacketed vacuum chamber.

DaveBlackpool

Hi. Yeh I did all that. I watched a guy using a pulse from a coil around a HT lead on a spark plug. Also watched somome do it with a infrared LED and pickup. U tried his code but he seems to be using an interrupt and can't figure it out. I'm really struggling on the Code. Thanks.

jremington

Quote
I'm really struggling on the Code.
This would be a good time to read the "How to use this forum" sticky and follow the instructions.

Post the code, using code tags, explain what the code should do, and what it does instead.

DaveBlackpool

I will do thanks. I deleted the code that I'd done because I couldn't get it to work. I'll have another go now. On the diagram the vcc is that 5v through the sensor? Then to my analog input A0?  Thanks.

Go Up