Help with simple code for reading VSS
Hi all, I'm working on a project where (with an Arduino Uno) I need to read VSS and, depending on its value, output one thing or another. It's been a decade since I've done any significant coding.
I looked over the MPGuino schematics and noted that the VSS signal wire has a 50k ohm resistor and then feeds into the analog 0 pin. I've been trying to figuring out how to pick out the code used in the MPGuino project which is used to read and store this, without success. Can someone explain to me in brief how the Arduino records this? Does the MPGuino code count the frequency of ground pulses?
What does the logic and the code, look like to store this value so it can be queried?
|