Via Chiesa Vecchia, 45
44028 Poggio Renatico FE
Italian CV: https://goo.gl/p4iPo8
About not-really-continuous rotation, I suppose that you are right, I hadn't the patience to wait how many turns would 10000 step last (a little less than 5 full 360° rotations I would say). All you need is trying with higher values. As long as this was just a demonstrator, "continuous" just meant "several rotations".
If you need actually continuous rotation, it can be surely done, it suffices to enter a loop where you continuously move it one step forward. But to implement a break in that loop I would have needed an entirely different program structure, while in fact I wanted the main loop to constantly check for keyboard inputs and act consequently to the five commands.
I also found an old thread about the same issue, but I haven't checked whether or not this applies to the specific stepper we are talking about:http://forum.arduino.cc/index.php?topic=248161.0 - also in that case the program would need significant modifications.
I don't know why the "guillemets" angle brackets don't print on your emulator - as long as they are purely esthetical you may well omit them or substitute with single quotes.
Hi Adam, I added a few more pictures and a few lines to the "Story" section, that should clarify the answer.
No, I didn't exactly reproduce the circuit in the Fritzing illustration: in fact, I used pins 4,5,6,7 (see photo) instead of 8,9,10,11 as in the Fritzing picture. You can see that the software sketch defines motor pins of the stepper controller as follows:
#define motorPin1 4 // Blue - 28BYJ-48 pin 1 (1N1)
#define motorPin2 5 // Pink - 28BYJ-48 pin 2 (1N2)
#define motorPin3 6 // Yellow - 28BYJ-48 pin 3 (1N3)
#define motorPin4 7 // Orange - 28BYJ-48 pin 4 (1N4)
// Red - 28BYJ-48 pin 5 (VCC)
// Blue - 28BYJ-48 pin GND
Yet, the Fritzing circuit is accurate in terms of connections: unfortunately, I found it as a png picture, not as a .fzz file - and wasn't able to modify it with Fritzing as I usually do.
At software level, I had other things attached to the Arduino, that prevented me to use the pins that appeared in the png picture of the circuit.
If you use the pins as they appear in the fritzing illustration, you should define consistently the variables motorPin1, motorPin2, motorPin3, motorPin4 to make them point to the pins that you decided to use.
Thanks Darrell - a welcome suggestion!
Thanks, Darrell! You hit the nail on the head. Yes, I did in fact have problems to keep the dip switches firmly aligned. Some kind of glue (maybe silicon, that can be subsequently removed) is needed, especisally if you have the intention to change ROM content frequently. I myself will glue the dip swutches in place in a few days. About the AGC, it was already resurrected, both physically and digitally! Here are the links: https://www.livingspace.earth/home/2018/8/for-future-generations and https://www.ibiblio.org/apollo/
Or connect with your social account:
New here? Create an account