New user trying to program Uno for plane controls

I am using an Uno to control linear servos (L16-50-63-R) for my heat control, oil cooler damper, and overhead air baffle. I was successful in getting the coding to work for one servo but not sure how to add additional servos to the program. I don't know ANYTHING about it other than some YouTube videos which does help my novice brain much. i used the code form: https://theengineeringmindset.com/arduino-code-simple-servo-control/ to get one to work but not sure how to add the additional servos. The set up is using 10k Pots to control the servo's. It is pinned out as follows (pot/servo): Oil cooler A1/D8, Front heat A2/D7, Rear heat A3/D6, Overhead air A4/D5. Powered by 12VDC to 5VDC "transformer" I appreciate any help for the rookie. I'm honestly just trying to figure out how to get it done and this will be the end of my coding.

  • Welcome to the party.

  • Always show us a good schematic of your proposed circuit.
    Show us good images of your ‘actual’ wiring.
    Give links to components.

  • In the Arduino IDE, use Ctrl T or CMD T to format your code then copy the complete sketch. Use the < CODE / > icon from the ‘posting menu’ to attach the copied sketch.

Hi, @cwelvaert
Welcome to the forum.

Google;
arduino uno multiple servo

Should help.

Tom.... :smiley: :+1: :coffee: :australia:

Welcome!
This project makes me a bit nervous, what happens if it fails and the damper stops responding?

Normally I would agree but all the servos only control HVAC for comfort with the exception of the oil cooler that will provide plenty of early warning if it fails before something needs to be done. Good thought though.

Thank you for the information. I figured out how to convert the pics so I could attach them here to get a better idea of what I'm working with.

The actuators are L16-50-63-6-R: https://www.actuonix.com/assets/images/datasheets/ActuonixL16Datasheet.pdf

Pots are Taiss, 10K, three pin standard pots.

Arduino NANO (my mistake calling it an UNO previously): Amazon.com: Arduino Nano Every (Single Board) [ABX00028-A] - ATmega4809 Microcontroller, 48KB Flash, 6KB SRAM, 20 Digital I/O Pins, 8 Analog Inputs, USB-C, Compatible with Arduino IDE for Embedded Projects : Arduino®: Electronics

Please note that the board at the link you shared is an Arduino Nano Every.

When you write "Arduino NANO", people will assume you are referring to the classic Arduino Nano board. Despite the similar names, there are significant technical differences between those two boards, and those differences can be significant in some cases. So if a helper is providing support under the assumption that you are using a classic Nano, while you actually are using a Nano Every, this may result in confusion.

If you are using Nano R3 Classic, here is some test code for tinkering....

It is becoming even clearer that I have no idea what I'm doing here. If anyone is willing to help me out with the code I am sure I can adjust the values. Please PM me if you would be willing to help out. So far I have spent 18 months trying to get this done...I still don't understand code and can't find anyone in a local HS robotics club or even the local community college that can/will help. Please and Thank you.

Not a good restart, considering people took time to read, resolve and respond. "Help" requires reciprocation.

Did you read/use/adjust the multi-servo sketch in Post #8, as opposed to the single-servo sketch from your link?

Start with clearing up which board you are using.

I’d be suprised if it were legal ( in terms of certification) to be doing this and given you’ve said you don’t know what you doing - you should not be doing it .

You may not even be allowed to do the dismantling you have done thus far . You need to check that out

This is installed on an experimental aircraft in which I anm the builder/manufacture. NO certification required as it is not on a certified aircraft or "Major Alteration." This is where the concept comes from (have tried to get ahold of the publisher of the video with no avail). https://www.youtube.com/watch?v=LQ3j9ygrSyE

xfpd, my apologies if I can across unappreciative of everyone's time. The videos and comments are appreciated but for a guy that doesn't understand code or even "which code format" even the simple stuff might as well be in a foreign language with no google translate. Thanks.

In that case I strongly advise you to make no modifications to your aircraft that involve software that you have had any part in writing or modifying whatever the status of that aircraft. It is simply not safe to do so

I have a hard time trusting a guy calling a servo, a "serval."

I imagine his code starts with...

#include <serval.h>

"Why won't my code comperl?"

Reminds me of ... (gedankenpunkten, not a threat)
"Dur durkr jurb!" https://www.youtube.com/watch?v=sIzivCJ9pzU
"A jorb well done." A Jorb Well Done - Toons A Jorb Well Done - Homestar Runner

The safest and easiest approach is to hire a professional with well-documented experience in both coding and electromechanical control installations, preferably in aircraft.