hook up to motorcycle speed sensor

I need to hook into the hall effect sensor on my motorcycle for an experiment. I am thinking I need to just hook signal to a pin and ground to ground. Sound right?

Can I hook to a PWM digital pin?

The details for the speed sensor:

Speed sensor output voltage

When sensor is on

DC 4.8 V or more

When sensor is off

DC 0.6 V or less

All the digital pins can be either inputs or outputs so yes, you can use a PWM pin as the input for your sensor. As to whether that’s all that’s needed … we can’t tell. Can you tell us (link ?) what the sensor is ?

FWIW you may want to use one of the external interrupt pins instead. That way when the sensor “counts”, each count can trigger a function to run, perhaps counting the … errr, counts.

http://arduino.cc/en/Reference/AttachInterrupt

i am using a nano board so I do not think that this is an option.

The manual does not give the brand name/type but the details above are accurate and I have installed an aftermarket gage that has three wire setup, hot/ground/sense and I hooked hot/ground to the battery instead of the sensor hot ground wires and conected the sense off the ECU. speedo works.

Hope this helps?

A Nano is based on the 328 MCU and so has the same capabilities as an Uno. Same pinout as the Uno for the external interrupt pins.

http://arduino.cc/en/Main/ArduinoBoardNano

Since the voltage levels look good, connect the sense line to the Nano pin of your choosing and give it a try.

The Arduino is a 5V device while the motorcycle runs on 12V, yes?

You need to check what kind of signal the sensor is putting out, methinks.