I am looking for an arduino (nano) mixer library for RC futaba (or other brand) servo to control X-rudders on RC submarines. I am designing a new RC model submarine based on the SSK French-Spanish Scorpene/S-80 submarine. This type of submarine I am modelling (S-90) has the new submarine X-rudder configuration. The SubModule has an accelerometer connected between the radio RX and the two rudder servos to control the submerged pitch of the submarine.
I was very grateful if someone could assist me programming this software and/or could tell me where can I get that library (V-tail for planes do the same function)
Excuse me, I was on trip last days. Yes, I can read the data from the receiver channels in my Arduino Nano. There are some programs about V-tail over there but they produce a lot of noise in the servo actuating arms. All I need is a simple software code to mix both rudder channels to prevent that disturbing noise.
ModelSUB2000:
Yes, I can read the data from the receiver channels in my Arduino Nano.
That is probably the hardest part done.
Can you explain how the mixing is supposed to work. Suppose you get a value of 20% from one input and 70% from the other what should the outputs be? (I just used percentages for illustration because I don't know what actual numbers you get)
I use two standard servos and a Futaba transmitter. Servos are connected to rudder by actuating rods in the following sequence:
Dive or surface motion: Both servos proportionally work in opposite direction pushing the rods to have the rudders in X up to dive and X down to control the pitch and surface or dive the submarine
Starboard or portboard motion: Both servos proprotionally worh in the same direction pushing the rods to have the four rudders to the right or left side orientation to control the yaw and turn right or left the submarine
ModelSUB2000:
What is your recommendation to read the two servo channels and prevent the servo jittering (or servo noise)?
You will have to explain what your code snippet is supposed to do. It seems to be making 5 readings and adding them - why? And what else is it trying to do?
Neither am I clear what your problem is? Is it that the input values are showing jitter? OR, is it that the actual servo movements are showing jitter?