Rotation the motor with Arduino Motor shield

Hello
I'm developing a project for rotating solar panels.
Except that I'm better at mechanics than arduino :frowning:

I bought :

  • Arduino UNO
  • Arduino Motor Shield fixed on top
  • Unipolar motor
    Datasheet
  • power supply 12v DC max 24w

I connected the 4 phase wires to the corresponding letters in the datasheet.
And the 2 coms to the GND of the motor shield.
power supply (+) on VIN (-) on GND with 2 coms
Is there a mistake?

200 step motor (1.8°)
I would like to create a programme that runs the motor

Motor in initial position at 8am [0°].
Then 10° every hour at once
9h[10°]
10h[20°]
11h[30°]
12h[40°]
13h[50°]
14h[60°]
15h[70°]
16h[80°]
17h[90°]
18h[100°]
19h[110°
20h[120°]
9pm back to [0°] to start again the next morning
Waiting 13 hours = 8h next day => restart programme

All this will of course be improved as the sun shines and the programme is implemented, but the aim is to understand how the programme works.

For my tests, we can change the hours to minutes to see how well it works.

Can anyone help me?
I've only found this link and it's causing the cards to heat up and the engine not to run at all.

Thank you very much for your help

show

how do Arduino board know a time? will you power system on every morning at 8 AM?

You will need to add a RTC shield, DS3231 or DS1307 :slight_smile:

I don't know :frowning:
The aim is to start the programme one day at the time I want.
Doesn't the button on the arduino motor system start the programme automatically?

I start the 1st day at 8 o'clock and then it's on an automatic 24-hour cycle that never stops.
From 9pm in the evening to 8am in the morning, I make it wait for 13 hours and the programme starts again in a loop.
Is this possible?

I don't need the time as a world time, just the waiting time between trips.

It will make an automatic cycle of 11 trips + 13 waiting hours = 24h

well, it is possible. but i am not sure if this motor shield is suitable for unipolar connection. probably you can leave this two middle point wires unplugged and using motor as bipolar. then test example sketch for stepper. then if it work adapting sketch to your purpose.

I can remove the com cable but then what do I do?

I look

but only for DC motors

yep, not suitable for your setup.

what com cable do you mean?

Yellow and white for the bipolar past as you said

But I don't know which programme to use now

I read this

but it does mention stepsPerRevolution, 8, 9, 10, 11

But with Shield Moteur
• Broche n°3 en sortie Digitale PWM
• Broche n°11 en sortie Digitale PWM
• Broche n°12 en sortie Digitale
• Broche n°13 en sortie Digitale

Does Stepper.h take these new parameters into consideration?

Use a servo.

The panel is 200€

Servo is too expensive for my projet

You would need to clarify your answer

Which stepper motor do you have exactly? The datasheet of your link in #1 contains 3 different steppers. Not all are suitable for your motor shield.
The shield ist for DC motors and voltage controlled bipolar steppers.

N.B. Your shield uses a very old H-Bridge, which produces very much power loss.

yes, good, remove them.

Ref : 1805283 on document

what should I use?

A unipolar will work as a bipolar? I don't understand how.

Now my arduino is no longer recognised by USB PC, yesterday it was very hot when I had the 12v power supply plugged in + 5v from the pc.
I think I fried it

1 Like

How do you have the panel mounted so the weight is supported by a suitable thrust bearing? And how are you making the motor move the panel?

OK, this one should work with your shield. But I suppose if you omit the com wires and use it as bipolar motor you may need 24V ( two coils in series ).