![]() |
Who has the camera working?
If your team has the camera working, could you please post here? It would be greatly appreciated. Our team is curious to know if everyone else is having difficulties as well.
:) |
Re: Who has the camera working?
we have ours working, what is ur problem
|
Re: Who has the camera working?
Quote:
Team 808, |
Re: Who has the camera working?
We got ours working using the Kevin Watson code with minor tweeks.
|
Re: Who has the camera working?
Ours is working perfectly. We did it the "hard way" without Kevin's code. ;)
Post any problems you are having and we will try to answer them! |
Re: Who has the camera working?
Got it working and even have had an old robot driving toward the green light by the second week.
|
Re: Who has the camera working?
Camera works fine.
We just have to develop the shooting algorithm based from it now... |
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! :) |
Re: Who has the camera working?
we have the camera "working", we are getting output in the IFI_Loader window for pan and tilt, but the camera itslef is not moving.
:( |
Re: Who has the camera working?
Quote:
|
Re: Who has the camera working?
I got it working! Kevin coded it to tilt the wrong way when it found the target. To fix this go to tracking.c. In the servo track function, find the y-axis/ tilt tracking code. Where it assigns the tilt error, multiply the whoole subtraction problem by -1. THen go down and find the two places where it assigns 1 or -1 to the step in a division erro occurs and reverse them. That should fix the problem.
|
Re: Who has the camera working?
Or go to tracking.h
// If your camera suddenly moves away from the target once // it finds it, you'll need to change the sign on one or // both of these values. #define PAN_ROTATION_SIGN_DEFAULT +1 #define TILT_ROTATION_SIGN_DEFAULT +1 change the value there. lol It's alot easier :rolleyes: |
Re: Who has the camera working?
Ours is working but the last time I checked it would follow our faces rather than the green light we had. Probably because the green light was iluminated on our faces but whatever as long as it follows green right?
|
Re: Who has the camera working?
we got our camera working and we our using pixels to tell how far away our robot is from the goal and how much force it will need to hopefully go in
|
Re: Who has the camera working?
Our camera works but we're still playing with the code to make it track the way we want it to.
|
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.
|
Re: Who has the camera working?
4 weeks and we finally got it to work, bad converter
now just the rest of the robot |
Re: Who has the camera working?
Quote:
|
Re: Who has the camera working?
Team 836's camera is up and running finally. :D
|
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
|
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. |
Re: Who has the camera working?
Team 422 has a working camera and electronics board still waiting on a robot tho
|
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 :)
|
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.
|
Re: Who has the camera working?
1392... standing good.. working.. tracking.. cant complain
|
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.
|
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.
|
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 |
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.
|
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. |
Re: Who has the camera working?
We had the camera working yesterday, however now the camera seems to recognize the target but it doesnt seem to be sending any data. No changes to the code or hardware have been made. Help in any way would be appreciated. Thanks in advance.
|
Re: Who has the camera working?
I have it working, but i was just wondering...
Did everyone else have to change the, "PAN_ROTATION_SIGN_DEFAULT" and "TILT_ROTATION_SIGN_DEFAULT" cuz we had to change both. check those if ur having problems |
Re: Who has the camera working?
we noticed that when the camera is tracking around the PWM cable would come lose and then "no data" would appear. took a while before we realized this.
i think we should tape it in place or something. slloyd |
Re: Who has the camera working?
we didn't need to chanage anything in the code. using kevin's 2007 code, version 2.1 (just released).
but, i found the camera was turning AWAY from the green light... but since i read kevin's FAQ ahead of time i knew he had the answer already. within 5 minutes the camera was tracking feverishly! slloyd |
How We Did It (Sorta)
Team 964 is proud to announce that after a week of trial, error, and frustration that our camera works! How we did it exactly, I don't know. Me and Devin sorta played around with the coding for a bit, then resorted to the CMUCam2_Workbook, [sarcasm]the last place you should look.[/sarcasm] As I said earlier, we wouldn't be able to tell you the exact steps to save our lives, but I can give you the general steps that we used. {Note: MPLab and LabView was used}
Quote:
Quote:
|
Re: Who has the camera working?
Quote:
|
Re: Who has the camera working?
Glad everyone has it working... ! So far, this year, I have not figured it out. Last year I tried to get it working and it failed me. What happens after it tracks the light? We need it to move the drive motors to turn in the right direction...
|
Re: Who has the camera working?
We just capped the vision tetra.
|
Re: Who has the camera working?
We got our camera working with the Kevin Watson code.
|
Re: Who has the camera working?
Quote:
|
Re: Who has the camera working?
Got the camera working today :)
Just, I can'tfigure out to make it move (forward) once it is targeted on the light... |
Re: Who has the camera working?
Ours is working, but we're still playing around with the virtual window function and 2 lights to get our robot to the rack as fast as possible.
|
Re: Who has the camera working?
Quote:
We uploaded the code on last year's camera, no problems at all. As long as the new camera is wired properly it shouldn't have any problems either. Now we just have to figure out what we want it to tell us. |
Re: Who has the camera working?
We have ours set up, tracking lights, and giving feedback through the terminal.
Right now, we're working on coding in trig functions in order to do the autonomous modes. |
| 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