Current problem of BTN8982

Announcements

From sunburn to sun earn – we’ve got the power! Watch our #poweringgreen videos now.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User18036
Level 1
Level 1
First question asked
"I have set up a working bi directional motor from this H bridge and would like to read the current being drawn by the motor. I am trying to output the current from the IS_1 / IS_2 analogue output pins to my Arduino uno but i cannot get it to work. I do not know what the correct procedure is. if i simply analogRead(0) i get a constant value. How are you supposed to do this??
ps. i have hooked up an ammeter so i know the system works well "
0 Likes
1 Reply
bingquan
Employee
Employee
Hello, please measure the voltage at IS pin by using the following demo code: Serial.begin(9600); int VIS = analogRead(A0); // or A1 IS current could be calculated based on the IS voltage and the slew rate resistance.
0 Likes