Summary of Solar Tracker Relay circuit using Arduino
The article discusses controlling motors and a linear actuator for a solar tracker using relays instead of H-Bridge circuits due to difficulties with motor reversal. A 4-channel relay shield powered by Arduino's 5V is utilized to switch the motors on and off while a separate 12V DC power supply drives the motors. The relay module allows for forward and backward motor control on two motors, with adjustable speed via supply voltage. A circuit diagram and connection photos are provided to assist in setting up the relay-based motor control system.
Parts used in the Solar Tracker Relay Circuit:
- Arduino microcontroller
- 4-channel relay shield/module
- 12V DC power supply
- Motor(s)
- Linear actuator
I’ve reached the point where I need to think how I’m going to control the motor & linear actuator for my solar tracker.
Things to consider –
Must be able to go forwards and backwards – so that makes 4 channels, 2 for each motor.
Must be able to provide enough power to drive the motors.
Originally I looked at an H-Bridge Circuit, and I did buy one, but I had lots of problems with getting it to reverse the motors, so I gave up.
I’ve now decided Relays are the way to go.
I bought this relay shield from Ebay for about £6.
It’s 4 channels and is very well built.
Relays are easily driven from the 5volts off the Arduino.
Here is circuit diagram for the 4 Channel Relay module.
It’s pretty easy to connect up.
The arduino supplies power to the relay switches, but not the motors.
You need to connect a power supply to the other side of the relays. I use a 12V DC power supply, but you could use whatever you like.
Tip! – You could alter the voltage of this power supply to speed up or slow down your motors.
Remember – If you want a bigger diagram, please fill out your email address on the left and I’ll happily send you a larger version of this image plus loads of others.
Here you can see a picture of it all connected.
There is only one motor connected as I was testing at this stage
For more detail: Solar Tracker Relay circuit