ok, first off, yes i am completely new to this type of thing. i have verry little experience with programming languages and electrical engineering. so if something i say seems a little off, PLEASE dont hesitate to point it out &/or enlighten me with the correct terminology or information.
now that thats out of the way. my project...
what i want to do is create a dual axis solar tracker for mobile/portable installation of solar panels (eg. rv rooftop, trailer rooftop, or truck bed installations.
what im looking for:
a way to control a 360 deg. rotational x axis (stepper motor or servo) with 2 Photoelectric Sensors.
a way to control a 180 deg. pivot y axis (preferably a Linear actuator) with 2 Photoelectric Sensors.
a way to store a command for "standby" (essentially "return to home if {condition} is met" kind of thing.)
now i have been researching the forums, and i have found a lot of great ideas that have helped me "flesh out" my project on paper. im thinking of using an UNO board with a proto shield to start my project. the only thing is, during my research i noticed that the UNO board really only safely runs ~6V DC. And the equipment im using runs on ~13V DC.
i would be powering the stepper motor/servo & linear actuator with the power from the battery bank, with a 120V AC to 6V DC transformer, so "overnight" power requirements wont be an issue. what i cant seem to get my head around is how to control the equipment AND supply the correct voltage at the same time.
i had thought of possibly using some kind of relay system, however i don't know/understand enough about them to really put one in place.
2nd problem, the programming. i do have some experience with programming languages, Python & Adobe CSS, but not enough that im comfortable with trying to go it alone to try and programing this thing. my basic idea was something along the lines of
code(or how i think it should work in my head anyways):
"automatic operation"
read voltage of PE sensors 1&3 note: reads voltage of PE sensors for x axis /note
read voltage of PE sensors 2&4 note: reads voltage of PE sensors for y axis /note
compare voltages on sensors 1&3, 2&4 note: compares voltages for sensors on both x&y axis's
if voltage on sensors 1&3 don't match, then adjust x axis to balance voltage, else do nothing note: duh /note
if voltage on sensors 2&4 don't match, then adjust y axis to balance voltage, else do nothing note: duh /note
"automatic standby"
if total voltage on all PE sensors is less than "X", then return to "home position" note: sets panels back to a flat position in which the x axis points "north" or 0 Deg. (eg. front of the trailer/rv/truck) and y axis points "south" or 0 Deg. (eg. back of trailer/rv/truck) /note
"manual standby on"
when manual standby is activated ignore total voltage on all PE sensors & return to "home position" note: sets panels back to a flat position in which the x axis points "north" or 0 Deg. (eg. front of the trailer/rv/truck) and y axis points "south" or 0 Deg. (eg. back of trailer/rv/truck) /note
"manual standby off"
when manual standby is de-activated compare voltages on all PE sensors & activate automatic operations to adjust panel from "home position" note: sets panels from a flat position in which the x axis points "north" or 0 Deg. (eg. front of the trailer/rv/truck) to align with solar maximum exposure, and y axis points "south" or 0 Deg. (eg. back of trailer/rv/truck)to align with solar maximum exposure. /note
/code
and yes i realize that this "coding" ,if you could even call it that, is very simplistic and probably would not yield usable results.
so any helpful advice on how i would program this using the arduino language, or getting the motor/servo & linear actuator to run off the UNO board without frying it with overcurrent/overvoltage would be greatly appreciated.
I thank you for your time
Brent.