This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adapting motor.ino for a ACS712 current sensor
#3
If you change to the 0-5v range, you need to ensure you use ratiometric mode then. This will fix the voltage calculations and you will use different resistors there too. This can be enabled by tying D4 and D5 to gnd.

You will need special logic to handle this sensor with 2.4v center point and maybe some logic to zero low enough readings.

If you can please use the original code in github and tie D4 and D5 to gnd, then what do you get for current readings? Then modify TakeAmps()
Reply


Messages In This Thread
RE: Adapting motor.ino for a ACS712 current sensor - by seandepagnier - 2023-08-04, 07:24 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)