Robot Arm Using Arduino Mega and L293D Motor Control Module
- AFMotor.h
- math.h
Let a
and b
be the red
and green
arm lengths respectively
Then for a coordinate (r, h)
, angles alpha
(angle of red
arm from X' axis
) and beta
(angle of green
arm from red arm
in counter-clockwise direction) are given by the following relation:
- Arduino
- Three DC Motors
- Three Potentiometers
- L293D Motor Control Module
- Each Motor is coupled with a potentiometer so that the angles can be measured. Configuration is important and therefore the code needs to be modified accordingly.
Motor 1
is used at the bottom to turn the plane of arms at a desired angletheta
from starting vertical plane (sayXY
).Motor 2
is used at the root ofred
arm and measures anglealpha
.Motor 3
is used at the root of junction ofred
andgreen
arms and measures anglebeta
(angle ofgreen
arm fromred arm
in counter-clockwise direction).- Analog Pins of
Motor 1
,Motor 2
andMotor 3
potentiometers are connected toA8
,A9
andA10
pin slots respectively.
- Abhishek Kr Mishra
- Akash Chauhan
- Umakant Vashishtha