Go to Post Here we go again with all kinds of speculation. We can never out guess FIRST. - BobC [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-04-2006, 18:40
Hutch Hutch is offline
NOTAG
FRC #0461 (Westside Boiler Invasion)
Team Role: Programmer
 
Join Date: Jul 2005
Location: Indiana
Posts: 69
Hutch will become famous soon enoughHutch will become famous soon enough
Strange Camera Problems

At the last regional we were at , we finally started really using our camera... It was working great and tracking and everything until we noticed a problem: whenever we turned on our ball collection mechanism, the camera would freak out and go all the way to the left.

Since our collector has two fisher price motors, we tried to just run one at a time: with only one running (regardless of which), it would work just fine (maybe be a wee bit jerky but not freaking out). The motors are located on the complete opposite side of the robot from our camera (camera is top left, motors are bottom right).

We thought it might be the Van De Graff generator thing, but we tried grounding things and it didn't change; it also happens immediately so we ruled that out.

We are really at a loss as to what the problem could be, so anyone have any ideas?
  #2   Spotlight this post!  
Unread 12-04-2006, 18:51
Andrew Blair's Avatar
Andrew Blair Andrew Blair is offline
SAE Formula is FIRST with Gasoline.
FRC #0306 (CRT)
Team Role: Alumni
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Corry
Posts: 1,193
Andrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond repute
Send a message via AIM to Andrew Blair Send a message via Yahoo to Andrew Blair
Re: Strange Camera Problems

Here's the one thing I can think of:

When you turn on the Fisher Prices, unless you use some ramp code, the motor brushes arc. Now, somewhere, I heard some tech nonsense about collapsing magnetic fields when arcing occurs(or rather, the arcing is caused by the collapse of the field), and back EMF, and lots of junk like that. Perhaps this could be causing it. I'm sure someone brighter than I can elaborate.

Because it only occurs when you run the collection mechanism, which only contains FP's, I wouldn't think it's a current drop issue, though that is possible. The only thing I don't get is why it occurs only when *both* motors are run. Maybe you've got your FP power lines near your camera wires, and are inducting a power or signal current. Interesting...
__________________
Reading makes a full man, conference a ready man, and writing an exact man.
-Sir Francis Bacon

"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
-Albert Einstein
  #3   Spotlight this post!  
Unread 20-04-2006, 14:10
Alex G Alex G is offline
Registered User
FRC #0201 (FEDS)
Team Role: Programmer
 
Join Date: Apr 2006
Rookie Year: 2006
Location: Rochester
Posts: 8
Alex G is an unknown quantity at this point
Re: Strange Camera Problems

It can be because of noise in the PWM outputs. If the camera draws power from the PWM outputs, I would recommend using an LC(coil-capacitor) filter before the camera. He had similar problems when the backup battery was low. Noise can temporarily lower the voltage, so i suspect this to be the cause.

Here's some info on the LC filters:

http://www.tpub.com/content/neets/14.../14179_204.htm
  #4   Spotlight this post!  
Unread 20-04-2006, 22:58
Keith Watson Keith Watson is offline
Registered User
FRC #0957 (WATSON)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Wilsonville, OR
Posts: 112
Keith Watson is just really niceKeith Watson is just really niceKeith Watson is just really niceKeith Watson is just really nice
Re: Strange Camera Problems

First dump your pwm values to the terminal window to ensure that they are what you expect.

Long runs of multiple wire cable (like pwm wire, also known as servo wire in the world of radio control models) are known to act as excellent antennas. DC brushed motors are an excellent source of noise for that style of cable. Ways to reduce the noise that is picked up include twisting the cables, adding chokes (magnetic rings) at each end of the cable, adding a filter (capacitors) where the power wires connect to the brushed motors, etc.
__________________
Keith Watson - Professional Software Engineer
No relation to "Kevin" Watson, who created the camera tracking code.
  #5   Spotlight this post!  
Unread 23-04-2006, 17:02
coldabert's Avatar
coldabert coldabert is offline
The Dude
FRC #0888 (Robotiators)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2003
Location: MD
Posts: 83
coldabert is a glorious beacon of lightcoldabert is a glorious beacon of lightcoldabert is a glorious beacon of lightcoldabert is a glorious beacon of lightcoldabert is a glorious beacon of light
Send a message via AIM to coldabert
Re: Strange Camera Problems

To isolate the problem, use an oscilloscope to monitor voltages your pwms.

This might seem like too much for a simple problem, but it will definitely show you which systems are not causing the camera to move.

(Plus its cool and you can tell people that the wavy lines are talking to you in computerspeak)

Let me know if you need help setting up the scope.
  #6   Spotlight this post!  
Unread 25-04-2006, 12:45
Keith Watson Keith Watson is offline
Registered User
FRC #0957 (WATSON)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Wilsonville, OR
Posts: 112
Keith Watson is just really niceKeith Watson is just really niceKeith Watson is just really niceKeith Watson is just really nice
Re: Strange Camera Problems

Quote:
Originally Posted by coldabert
To isolate the problem, use an oscilloscope to monitor voltages your pwms.
To be clear, the signal line is monitored and you watch the width of the pulse. Pretty cool.
__________________
Keith Watson - Professional Software Engineer
No relation to "Kevin" Watson, who created the camera tracking code.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems Combining Camera Code and Driving Code cmurdoch Programming 20 10-02-2007 16:34
Camera \ EMF problems... zachriggle Electrical 17 02-05-2006 23:48
Camera Servo Problems pi_guy578 Programming 2 28-01-2006 13:17
Camera Problems pickle Programming 21 20-01-2005 20:43
Camera "Grab Frame" Problems Isabel Cole Programming 7 15-01-2005 21:53


All times are GMT -5. The time now is 23:04.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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