Page 1 of 1

dissimilar module operation

Posted: Fri Oct 14, 2011 7:35 am
by nimbusgb
I have built a throttle position control module. its more of a 'rate of position change'. Input is a float -1 to 1 in the mid position 0 the output does not change. Moving the input below the mid position ie < 0, and the ouput ( 0 to 1 ) reduces. the further below the mid position one moves the faster the count down. similarly above the mid position the output increases with the rate changing in proportion to the displacement from the centre of the input.

this works
throttle-test.fsm
the test version works
(9.14 KiB) Downloaded 1452 times


but if i control the input with an xbox controller it only counts when the stick is moved to the limit either fully up - 1 input or fully down - -1 input..

x-throttle-test.fsm
but this doesn't
(14.88 KiB) Downloaded 1448 times


I'd appreciate some help on this one.

Re: dissimilar module operation

Posted: Fri Oct 14, 2011 4:32 pm
by nkiernan
Hi Nimbusgb,

I worked on something similar and I'll try and gather up something to post here over the weekend. Are you intending to control servos with this? My intention was to emulate hydraulics for a project (same operation as you are trying to achieve), using the twin joystick from an Xbox controller and servos connected to a Lynxmotion SSC-32 servo board. Never got it completely finished as the servos were always too jumpy (maybe down to cheap servos!).

Re: dissimilar module operation

Posted: Fri Oct 14, 2011 5:22 pm
by nimbusgb
In a roundabout way I am controlling a servo but only because I want to transmit values by xbee radio to a remote UAV platform. There is actually a microprocessor on board the UAV that does the flight control so I'm just sending process values to that system.

It could of course be used more directly which is why I have used a step count of 100 to get from 0 to 1.

Is there a 1khz trigger component or could an astable or signal generator be used to trigger the counter?

Re: dissimilar module operation

Posted: Mon Oct 17, 2011 1:09 pm
by DSP
You will be pleased to here that there is actually a module already inside FlowStone that does this!

Check out the 'Slide' Module!

You could also use the PID if you want proportional control.

Here are both in a project:

Re: dissimilar module operation

Posted: Thu Oct 20, 2011 1:32 pm
by nimbusgb
Excellent thanks