Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Who has the camera working? (http://www.chiefdelphi.com/forums/showthread.php?t=43247)

Zyik 04-02-2006 13:33

Re: Who has the camera working?
 
Ours will now follow the green light very consistantly, including when it is about 8 feet in the air and its far away from it.

mallot1243 04-02-2006 15:29

Re: Who has the camera working?
 
4 weeks and we finally got it to work, bad converter
now just the rest of the robot

Windward 04-02-2006 16:25

Re: Who has the camera working?
 
Quote:

Originally Posted by cmurdoch
Our camera works but we're still playing with the code to make it track the way we want it to.

123, we are still in the tweaking/troubleshooting phase.

Bcahn836 04-02-2006 16:31

Re: Who has the camera working?
 
Team 836's camera is up and running finally. :D

bbehnke 04-02-2006 16:33

Re: Who has the camera working?
 
today was the first day we had it on the thing that aimed the shooter and i dont think we have any problems (knock on wood) so far just a couple of minor adjustments to do to it. in like last year where we fried it the first time we put it on :D

Donut 05-02-2006 00:42

Re: Who has the camera working?
 
To anyone teams having problems with the camera "running away" from the target, it's because Kevin wrote his code for the way the camera is supposed to be mounted, the instructions the kit gave us had us mount it upside down. There are a couple of other threads on the issue.

The camera has no difficulties, and I already have a rough layout of how to move a rotator and adjust speed using it.

Cuog 05-02-2006 19:04

Re: Who has the camera working?
 
Team 422 has a working camera and electronics board still waiting on a robot tho

bear24rw 05-02-2006 19:07

Re: Who has the camera working?
 
team 11 has the camera working on an old robot were a turret auto centers itself to the light, we also have the camera working in autonomous mode :)

chmp09 14-01-2007 11:29

Re: Who has the camera working?
 
Kevin Watson makes everything easy. Just go to his site and download the bells and whistles code for the camera. You may have to adjust the angles in the code for the servos, but it tracks really nice if built correctly.

teh_pwnerer795 15-01-2007 19:16

Re: Who has the camera working?
 
1392... standing good.. working.. tracking.. cant complain

agmlego 15-01-2007 22:28

Re: Who has the camera working?
 
I have ours tracking very nicely albeit slowly with an EDUbot chassis. Smooth and steady. Gotta work on the power curves for the drive motors so it goes faster than (literally) a foot a minute.

804_twidget1 16-01-2007 19:45

Re: Who has the camera working?
 
We are still working on the camera but are getting nothing but errors. we are unable to find the file that allows the camera to read the serial port. if any one out there understands why it's not working, let me know.

sniggel 18-01-2007 15:29

Re: Who has the camera working?
 
we also had problems with the camera, we couldn't make it track green with Kevin's code, so we developed our own code for the camera (tracking and searching).
feel free to download our code here or ask questions about it.
good luck!
... the link for he code doesnt work,, can you check it or give us another link

Bomberofdoom 18-01-2007 15:52

Re: Who has the camera working?
 
:( Not working yet at 2230 too. I connected the servos to PWM 01 and 02, connected PWM08 to the top 3 pin next to the power switch on the camera and took a pwm cable to connect to that small elctronic board that is to be plugged in the 4 pin area and connected it to the lower 3 pin on the camera, but nothing came up on the IFI screen.

phoenixRae 18-01-2007 16:58

Re: Who has the camera working?
 
Team 581 here - got the camera up and running by the end of the first week, but was initially stumped as to why Kevin Watson's scanning algorithm wasn't working for us properly. From what we could see, the camera started out at an orgin way left of what it should be, and the 5 step pan reflected that bias. Turns out that the guy who assembled the camera (definitely wasn't me... yeah... *cough*) forgot that the servo plates need to be engaged to the servo in such a way that the PWM values for facing straight forward (which are 124 for pan, 144 for tilt, if memory serves) actually translate to facing straight forward. In case anyone else's run into this problem, here's how we fixed it:

1.) Before bolting the camera board onto the pan-tilt assembly, connect up the servos in the configuration described by Kevin Watson's default code (Pan in PWM01, Tilt in PWM02). You won't be needing the actual camera to do this, and since we'll be unscrewing a few things in the process, it's safer for the camera not to be involved.

2.) Follow Mr. Watson's instructions on installing and loading his code onto your 2007 Robot Controller, and tether your robot to its OI. Make sure your PWM cables aren't tangled with the pan-tilt assembly, then fire 'er up.

3.) What you'll see the camera do may vary depending on how your plates are aligned already, but if you're using Mr. Watson's code, it should move to its defined center, then repeat a path through 5 pan positions:

1 - Far left (PWM: 0)
2 - Left (PWM: 62)
3 - Center (PWM: 124) *This supposed to be the center of the camera's pan motion; it may not be at this time.*
4 - Right (PWM: 186)
5 - Far Right (PWM: 248)

What you want to do is unplug the pan servo from the Robot Controller at position 3 and turn off the robot. Now, unscrew the servo plate on the pan servo (without turning the servo), take it off the gear-shaped servo shaft, and align the camera so that it's facing forward. Put the plate back onto the servo shaft (again, without turning the servo), and screw it back on.

4.) The tilt servo runs through 3 positions, the second of which is supposed to be parallel with the ground. Repeat step 3 for the tilt servo (unplugging it at that second position), and you're done! =)

Thanks for reading my incredibly long post, hope it's of help to someone suffering from the same problem.


All times are GMT -5. The time now is 00:52.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi