Go to Post All robots can be defeated with strategy. - Alexander McGee [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 25-01-2011, 23:16
sjspry sjspry is offline
Registered User
FRC #1984
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Kansas
Posts: 125
sjspry has a spectacular aura aboutsjspry has a spectacular aura aboutsjspry has a spectacular aura about
HS-322HD and Digital Sidecar PWM output

... does not seem to be working. The board is powered, also connected via the DB-37. The first of our two HS-322HDs is plugged into PWM port 1, and the jumper is in place. The + gets 6v, ground is 0v, but I don't know about the signal wire (I don't have an oscilloscope).

The motor jumps when first plugged in, but otherwise nothing seems to happen. When I don't set the "period multiplier" that PWM.java makes note of, the motor does not hum and/or heat up. So I'm assuming the signal is not working correctly, but perhaps it's something else.

As far as I can tell everything is plugged in correctly, and I'm using PWM.setRaw() and scrolling from 0-255 in increments of 5 with a delay of about half a second.

So, help?
  #2   Spotlight this post!  
Unread 26-01-2011, 01:26
ratdude747's Avatar
ratdude747 ratdude747 is offline
Official Scorekeeper
AKA: Larry Bolan
no team
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Madison, IN
Posts: 1,064
ratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond repute
Re: HS-322HD and Digital Sidecar PWM output

Quote:
Originally Posted by sjspry View Post
... does not seem to be working. The board is powered, also connected via the DB-37. The first of our two HS-322HDs is plugged into PWM port 1, and the jumper is in place. The + gets 6v, ground is 0v, but I don't know about the signal wire (I don't have an oscilloscope).

The motor jumps when first plugged in, but otherwise nothing seems to happen. When I don't set the "period multiplier" that PWM.java makes note of, the motor does not hum and/or heat up. So I'm assuming the signal is not working correctly, but perhaps it's something else.

As far as I can tell everything is plugged in correctly, and I'm using PWM.setRaw() and scrolling from 0-255 in increments of 5 with a delay of about half a second.

So, help?
you have the correct module bay in the code? sidecar data cable good and plugged in? correct pwm port (in code and plugged in)
__________________
Dean's List Semi-finalist 2010
1747 Harrison Boiler Robotics 2008-2010, 2783 Engineers of Tomorrow 2011, Event Volunteer 2012-current

DISCLAIMER: Any opinions/comments posted are solely my personal opinion and does not reflect the views/opinions of FIRST, IndianaFIRST, or any other organization.
  #3   Spotlight this post!  
Unread 26-01-2011, 10:12
omalleyj omalleyj is offline
Registered User
AKA: Jim O'Malley
FRC #1279 (Cold Fusion)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: New Jersey
Posts: 132
omalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to behold
Re: HS-322HD and Digital Sidecar PWM output

Quote:
Originally Posted by sjspry View Post
<snip>
The motor jumps when first plugged in, but otherwise nothing seems to happen. When I don't set the "period multiplier" that PWM.java makes note of, the motor does not hum and/or heat up. So I'm assuming the signal is not working correctly, but perhaps it's something else.

As far as I can tell everything is plugged in correctly, and I'm using PWM.setRaw() and scrolling from 0-255 in increments of 5 with a delay of about half a second.

So, help?
I am assuming the servo is not connected to anything (mechanically) and therefore not stalling.
Have you tried not setting the period and using set rather than set raw?

I have two servos running using the 'set', so there isn't anything broken there (library-wise) that I have seen, but I am not at the robot and can't look at the raw commands until later. If I haven't seen a resolution by then I'll try them this afternoon.
  #4   Spotlight this post!  
Unread 26-01-2011, 14:24
sjspry sjspry is offline
Registered User
FRC #1984
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Kansas
Posts: 125
sjspry has a spectacular aura aboutsjspry has a spectacular aura aboutsjspry has a spectacular aura about
Re: HS-322HD and Digital Sidecar PWM output

@ratdude747 I'll be checking the cables, but the sidecar should be fine. PWM and module are correct, as it just fails otherwise (module, anyway).

Quote:
Originally Posted by omalleyj View Post
I am assuming the servo is not connected to anything (mechanically) and therefore not stalling.
Have you tried not setting the period and using set rather than set raw?

I have two servos running using the 'set', so there isn't anything broken there (library-wise) that I have seen, but I am not at the robot and can't look at the raw commands until later. If I haven't seen a resolution by then I'll try them this afternoon.
Yeah, it's not jamming. Will turn fine with the load I'm placing on it. I'll look later, but I didn't see anything other than "setRaw" and "setPosition".


EDIT: Thanks everyone for their help, it turns out the PWM was initializing correctly even though the module was not in the right slot (?!?!). I moved it and now it works

Last edited by sjspry : 26-01-2011 at 16:56.
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


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

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