Download Print this page

DAGU MR. Tidy User Manual page 18

Mr. tidy robotics

Advertisement

You will see the output of the colour sensor in the serial monitor. If there are no objects within range it will say
the colour is none. The colour recognition code simply looks at which readings are higher than the average.
To calibrate the colour sensor, place a piece of white paper about 20mm in front of the robot. Adjust the red,
green and blue PWM values in the constants tab and then upload the program again. When the red, green
and blue readings on the serial monitor are the same then the sensor is calibrated. Write these values down
so they can be inserted into the main program when it is reloaded back into the robot.
Go to the top of the serial monitor window, type "e" and then press [enter]. This will cause the serial monitor
to display the encoder and limit switch inputs.
By manually moving the wheels, arm and gripper you will be able to check the operation of all the encoders
and limit switches.
18

Advertisement

loading

Related Products for DAGU MR. Tidy