Hello, I have some problems with the sensor that I am using. The sensor that I am using you can find here. I use the 20A version. The problem I'm having is that the output of the sensor very chaotic is. At first, I thought it is because I'm using PWM to control a MOSFET that's connected to a power supply.
The frequency of the PWM did have some influence on it. for example:
This is the part where members ask you to post an accurate drawing / schematic of your circuit, hand drawn is fine. Also a listing of your code using code tags. This makes it much easier to get good help.