Category Archives: Code

The Code Behind The Wiggles

Mr. Wiggles uses three servos and two types of sensors to achieve the functionality it currently has. Two servos are used to control the movement, and one is used to hold a pen to draw. To avoid obstacles, an ultrasonic range finder is employed, and it consistently reads the distance between Mr Wiggles and the closest obstacle. Once the distance gets smaller than the preset safety value, it turns. The direction of the turning is decided by photocell readings, which allows Mr. Wiggles to always move towards the brighter side when turning. Continue reading