Go to Post Everyone has regrets in robotics- it's how you learn from them that makes all the difference. - Kevin Leonard [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-10-2008, 23:17
michael714's Avatar
michael714 michael714 is offline
Registered User
FRC #3863 (Pantherbotics)
Team Role: Teacher
 
Join Date: Apr 2006
Rookie Year: 2007
Location: Newbury Park, CA
Posts: 46
michael714 is on a distinguished road
[FTC]: [FTC] Motor Controller problems

Is anyone else having motor controller problems? Ours seems to run the big motor (from the kit) either full on or off. We looked at the output signal with a scope and no matter what values we use in RobotC, we don't seem to get PWM, just on (12V) or off (0V) or full reverse (-12V). Is it possible we have a bad motor controller? Could it be user error?
Reply With Quote
  #2   Spotlight this post!  
Unread 04-10-2008, 00:12
emmell's Avatar
emmell emmell is offline
Murphy was an Optimist!
AKA: Mannie Lowe
no team (Radbotics, RoboKnights, CircuitRunners, Oscar, and more...)
Team Role: Coach
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Marietta, GA
Posts: 178
emmell is just really niceemmell is just really niceemmell is just really niceemmell is just really niceemmell is just really nice
Re: [FTC]: [FTC] Motor Controller problems

Couple of questions:

1) How do you have the motors wired? How are the connections going from the motor to the controller and from controller to the NXT?
2) What's the snippet of code that you have to drive the motors?
3) Have you tried just driving the NXT motors?
4) Are you using motor encoders (not that it should matter)?
5) Are you using ROBOTC 1.44? It was just updated and released early this week - see www.robotc.net for details.
__________________
Mannie Lowe
FIRST Program Manager - Center for Mathematics and Science Education - University of Mississippi
Mississippi FIRST Tech Challenge Affiliate Partner


Reply With Quote
  #3   Spotlight this post!  
Unread 05-10-2008, 04:18
dickswan dickswan is offline
Registered User
no team
 
Join Date: Feb 2006
Location: dallas, TX
Posts: 13
dickswan is an unknown quantity at this point
Re: [FTC]: [FTC] Motor Controller problems

If your motors are miswired, it can cause the problems you are having. Several possible sources of miswiring are:
  • You have "PID speed control set" but the encoders are not connected. No changes will be detected on the encoders so the PID algorithm will adjust to maximum speed.
  • You have the four wire motor encoder connected backwards. The orange lead should be on the "fat" side of the motor controller.
  • the motor leads are connected "opposite". That is, they're connected so that when the motor is going forward (positive) the encoder is counting reverse (negative). Simply swap the motor leads.
  • Motor encoder 1 is connected to motor encoder 2 input and vice versa.
I spent an hour with my initial robot wondering what had happened until I got this straightened out.


A good way to test that you have your wiring accurate is to use the "NXT Devices" command found in the debugger. Here's how to do this:
  1. Download the file included in this post. It's a small program that alternately drives each of the motors forward and then reverse for two seconds.
  2. Compile the program and download to NXT.
  3. Run the program with the ROBOTC debugger window "NXT Devices" open.
  4. Monitor the results in the debugger window and verify that they are the expected ones.
More detailed instructions are included in the comments of the test program. This program will also be included in the sample programs folder for the next ROBOTC release.
Attached Files
File Type: c FTC Test Motors.c (4.1 KB, 110 views)
Reply With Quote
  #4   Spotlight this post!  
Unread 05-10-2008, 11:27
gblake's Avatar
gblake gblake is online now
6th Gear Developer; Mentor
AKA: Blake Ross
no team (6th Gear)
Team Role: Mentor
 
Join Date: May 2006
Rookie Year: 2006
Location: Virginia
Posts: 1,934
gblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond repute
Re: [FTC]: [FTC] Motor Controller problems

Quote:
Originally Posted by michael714 View Post
We looked at the output signal with a scope and no matter what values we use in RobotC, we don't seem to get PWM, just on (12V) or off (0V) or full reverse (-12V). Is it possible we have a bad motor controller?
You appear to either be mixing two symptom-descriptions together, or making the mistake of thinking that the motors know how to decode PWM signals.

What I think you should see is this chain of signals.

NXTBrick --> HiTechnicBrick: See PWM, or I2C, or some such encoded signal

HiTechnicBrick --> BigMotor: See a signal that encodes speed and direction into a (relatively) slowly varying (from +12V to -12V) analog voltage.

If you are looking for PWM pulses at the 2-wire input to the big motors, I think you are looking for the wrong thing.

If you send proper commands to the HiTechnic Motor-Control brick, and it only produces full on +12V or full off (-12V), and if those signal aren't modulated in any way once they are on or off, then I think you might have a bad HiTechnic brick.

Blake
__________________
Blake Ross, For emailing me, in the verizon.net domain, I am blake
VRC Team Mentor, FTC volunteer, 5th Gear Developer, Husband, Father, Triangle Fraternity Alumnus (ky 76), U Ky BSEE, Tau Beta Pi, Eta Kappa Nu, Kentucky Colonel
Words/phrases I avoid: basis, mitigate, leveraging, transitioning, impact (instead of affect/effect), facilitate, programmatic, problematic, issue (instead of problem), latency (instead of delay), dependency (instead of prerequisite), connectivity, usage & utilize (instead of use), downed, functionality, functional, power on, descore, alumni (instead of alumnus/alumna), the enterprise, methodology, nomenclature, form factor (instead of size or shape), competency, modality, provided(with), provision(ing), irregardless/irrespective, signage, colorized, pulsating, ideate
Reply With Quote
  #5   Spotlight this post!  
Unread 14-10-2008, 00:33
michael714's Avatar
michael714 michael714 is offline
Registered User
FRC #3863 (Pantherbotics)
Team Role: Teacher
 
Join Date: Apr 2006
Rookie Year: 2007
Location: Newbury Park, CA
Posts: 46
michael714 is on a distinguished road
Re: [FTC]: [FTC] Motor Controller problems

Hey folks, thanks for all the responses. We fixed the problem by upgrading to RobotC 1.45. Although, I will say that it was not at all obvious where to get version 1.45 from. Just in case there is someone else having problems with motors or servos, you can download the latest version of RobotC (for the FTC) from:

http://www.education.rec.ri.cmu.edu/...ts/ftc/robotc/

Thanks again for all the help.
Reply With Quote
Reply


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
[FTC]: Anyone else having leakage in their FTC batteries? PhilBot FIRST Tech Challenge 6 27-11-2008 14:12
[FTC]: Rookie Team Needs Help With Tetrix FTC Kit! rjustice4 FIRST Tech Challenge 8 05-10-2008 09:44
[FTC]: FTC]: FTC Champ Tournament - Ontario (Scoring Breakdown) Mr. Lim FIRST Tech Challenge 2 03-03-2008 11:54
[FTC]: [FTC]: Ontario Provincial FTC Start/End Times cbhl FIRST Tech Challenge 8 16-12-2007 13:37
[FTC]: Hey FTC teams, Vex and a chance to be on MTV? Rich Kressly FIRST Tech Challenge 1 12-09-2007 13:35


All times are GMT -5. The time now is 17:07.

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