L'avevo intuito cosé, il ponte H devi farlo con 4 transistori.
ho trovato nei commenti:
Jan 18, 2011. 10:35 AM sumatra says:
Your Instructable would be a lot stronger if you explained your circuit and code. How did you arrive at the circuit and the values for the AnalogWrites? Do you really need the transistors? The ATMega can source/sink 40ma, and I'd be surprised if the clock coil needed anywhere close to that amount of current.
Jan 18, 2011. 12:04 PM randofo (author) says:
The value was arrived at because 255 was too much and 100 was not enough. I meant to stick in 127, but put in 124 for some reason and that seems to work fine.
I added an H-bridge because the motor is a single coil stepper and needs to be powered in phase (i.e. you need to reverse the polarity).
TurnTurnTurn(x) is a variable for pausing between steps of the motor, whereas x is the delay time. 1000 is equivalent to one second.
Every day at 11:00, the clock goes into a routine that slows down 80% for 3,600 rotations and then speeds up to 120% for 3,600 rotations and then resumes normal operation.
Jan 20, 2011. 1:36 PM imarcianoloco says:
The H-bridge only amplifies the signal it receives from the control pins it's connected to. Polarity stays the same, so I do believe it would work without the H-bridge, just connect the pins directly to the stepper coil...
Jan 20, 2011. 3:37 PM randofo (author) says:
This is flip-flopping it:
Queste spiegazioni non sono rassicuranti riguardo la bravura del autore di realizzare l' idea carina che ha avuto.
Leo visto che Tu sei quello che é "tornato ai Tuoi firmware". Dimmi se ho scritto giusto riguardante l'ATmega usato coll' oscillatore interno e il quarzo da 32k esterno e di metterlo in sleep.