I like to drive a bipolar stepper motor with an arduino via step, dir and en pins. Similar to this example: https://simulide.forumotion.com/t376-bug-driving-a-stepper-motor-causes-back-steps
However the provided example by TimFisch there doesn't turn the stepper for me at all. I tried to replicate the example myself but have no idea which values would need to be written at which addresses in RAM.
I then decided to use an Attiny44 and just program the behavior myself, however:
1. Sometimes the stepper misses a step at random.
2. I can't get the Attiny44 to work in a subcircuit configuration.
Is it even possible to use micro controllers within subcircuits? Can anyone give me some advice on how to implement such a driver circuit otherwise?
However the provided example by TimFisch there doesn't turn the stepper for me at all. I tried to replicate the example myself but have no idea which values would need to be written at which addresses in RAM.
I then decided to use an Attiny44 and just program the behavior myself, however:
1. Sometimes the stepper misses a step at random.
2. I can't get the Attiny44 to work in a subcircuit configuration.
Is it even possible to use micro controllers within subcircuits? Can anyone give me some advice on how to implement such a driver circuit otherwise?
- Attachments
Driver.zip
- Subcircuit Configuration
- You don't have permission to download attachments.
- (3 Kb) Downloaded 2 times
Driver_Sim.zip
- Simulation without subcircuit
- You don't have permission to download attachments.
- (2 Kb) Downloaded 2 times