|
Post by clyevo on Oct 10, 2015 11:38:23 GMT
Mitch, how in this case should he position the sensor, the norm is sensor at 0 degree is the arm pointing vertically downwards (south), and 180 degree is pointing exact vertical upward (north), should he position the sensor as usual or can he position it with 0 degree facing southwest and 180 degree facing northeast? Sorry for the nomenclature, i might draw a picture but on mobile now. Thanks
|
|
|
Post by Mitch on Oct 11, 2015 5:03:35 GMT
You don't have to set the midpoint at 30 degrees like I did, but for both cases : Set the arm at a position that you want and then set the sensor at your desired voltage for that arm angle. Since each sensor is the same and provides feedback in only one direction, one sensor in the pair would read 0v and the other would read 5v in max positions. i.e. All sensors read a nominal 2.5v in the middle position.
|
|
|
Post by capacitor on Dec 13, 2015 2:52:00 GMT
Design update
|
|
|
Post by capacitor on Dec 17, 2015 14:04:18 GMT
I receive the board finally! The connection from Ian soft to the main board is ok. but the servo is not working. I upload the configureation file of the Ian and the picture. Hope you can help me to check. Thanks~~ 6dof - default.zip (2.98 KB)
|
|
|
Post by tronicgr on Dec 17, 2015 19:31:16 GMT
Hi,
You need to move the jumper to S2 and add external power supply 5v for the servomotors on the pololu power input( next to the servo connectors).
Thanks Thanos
|
|
|
Post by capacitor on Dec 18, 2015 14:11:38 GMT
I set the mode to S2. The red indicator on the main board is flashing, and the indicator on the servo controller board is always green. If press the left or Right bottom on the main board, the servo is moving.
The following is the configuraiton file, is that correct? =============================
; ; Configuration file for BFF Motion Driver v3 - 6 DOF, for visually enclosed hexapod type platforms only ;
; This parameter MUST be left at 000 VALim2=000
; Driver Revision = 3 for 6DOF driver Drvr_Rev=3
; COM port and Baud rate for cue output ; Output is 8 bit, no parity, stop bits 1, flow control off ; Output Mode is either BIN, HEX2 or NONE for the 6 DOF driver
Port=COM3 Baud=9600 Mode=BIN
; Number of data sets to run before sending motion data to output Nsets=100
;Platform Type, =4 for Stewart hexapod platform ;缺省值为4,改为5 Rig_Type=5
;Hexapod nominal real dimensions (need be approximate only) ; ;Pitch circle radius of upper actuator end connections - mm Rad_u=82.5 ;Pitch circle radius of lower actuator end connections - mm Rad_b=96.9 ;Vertical height of upper connections above lower connections when actuators are at mid stroke position - mm H_mid=109.3 ;Angle subtended by the lower end connections of an actuator pair - degrees Ang_Sub=63.6 ;Actuator working stroke - mm (actual stroke that matches the working electrical feedback range) Act_Stroke=18.5 ;Crank arm radius in mm, if there is no crank set =0 (ie for linear actuators). Must be greater than 0.5 x Act_Stroke Crank_Radius=18.5
;Height of pitch and roll center above upper actuator picth circle - mm Rot_Height=10.0
; The actuator working stroke length in 0-255 position feedback scale FALim1=200
; The midpositions of the actuators in 0-255 position feedback range PitchStart=127
; The %tage of actuator stroke length of the start/hold position VALim1=10
;The proportional of full movement to actually use for each DOF - in %tage of full range ; The %tage of range the Pitch cue can use FALim2=75 ; The %tage of range the Roll cue can use LALim1=75 ; The %tage of range the Heave cue can use LALim2=50 ; The %tage of range the Surge cue can use SU_prop=75 ; The %tage of range the Sway cue can use SW_prop=75 ; The %tage of range the Yaw cue can use Yaw_prop=50
; Pitch Cue Calculation Settings
; Scaling factor to be applied to raw forward accelerations ; When aircraft is on ground FaScaleg=0.760 ;When aircraft is in air FaScalea=0.760 ; Time constant for low frequency isolation filter for forward acceleration tilt cue ; When aircraft is on ground - secs/rad TCfg=2.0 ; When in air TCfa=2.0 ; Cap level for acceleration magnitude that will be processed for cue in m/s^2 FaCap=3.730 ; Time constant for low pass filter to washout pitch accel part of cue in sec/rad TCpa=4.0 ; Proportion of pitch angle to be added for pitch rate contribution. RateP=0.50 ; Time constant for high pass filter to washout pitch rate part of cue in sec/rad TCpr=5.0 ; +/- Pitch angle cue demand that will give full scale rotation of rig in radians FAMax=0.39 ;Reverse output sense, =0 No, =1 Yes Pitch_Rev=0
; Roll Cue Calculation Settings
; Scaling factor to be applied to raw lateral accelerations ; When aircraft is on ground LaScaleg=0.453 ;When aircraft is in air LaScalea=0.453 ; Time constant for low frequency isolation filter for lateral acceleration tilt cue ; When aircraft is on ground - secs/rad TCllg=0.75 ; When in air TClla=0.75 ; Cap level for acceleration magnitude that will be processed for cue in m/s^2 LaCap=4.530 ; Time constant for low pass filter to washout roll accel part of cue in sec/rad TCla=0.0 ; Proportion of roll angle to be added for roll rate contribution. RateF=0.46 ; Time constant for high pass filter to washout roll rate part of cue in sec/rad TCl=3.0 ; +/- Roll angle demand that will give full scale rotation of rig in radians LAMax=0.48 ;Reverse output sense, =0 No, =1 Yes Roll_Rev=0
; Heave Cue Calculation Settings
; Scaling factor to be applied to raw vertical accelerations before any calcs are done ; When aircraft is on ground VaScaleg=1.0 ;When aircraft is in air VaScalea=1.0 ; Time constant for initial low pass (smoothing) filter of vertical acceleration ; in sec/rad TCva=0.1 ; Exponential factor to be applied to accel values above 1.0m/s^2 to exaggerate response. VaPw=1.0 ; Cap level for acceleration magnitude that will be processed for cue in m/s^2 VaSat=10.0 ; Time constant for high pass filter to washout heave cue in sec/rad TCvp=5.0 ; Scaling factor to be applied to recorded light-turbulence heave accel in air Turb_Scalea=0.0 ; Scaling factor to be applied to generated heave accel for runway rumble Turb_Scaleg=1.0 ; Time constant for final low pass (smoothing) filter of heave cue in sec/rad TCvf=0.1 ; +/- Heave demand that will give full scale heave of rig (in accel units - m/s^2) ; set this to the same value as VaSat VAMax=10.0 ;Reverse output sense, =0 No, =1 Yes Heave_Rev=0
; Surge Cue Calculation Settings
; Time constant for high frequency isolation filter for forward accel for surge cue ; When aircraft is on ground - secs/rad TCSUg=2.00 ; When in air TCSUa=2.00 ; Cap level for acceleration magnitude that will be processed for cue in m/s^2 SUaCap=3.730 ; Time constant for low pass filter to smooth surge cue in sec/rad ; In air ops... TCSU1a=0.1 ; On ground ops... TCSU1g=0.1 ; +/- Surge accel demand that will give full scale movement of rig in m/s^2 SUaMax=3.730 ;Reverse output sense, =0 No, =1 Yes Surge_Rev=0
; Sway Cue Calculation Settings
; Time constant for high frequency isolation filter for lateral accel for sway cue ; When aircraft is on ground - secs/rad TCSWg=0.75 ; When in air TCSWa=0.75 ; Cap level for acceleration magnitude that will be processed for cue in m/s^2 SWaCap=4.530 ; Time constant for low pass filter to smooth sway cue in sec/rad ; In air ops... TCSW1a=0.05 ; On ground ops... TCSW1g=0.05 ; +/- Sway accel demand that will give full scale movement of rig in m/s^2 SWaMax=4.530 ;Reverse output sense, =0 No, =1 Yes Sway_Rev=0
; Yaw Cue Calculation Settings
; Scaling factor to be applied to raw yaw accelerations before any calcs are done ; When aircraft is on ground YaScaleg=1.0 ;When aircraft is in air YaScalea=1.0 ; Time constant for initial low pass (smoothing) filter of yaw acceleration ; in sec/rad TCYa=0.1 ; Exponential factor to be applied to accel values above 1.0rad/s^2 to exaggerate response. YaPw=1.0 ; Cap level for acceleration magnitude that will be processed for cue in rad/s^2 YaSat=2.0 ; Time constant for high pass filter to washout yaw cue in sec/rad TCyp=0.0 ; Time constant for final low pass (smoothing) filter of yaw cue in sec/rad TCyf=0.2 ; +/- Yaw demand that will give full scale yaw of rig (in accel units - rad/s^2) ; set this to the same value as YaSat YAMax=2.0 ;Reverse output sense, =0 No, =1 Yes Yaw_Rev=0
;Runway heave effects ;Slow acceleration sine wave amplitude at takeoff speed m/s^2 RW_Amp_3=0.0 ;Slow sine wave frequency at takeoff speed - in cycles per second (Hz) RW_CPS_3=0.75 ;Fast acceleration sine wave max amplitude m/s^2, set a very small value to effectively disable if platform does not have good high freq response RW_Amp_1=1.0 ;Wheel Diameter for Fast Wave Frequency - m, set at unrealistically large dia to simulate centerline bumps RW_Dia=0.5 ;Reference take-off speed for calcs - knots RW_Tos=100.0
;Trace Output, =0 no output, =1 raw accels & final cues, =2 heave cue calc outputs, =3 pitch cue calc outputs, =4 roll cue calc outputs ;Use for setup purposes only - do not leave on - the processing will eventually grind to a halt as it tries to store all the data. itrace=0
;Flag to indicate whether Booleans are needed, =0 No, =1 Yes, setting to 0 will reduce the processing load slightly (non LAN operation only) Use_Bool=1
;For Remote version, Receiving Port on this machine, defaults to 48001 (for MSFS or X-Plane LAN comms) PortS=48001 ;IP Address of this machine on the LAN IPAddress=192.168.1.68
;Use Joystick input? =0 No, =joystick number for Yes eg =1 =2 =3 etc Use_Joy=0
;Motion Drive data loop sleep time in ms MD_Delay=10
;Process priority Priority=Normal
;Kill, Prefix, Drive and Hold hot keys Key_Kill=Esc Key_Prefix=\ Key_Drive=d Key_Hold=h
; Joystick number for driver remote control buttons, =0 to disable, otherwise set to joystick number on system ; 缺省值为1,修改为0表示不用手杆控制 Joy_But=0
; Kill, Drive and Hold joystick buttons, set any =0 to disable it (these are active only if Joy_But is non-zero) But_Kill=2 But_Drive=11 But_Hold=10
;By actuator or by DOF scope output, =0 by dof, =1 by actuator Scope_Mode=0
;Park on sim interrupt mode - this will cause the driver to send the platform to hold position on any detected sim flight interruption Park_on_Int=0
End of File
|
|
|
Post by mhensen on Dec 18, 2015 17:29:27 GMT
that should work.. I am using the default of bff for my mini test .. connected to LFS.. Just set the right ipaddress and port.. for driving I just inverted the sway to get the correct movement it should have I believe. bffsimulation.com/Manual-6DOF/LFS.phpGo to the LFS cfg.txt file (usually in the LFS installation folder). 2.Find the OutSim parameters and set them - OutSim Mode 1 :0-off 1-driving 2-driving+replay OutSim Delay 1 :minimum delay between packets (100ths of a sec) OutSim IP 127.0.0.1 :IP address to send the UDP packet OutSim Port 20777 :IP port OutSim ID 111 :if not zero, adds an identifier to the packet (this is optional)
|
|
|
Post by tronicgr on Dec 19, 2015 4:52:12 GMT
In the BFF config replace this: Port=COM3 Baud=9600 Mode=BIN
With this: Port=COM3 Baud=250000 Mode=BIN2TH
Thanks Thanos
|
|
|
Post by capacitor on Dec 19, 2015 15:10:28 GMT
In the BFF config replace this: Port=COM3 Baud=9600 Mode=BIN With this: Port=COM3 Baud=250000 Mode=BIN2TH Thanks Thanos Thank you! Now the Servo is moving! On the pololu board,the connection is: Servo Power Pin -- Power Servo Pin 0 -- Servo 1 Servo Pin 1 -- Servo 2 Servo Pin 2 -- Empty Servo Pin 3 -- Empty Servo Pin 4 -- Servo 4 Servo Pin 5 -- Servo 5 Servo Pin 6 -- Servo 6 Servo Pin 7 -- Empty In this way , the platform is moving normally. But if I connect servo to Servo Pin 3 or 4, pololu board will error, that is yellow Indicator is always On, and the red Indicator is flashing. ( What shall I do ?
|
|
|
Post by capacitor on Dec 19, 2015 15:11:51 GMT
In the BFF config replace this: Port=COM3 Baud=9600 Mode=BIN With this: Port=COM3 Baud=250000 Mode=BIN2TH Thanks Thanos Thank you! Now the Servo is moving! On the pololu board,the connection is: Servo Power Pin -- Power Servo Pin 0 -- Servo 1 Servo Pin 1 -- Servo 2 Servo Pin 2 -- Empty Servo Pin 3 -- Empty Servo Pin 4 -- Servo 4 Servo Pin 5 -- Servo 5 Servo Pin 6 -- Servo 6 Servo Pin 7 -- Empty In this way , the platform is moving normally. But if I connect servo to Servo Pin 3 or 4, pololu board will error, that is yellow Indicator is always On, and the red Indicator is flashing. ( What shall I do ?
|
|
|
Post by tronicgr on Dec 19, 2015 18:55:23 GMT
Hmm, I don't think it's code related but I can check on my model here. Perhaps something was messed up the pololu servo code part...
Thanks Thanos
|
|
|
Post by tronicgr on Dec 19, 2015 23:28:23 GMT
Nope, checked with my mini servo platform and latest firmware and everything works fine on the servo ports 0-5 ...
Perhaps you have damaged pololu servo controller, or the servos you use are a little off specs. I use Hitec that are the best.
What is the model of mini servos you are using and what voltage you are using to power the servos?
Thanks Thanos
|
|
|
Post by capacitor on Dec 20, 2015 1:44:33 GMT
Nope, checked with my mini servo platform and latest firmware and everything works fine on the servo ports 0-5 ... Perhaps you have damaged pololu servo controller, or the servos you use are a little off specs. I use Hitec that are the best. What is the model of mini servos you are using and what voltage you are using to power the servos? Thanks Thanos The servo type is SG90, the power is from PC USB port , The voltage is 4.9V
|
|
|
Post by tronicgr on Dec 20, 2015 5:53:50 GMT
You cannot power the mini servos from a USB port, USB can deliver max 500MA!!! The mini servos can draw up to 2.5A power while moving!!
Use external Power supply!
Thanks Thanks
|
|
|
Post by capacitor on Dec 20, 2015 13:35:09 GMT
Wow~~~ Yes, It's working now~ I change the USB power of PC to a power Bank, the USB Power bank support up to 2.1A Thank you!
|
|