Hello group,
I am new to Arduino, like most I have purchased a couple Arduino's, and some different shields. I have play a little bit with sketches, read lots etc
My project is a remote antenna tuner. If you didn't guess I am a ham. The antenna is a 33' vertical, but in order to make it a multi band HF antenna i need a means to remotely tune the antenna. the RF matching circuit is a going to be a Pi-L network. the components are 1 variable inductor, 1 vacuum variable capacitor, a couple fixed value capacitors, and a couple fixed value inductors.
My plan is to switch in the fixed value components as necessary. And change the value of the variable capacitor and inductor I plan on using a couple bipolar stepper motors. The tuner is attached to the base of the antenna and a control cable is run the house.
So what I need to learn is how to write an arduino sketch that is capable of the following
Control two stepper motors
switch 4 relays
display the value/position of the stepper for for each of the variable componets, the number of each fixed value components switch into the circuit.
ie the LCD display would read something like this
Var L 123 Fix L 1
Var C 123 Fix C 2
this would reflect the position of the variable inductor (L) and tha only 1 fixed inductor was switch in, and the position of the variable capacitor C and the amount if fixed capacitance added in.
One of the LCD shields I have has the 6 buttons the go to the A0 input on the Arduino. if I could make it so two control the Var L and two for the Var C (up and down etc), two to switch in the two fixed inductors and fixed capacitors.
I know that I will have to put limit switchs in both the variable inductor and variable capacitor. to prevent making to many turns.
I was hoping to find out if there was a way for the arduino to recall the steppers last position when powered on and to build into the sketch the max number of steps that the motor could take before reaching the physical limits of the variable components.
the tuner will be manually operated to achieve the best match.
Ok that is a brief over view of my project. I have never written any code or sketches on my own. this is a learning project for me.
Eventually I would like to make this an auto tuner, where it will interface with the radio to get its frequency data, and a VSWR meter to measure the return loss and then building into the sketch the the ability for the tuner to automatically tune it self.
your in put is needed, thank you.