Basic Instructions:
Limit Values
#define LxMid 330
#define LxRange 75
#define LyMid 430
#define LyRange 75
#define LTopLidShut 320
#define LTopLidOpen 380
#define LBotLidShut 505
#define LBotLidOpen 460
#define RxMid 300
#define RxRange 75
#define RyMid 460
#define RyRange 75
#define RTopLidShut 320
#define RTopLidOpen 390
#define RBotLidShut 460
#define RBotLidOpen 420
Two Eyes/Updated Code explanation:
A few tips:
- Bending the linkages can be tough. Take your time, use some patience, and eventually you will get things working smoothly!
- Verify ALL wiring (switches, power, etc.) is correct before attempting to run/power anything with the Arduino.
- If you are running only one eye mechanism, follow the steps in the video using the '1Eye' variants of the programs. If you are running two eyes at once, perform the above First Time Setup procedure using the '2Eye' variants of the programs.
- Do NOT attach any of the servo horns until you are sure each servo is "zeroed" and have run the code to move each one. Here's how to do that:
- With no horns attached, run 'buttonBlink' first. Only after you've successfully run this code and verified the button triggers movement in the correct direction should you actually attach your servo horn and linkages. Repeat for 'lookXY'
- Once you have attached your servo horn and linkages, you will need to modify the limit values (listed at beginning of each sample script) for each servo to make sure everything is moving correctly. This will vary from servo to servo. See instruction videos for more details.