We got kevins code to work, thank-you kevin. My students are more comfortable with easy c so we tried the easy c demo. The program downloads but doesnt track the light. We do have a joystick attached, and the camera light turns red like it sees the light, but doesnt activate the servos,
is there something else we need to get it to work?
Also we tried to get kevin’s code into easy c, but were unsuccessful, has anyone done this and have an idea how to do it?
Hopefully you’ve run through some of the tutorials in EasyC to become familiar with some of the library calls. I believe the Cam demo you are talking about is designed to drive the robot towards the light, which means it isn’t set up to control the servos. Take a close look at the code. You can modify it to position the servos instead of the wheels. Just send the desired signal to the pwm out that the servo is attached to.
The problem we had was that going through the EasyC tutorial, we didn’t put the call for camera data in the loop. So, once we got data from the camera, there wasn’t anything to check the camera again.
I don’t know if that’s a demo/tutorial issue or a failure to read correctly error.
I believe that in order for the easyC demo to work, the robot has to be put into autonomous mode. For that you need to build an autonomous dongle. There are schematics on the IFI site, and you can buy a premade dongle from AndyMark.biz.
we got our robot now operating in autonomous moed. we found out that putting 000,s into team number will no longer trigger autonomous as the manual we said it would. we have ordered the dongle. we did find a way around it using a jumper between pin 54,8 of the competition. HOwver, this dangerous as it is easy to fry the controllers, so we have ordered the dongle