The Combine Forum banner

1 - 8 of 8 Posts

·
Registered
Joined
·
11 Posts
Discussion Starter #1
Hello,
I am a French farmer and I have a lot of interest in Agopengps.
I thank you all for the help and support provided, you are really great.

Unfortunately I have a lot of trouble with English.
I already have an operating system, but I want to drive a standard servomotor which itself will order a hydraulic distributor (manual originally).
I can not find on the forum if someone has already tried this solution.

I of course try to connect a live servo on the PWM output, the servo moves annarchically playing with the pid, but no good result.
Would you have any advice or arduino code to offer me?
In advance I thank you.
 

·
Registered
Joined
·
11 Posts
Discussion Starter #3
ok for the wires 2 are used to feed the servo, only 1 son is used for the signal pwm
Can you give me a direction of the lines to modfier to change the pulse length please?
 

·
Registered
Joined
·
63 Posts
What code are you using?
But in the end you have two possibilities:

  • Set PWM frequency to 100hz (every 10ms a pulse), and the duty cycle (assuming 8 bit) from 26 (-90°) over 38 (neutral/0°) to 51 (90°).
    I think the easiest modification (before output calculate the new pwm: newPWM = originalPWM / 21 + 38 -- assuming originalPWM is -255 up to 255, if 0 to 255 you need so multiply with -1 in one direction), but limited resolution.
  • Change the frequency and duty cycle dynamically to generate a good signal. More work.
 

·
Registered
Joined
·
24 Posts
Hello Farmtek,

I also and try to run Agopen GPS, when I've time ...
For instance I'm a bit stuck with the RTK, particulary with the antennas.
For servo motor, you need to efresh the pulse at leat every 20 ms.
Positive pulse = 1.5 ms -> -45 ° (CW)
Positive pulse = 2 ms -> 0°
Positive pulse = 2.5 ms -> +45° (CW)
Do you have completed the whole system, is it working well ?
Best regards from France
Where are you from ? me close to Arras
francois
 

·
Registered
Joined
·
11 Posts
Discussion Starter #7
thank you francois I will test in the WE.

for the part RTK I use chips UBLOX neo M8P and F9P associated with Xbee sx 868 (authorized in France) at home it will be the xbee pro 900.
The antennas for the M8P are talysman TW3742 L1, for the F9P I use antennas aliexpress L1 / L2 / L5 which costs 130 € and works wonderfully
I made my boxes in 3d printing
If interested I will join you photos and links
 

·
Registered
Joined
·
11 Posts
Discussion Starter #8
I have several tests but still impossible to directly control a servo motor with the PMW signal of the arduino.
Someone already try?
I can not find the lines to modfier in the arduino code ...
 
1 - 8 of 8 Posts
Top