I have a vnh2sp30 monster motor shield to control a dc motor, I have been trying to use the CS pin for motor current measurement but all my trials haven't really gave me much progress regarding that issue.
I was reading a reply to a post regarding reading the monster motor shield reading current issue. I have measured the output voltage on the cs pin by using an voltmeter and it varies on the range of -0 to -2 mv and I'm not understanding why the negative since i connected the probes accordingly. I have tried a 100 uf capacitor connected between my cs pin and my arduino analog pin and still I couldn't read much out of the Arduino by using the analog read. I really hope anyone can assist me regarding to this problem.
herewith attached a snippet of the part in my code that I use to read the current.
I have tried using 1uf capacitor parallel to the original one as displayed in the figure. and use the same line of code i posted initially, i could only see either a 7 or 22 shown on the serial monitor after a lot of zeros. my application would need a actual time current measuring. can you please help me?
I want to add also that. isn't it strange to get from -0 to -2.1 mv when i measure the voltage coming out from the CS pin, what i understand is that value will be read through the arduino then converted to milli amps or amps. I'm really desperate for help.