I was hoping to be able to create it as a digital input pin and read the value, but I don’t think i have it connected correctly. I was hoping to directly check its value as and when i want, rather than use an event.
Would you be able to confirm this wiring difference please?
I am not expereinced in the hardware side.
Also, what would i use to create the reference?
Would declaring an input port be the correct one to use and what would i use as the resistormode and interruptmode?
I also have the Fez Connect shield, but have run out of the white digital sockets.
Am I able to use either of the two ones for the servo?
If you plugged a normal JST cable between the sensor and the connect shield, then you put -5V on the output of the sensor. Hopefully, that did not destroy the sensor.
If you look at the website [url]http://www.dfrobot.com/wiki/index.php?title=DFRobot_Digital_Vibration_Sensor_(SKU:DFR0027)[/url] you can see that the example they use uses interrupts on arduino pin 3. When the sensor senses vibration it triggers this - in their case they detect the falling edge. So really there’s not much more to this than an input port - simplistically to prove you sense things you could poll the value and when you see it change flash a LED or something.