Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   HS-322HD and Digital Sidecar PWM output (http://www.chiefdelphi.com/forums/showthread.php?t=90119)

sjspry 25-01-2011 23:16

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?

ratdude747 26-01-2011 01:26

Re: HS-322HD and Digital Sidecar PWM output
 
Quote:

Originally Posted by sjspry (Post 1008487)
... 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)

omalleyj 26-01-2011 10:12

Re: HS-322HD and Digital Sidecar PWM output
 
Quote:

Originally Posted by sjspry (Post 1008487)
<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.

sjspry 26-01-2011 14:24

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 (Post 1008695)
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 :)


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

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