View Single Post
Old 08-03-2018, 10:45 AM   #1 (permalink)
Ecky
Master EcoModder
 
Ecky's Avatar
 
Join Date: Dec 2011
Location: New Zealand
Posts: 5,016

ND Miata - '15 Mazda MX-5 Special Package
90 day: 40.51 mpg (US)
Thanks: 2,869
Thanked 2,514 Times in 1,554 Posts
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?

  Reply With Quote