Simple example code for line following robot who follows direct lines ,curves and 90 degree turns. Simple servo arm and also object detection by getting distance from zonar.
#Sample Code : GY-31 Color Sensor To run this sample codes for gy-31 color sensor, first you need to add TimerOne library.
1.) Download TimerOne-r11.zip file first and then extract it to your arduino libraries folder (e.g. C:\Program Files (x86)\Arduino\libraries)
2.) Import library as follows, Open arduino IDE -> Sketch -> Include Library ->TimerOne-r11
3.) Now run ColorSensor1.ino or ColorSensor2.ino