300 Degree Rotary Encoder Module
The 300 Degree Rotary Encoder Module utilizes an adjustable potentiometer, not just for regulating motor speed, but also for attaching a pendulum to measure angles within its 0-300 degree rotation.
The 3P sensor cable is compatible with the Arduino Sensor Shield 5.0V.
By programming the Arduino Mega168 controller, the patch sensor expansion board allows for seamless interaction with rotating positions.
The code for the demonstration is as follows:
- The potentiometer pin is defined as 4.
- The designated pin for the LED is set as ’13’.
- The value of the variable is currently 0.
- size(400, 400);
- Designate led Pin as an OUTPUT using pinMode(ledPin, OUTPUT).
- The loop function is used here.
- The variable “val” is assigned the value of the analog reading from the potentiometer pin.
- Set the LED pin to a HIGH state using the digitalWrite function.
- Then, the function will be executed with the specified delay.
- ledOn = false;
- Execute a delay function for the given value.
- The design of the rotation angle sensor is based on an adjustable potentiometer.
- Functioning as a variable resistor, it regulates the speed of the motor.
- In addition, the pendulum can also be installed to rotate around the head.
- The rotation angle can vary between 0 and 300 degrees.
- The Hole Center Distance for fixing is 15mm/0.6.
- 300 Degree Rotary Encoder Module originates from the United States.
There are no reviews yet.