Documentos de Académico
Documentos de Profesional
Documentos de Cultura
www.mybotic.com.my
Contents
1.
Introduction ............................................................................................................................. 3
2.
3.
4.
Result ....................................................................................................................................... 7
5.
Warranty ................................................................................................................................ 10
2|Page
1. Introduction
The current sensor module is a device that is used for making current measurements. This sensor
comes with three pins, there are VCC, GND and OUT. When current flow is detected by the
sensor, it wills give an analog output signal (voltage) that decrease linearly with sensed current.
This sensor can be used in a wide variety of applications including, over-current protection
circuits, battery chargers, switching mode power supplies, digital watt meters, programmable
current sources, etc.
Specifications:
Input voltage : DC 5V
Output
: Analog
Version
: 20 Ampere(A)
Sensitivities : 100mV/A
Measuring current range up to 20A
3|Page
2. Pin Definition
GND
OUT
VCC
2 Pins
Connector
LED Indicator
Pin
Description
Function
VCC
+5V
Connect to +5V
GND
Ground
Connect to Ground
OUT
Analog Output
2 Pins
Connector
Interface Pin
4|Page
VCC Arduino 5V
GND Arduino GND
OUT Arduino pin A0
5|Page
USB Jack
+5V
To obtain the result, please get the sample source code and burn it into Arduino.
6|Page
4. Result
This example is done by observing the output current in ampere (A) by using DC motor as the
load. Small rubber toy tire is attached on the shaft of the motor so that it will be easier to stop the
motor from rotating.
Before observing the result, the calibration is needed to eliminate the OFFSET. Picture below
shows the output when the load is not connected (open circuit). In this example, the LCD screen
shows an OFFSET value about 0.073A, where it is supposed to be a 0.000A through the current
sensor during an open circuit.
So, in order to calibrate the sensor, the OFFSET value has to be changed in the source code as
shown in picture below. Later, this offset value will be subtracted inside source code.
In this example,
the OFFSET is
changed to
0.073.
7|Page
After subtracting with the OFFSET value, the LCD screen is displaying 0.000A when the sensor
and DC motor is unconnected.
After the DC motor is connected, the output current is increasing. The current sensor is
measuring the flow of current in this closed circuit.
8|Page
When the external force (by using hand) is applied to the motor in order to stop the tire from
rotating, the current flow to motor will be increased to oppose the applied force by hand. It
causes the current value to increase.
9|Page
5. Warranty
Prepared by Mybotic
47, Jalan Universiti 1,
Taman Universiti,
86400, Parit Raja, Johor
Tel: +6016-7170703 / +6018-9510703
URL : www.mybotic.com.my
Email : support@mybotic.com.my
sales@mybotic.com.my
10 | P a g e