Go to Post Less playing to the camera, more talking about cool FIRST stuff please. - Cuog [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 24-04-2008, 02:56
pludodog pludodog is offline
College Student
AKA: Joe Hall
None #0395 (2trainrobotics)
Team Role: College Student
 
Join Date: Dec 2003
Rookie Year: 2001
Location: New York, NY
Posts: 37
pludodog is a splendid one to beholdpludodog is a splendid one to beholdpludodog is a splendid one to beholdpludodog is a splendid one to beholdpludodog is a splendid one to beholdpludodog is a splendid one to beholdpludodog is a splendid one to behold
Send a message via AIM to pludodog
Unhappy Victor turning on and off under load, with non-IFI microcontroller

I'm trying to control a Victor (two 884's and an 883, all have the same problem) using the Arduino microcontroller. It outputs PWM signals that work fine for servos, and should work fine for the speed controller. When I vary the output with the motor disconnected the victor goes from red to orange to green as expected. When I connect the motor and give the speed controller a speed the speed controller flashes orange rapidly, and the motor makes a clicking noise, as if it were turning on and off quickly, but doesn't move.

Without the victor the motor works fine, the battery works fine, and the controller works fine. I haven't hooked it up to an IFI controller yet -- our only C controllers are in Atlanta and I don't want to remember PBASIC. I might build a timer circuit in the morning just to see, but it seems like the Victor is getting PWM signal fine.

Any idea what could be causing this?
__________________
jphiii
395 - 2trainrobotics
2005/06 NYC Champions
2005/06 Pittsburgh Champions
30 - Fury
  #2   Spotlight this post!  
Unread 24-04-2008, 03:45
Vikesrock's Avatar
Vikesrock Vikesrock is online now
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Victor turning on and off under load, with non-IFI microcontroller

Quote:
Originally Posted by pludodog View Post
I'm trying to control a Victor (two 884's and an 883, all have the same problem) using the Arduino microcontroller. It outputs PWM signals that work fine for servos, and should work fine for the speed controller. When I vary the output with the motor disconnected the victor goes from red to orange to green as expected. When I connect the motor and give the speed controller a speed the speed controller flashes orange rapidly, and the motor makes a clicking noise, as if it were turning on and off quickly, but doesn't move.

Without the victor the motor works fine, the battery works fine, and the controller works fine. I haven't hooked it up to an IFI controller yet -- our only C controllers are in Atlanta and I don't want to remember PBASIC. I might build a timer circuit in the morning just to see, but it seems like the Victor is getting PWM signal fine.

Any idea what could be causing this?
I am not positive here, but I believe the problem may be related to driving the Victor with a non-IFI controller. You may need a PWM Signal Booster cable like this one:
http://www.trossenrobotics.com/store...ter-Cable.aspx
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
  #3   Spotlight this post!  
Unread 24-04-2008, 04:22
pludodog pludodog is offline
College Student
AKA: Joe Hall
None #0395 (2trainrobotics)
Team Role: College Student
 
Join Date: Dec 2003
Rookie Year: 2001
Location: New York, NY
Posts: 37
pludodog is a splendid one to beholdpludodog is a splendid one to beholdpludodog is a splendid one to beholdpludodog is a splendid one to beholdpludodog is a splendid one to beholdpludodog is a splendid one to beholdpludodog is a splendid one to behold
Send a message via AIM to pludodog
Re: Victor turning on and off under load, with non-IFI microcontroller

I was wondering about that. Does that do anything besides boost the signal? I hooked up the speed controller to a function generator, and confirmed that the duty cycle and frequency were correct, and that I'm getting between 5 and 7 volts on the PWM output. Everything works fine until I plug the motor in, then same problem.
__________________
jphiii
395 - 2trainrobotics
2005/06 NYC Champions
2005/06 Pittsburgh Champions
30 - Fury
  #4   Spotlight this post!  
Unread 24-04-2008, 07:53
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Victor turning on and off under load, with non-IFI microcontroller

It also sounds like your power source is not adequate to providing power to the motor and the micro-controller. I think when the motor tries to turn, it draws so much power that it resets your micro-controller, making the motor click. Using a small power adapter that plugs into the wall is a sure bet of this, but also trying to run from a small battery or a bad battery will also cause this.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
  #5   Spotlight this post!  
Unread 24-04-2008, 07:58
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,785
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Victor turning on and off under load, with non-IFI microcontroller

Ryan may be on to something here. Remember that a stalled motor is one that is not moving (powered is implied). Your motor will draw stall current while it is starting. You did not specify a motor, but even a small motor can draw excessive current during start.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #6   Spotlight this post!  
Unread 24-04-2008, 10:20
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,685
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Victor turning on and off under load, with non-IFI microcontroller

As a follow up suggestion to Al and Ryan, there are a few ways you could test this. Setting a status bit on your Arduino that pulses once during a reset would tell you if you're resetting the controller accidentally. You could also try running a smaller motor, or try jump starting your motor by giving it a good spin in the appropriate direction before starting the output pulses to the Victor. It would help if you had the Victor in Coast mode when trying this so you could get it to a decent speed, of course.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #7   Spotlight this post!  
Unread 24-04-2008, 14:49
pludodog pludodog is offline
College Student
AKA: Joe Hall
None #0395 (2trainrobotics)
Team Role: College Student
 
Join Date: Dec 2003
Rookie Year: 2001
Location: New York, NY
Posts: 37
pludodog is a splendid one to beholdpludodog is a splendid one to beholdpludodog is a splendid one to beholdpludodog is a splendid one to beholdpludodog is a splendid one to beholdpludodog is a splendid one to beholdpludodog is a splendid one to behold
Send a message via AIM to pludodog
Re: Victor turning on and off under load, with non-IFI microcontroller

The two motors are a big CIM under a fairly small load, and a window motor under no-load. Both exhibit the same behavior, even with a bigger battery. I also have the microcontroller running under external power, so that shouldn't be a problem. It usually takes 3-5 seconds to reset anyways, so that wouldn't do it. Will the victor display red and green under any circumstances that don't mean it's receiving proper PWM signal? I guess that it would exhibit this behavior if we really turning the victor on and off really fast, instead of giving it a constant signal, but I trust the function generator...


I'm going to see if I can control another Victor in a working setup with this, but I don't see how four victors could go bad at once :-\.
__________________
jphiii
395 - 2trainrobotics
2005/06 NYC Champions
2005/06 Pittsburgh Champions
30 - Fury
  #8   Spotlight this post!  
Unread 24-04-2008, 15:16
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,785
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Victor turning on and off under load, with non-IFI microcontroller

Red and green indicate full forward and reverse as sensed on the PWM input. The large (3 1/2") CIM motor draws 96 amps in stall/start. Are you using a kit battery?
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #9   Spotlight this post!  
Unread 19-06-2008, 12:50
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Victor turning on and off under load, with non-IFI microcontroller

It's been a while since I've posted, but now I'm experiencing a problem like this on a VEX robot running a brand new Victor 884. It works sometime, and then all of a sudden it will start flashing orange rapidly. I don't have any code that would mess it up, and I'm using a normal PWM cable and powering it with a charged 12V battery rated for 3.4AH running a Fisher Price motor with some load. The voltage remains stable when starting, and it will be running then start flashing. I'm not sure what is wrong with it, right now I'm thinking defective Victor. Yesterday it wouldn't work very well at all. It would show that it was outputting a voltage, but the motor would not move at all. It's a brand new motor, brand new wire, brand new victor, etc...
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
  #10   Spotlight this post!  
Unread 19-06-2008, 13:44
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,785
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Victor turning on and off under load, with non-IFI microcontroller

Ryan,
It seems to me that the PWM output of the VEX controller needs an interface device to run a Victor. Perhaps someone will read this and comment before I have a chance to go look it up. The most recent FP motor stalls at 56 amps so I don't think that is the problem. It really looks like the Victor is unhappy with the PWM signal.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #11   Spotlight this post!  
Unread 19-06-2008, 15:40
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: Victor turning on and off under load, with non-IFI microcontroller

Is it possible that you are sending the PWM pulse too often or not often enough for the victor's taste? If you hook a volt meter on DC up to the controller outputs, does the voltage vary as expected.
__________________
1139 Alumni
  #12   Spotlight this post!  
Unread 19-06-2008, 22:29
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Victor turning on and off under load, with non-IFI microcontroller

Yea, I was afraid that the VEX controller wasn't being very friendly with the Victor. I have not had a chance to check the voltage as this only happens while it's running on the floor. Oh well, it doesn't really matter now. It worked for me a while back. The Victor is getting a signal I guess every 26.4ms or however much time it takes for the VEX code to go through a loop.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
  #13   Spotlight this post!  
Unread 20-06-2008, 07:33
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,785
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Victor turning on and off under load, with non-IFI microcontroller

My research says that Victors are compatable with the Vex controller. http://www.vexforum.com/showthread.php?t=375
That being the case, it sounds like you have a bad PWM cable or are suffering the old PWM cable not fully inserted in the Victor.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #14   Spotlight this post!  
Unread 21-06-2008, 23:13
Jim E Jim E is offline
Registered User
FRC #1523 (M.A.R.S.)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Lantana, FL
Posts: 188
Jim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond repute
Re: Victor turning on and off under load, with non-IFI microcontroller

I have to agree with Al on this one.

Team 1523 has successfully run FP motors with VEX controllers and Victors with no problem.

Just make sure your PWM cables are inserted properly and securely. The pinout on the VEX is a little confusing since they normally run with 4 wire instead of 3 with the IFI controller. ( Requires a custom-made cable)

Also, use a fuse block on the motor to keep everything protected.
__________________
Team MARS = 1.523 AU from the SUN!

Jim E.

Last edited by Jim E : 21-06-2008 at 23:23.
  #15   Spotlight this post!  
Unread 22-06-2008, 17:05
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,006
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Victor turning on and off under load, with non-IFI microcontroller

Just to emphasize, I have been using Victors with Vex for a while now without problems.
__________________

I am N2IRZ - What's your callsign?
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
RPM under load Demothesis Motors 1 12-01-2008 22:30
Issues with non working victor constant orange led dani190 Control System 10 21-12-2007 22:32
**FIRST EMAIL**/Championship Updates - Load In and Load Out and Finale Ticket Inform AmyPrib FIRST E-Mail Blast Archive 3 21-04-2006 11:08
Turning motors on and off in the KitGearbox? Andrew Blair Kit & Additional Hardware 4 31-12-2005 10:33
Victor turning off zeep25 Electrical 10 23-02-2004 18:35


All times are GMT -5. The time now is 19:05.

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