Hi...I have a question about sensors too. On my Ardunio I have hooked up an LCD display, and a motor. I have a 1 Channel Slotted Optical Switch Speed Sensor Module that I want to use for RPM and counting revolutions(I'm making a Pickup Winder). The code I'm following says Pin 2 has an interrupt of 0 and the code states the sensor has to be on pin 2. The problem is I'm using pin 2 for the LCD.My question is, can I use some other pin for the sensor. I tried others but can't seem to get it to work. I tested the sensor and it works. Thanks for the help....Rob
Depends which arduino you're using. If it's an Uno, interrupt one is on pin three. Details here: AttachInterrupt
Hi... it's an UNO...I'm using up pin 3 and pin 2 for the LCD. Was wondering if there is another way to do it...thanks
Thanks for your help...I tried it now it works...thanks again