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?
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.
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.