Go to Post Tolerance, forgiveness, humor, and lessons learned are tools we can find here. - JaneYoung [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 05-05-2006, 06:52
jpflorido jpflorido is offline
Registered User
no team
 
Join Date: May 2006
Location: Spain
Posts: 3
jpflorido is an unknown quantity at this point
Servos don't work

Hi folks!!

I'm new in this CMUcam2 world :-). I bought the camera some months ago and it works OK. Recently, I decided to buy a couple of servos for motion purposes. The model are HS-422. I've tried to use them, but they don't work...

First of all, I tried to connect them via board power, with the servo internal power jumper in place... but they don't work... the power was around 12V and the intensity about 300mA.

Then, I decided to buy another power adaptor to run the servos off of external power. I leaved the jumper opened and the servos were connected to an external power... I tried from 6V to 12V... but, still, they didn't work. Well...with 12V, the servos moved, by themselves, to the initial positions when they were connected for the first time, but then I tried to move them to another positions and they didn't move....

What Am i doing wrong???

Can anybody help me, please??

Thanks in advance,
Javier.
  #2   Spotlight this post!  
Unread 05-05-2006, 09:34
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Servos don't work

Javier,

What program and platform are you using to communicate with the CMU2cam?

It would help to see the code you are using to initialize and command the CMU2cam. Also, what type of target you are seeking.

Be advised that this forum is for the FIRST robotic contest. The majority of posters here high school students and their experience is specific to a PIC18F8722 or PIC18F8520 hosting the CMU2cam on serial port 2 and targeting a bright green cold cathode target.

Regards,

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #3   Spotlight this post!  
Unread 05-05-2006, 10:23
jpflorido jpflorido is offline
Registered User
no team
 
Join Date: May 2006
Location: Spain
Posts: 3
jpflorido is an unknown quantity at this point
Unhappy Re: Servos don't work

Thanks Mike,

I'm using Visual Studio 2005 on Windows XP. The code is written in C#, but I also have tried with the GUI that the camera brought in Java and the servos didn't work either...

Here is the code I used:

// Set the COM1 serial port
SerialPort port = new SerialPort("COM1", 115200, Parity.None, 8, StopBits.One);

// Infinite ReadTime Out (default)
port.ReadBufferSize = 100000; // Size of the buffer: 100000 bytes
port.Open();
port.DiscardInBuffer(); // To empty the buffer


/* PART 1*/
port.Write("\r"); // Send command \r
while (((char)port.ReadByte()).Equals(':') == false) ;
// ':' received

/* PART 2*/
port.Write("SV 0 130\r"); // Send command SV to servo 0 at position 130
while (((char)port.ReadByte()).Equals(':') == false) ;
// ':' received


And for these two commands I received ACK....but the servos don't move!!!

Any tip...would be great.

Thanks again,
Javier.
  #4   Spotlight this post!  
Unread 05-05-2006, 16:12
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Servos don't work

Javier,

I see nothing wrong in what you have done. In particular, I know that the GUI developed by CMU works just fine. In the absence of anything offbeat (like plugging in the servo backward), I think you may have a bad unit.

Regards,

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #5   Spotlight this post!  
Unread 06-05-2006, 06:34
jpflorido jpflorido is offline
Registered User
no team
 
Join Date: May 2006
Location: Spain
Posts: 3
jpflorido is an unknown quantity at this point
Re: Servos don't work

Thanks Mike,

I've checked that there is no plugging in servo backward....so, as Mike says, it may be a bad unit...

Anyway, if somebody else had the same problem or knows any guess, would be great.

Thanks again,
regards,
Javier
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
What Artist Influence You? Koko Ed Chit-Chat 12 01-12-2006 11:33
Springs and Work sanddrag Math and Science 11 17-05-2005 18:35
Seeing First Work D@ve General Forum 2 15-04-2005 19:03
What Hours do you work? Ryan Albright Chit-Chat 2 14-03-2005 15:46
How do the servos work? tml240 Motors 25 18-02-2004 07:47


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

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