Arduino Codes for Mr. General IR Compound Eye
I've downloaded the codes titled "Mr__General_ATmega8_Object_Detect" and I'd need your help in some of the constants definied in the IOPin header file. I've tried searching around, including the datasheet, to no avail. As this is my first time working on a robot, any help would be deeply appreciated.
Do note that I did not purchase the entire Mr. General robot because I just needed the compound eye with the pan kit for object detection and avoidance. I'm using an Arduino Mega for my project.
#define IRleft 2 // Compound Eye Left - analog input A2
#define IRright 3 // Compound Eye Right - analog input A3
#define IRup 4 // Compound Eye Up - analog input A4
#define IRdown 5 // Compound Eye Down - analog input A5
#define IRleds 0 // Compound Eye LEDs - digital output D0
#define neckleftrightpin 1 // PAN Servo - digital output D1
#define neckupdownpin 2 // TILt Servo - digital output D2
#define leftmotorpin 3 // Left Motor Servo - digital output D3
#define rightmotorpin 4 // Right Motor Servo - digital output D4