Vdd = Vcc = Vin = V+…ad infinitum. All terms that put very basically come down to “connect external within specified limits power supply here”.
Same goes for Vmot, 24v, 12v….connect the power here. Ground is pretty much the same too.
There are so many variants of these boards that it becomes necessary to use blanket terms and assume knowledge on the part of the reader. In addition, I could have written an article the full length of the magazine, easily, but that can’t happen. Hence a certain level of knowledge has to be assumed. What I did write then gets edited, in which I have no say or input whatsoever.
Switch settings. I set max step current to 2.6 A, erring on the side of caution. So Sw1 Sw2 on. SW3 and S1 off.
S2 to off. Microstepping doesn’t give us much when we are driving a 90:1 worm gearbox so S3 and S4 both off. You’ll have to tell the software you aren’t doing microstepping as explained in the article. No decay setting so S5 and 6 off.
As an aside to this 'LCD no werky' thing, if you get an 'X-Temp' or extended temperature range device, the bottom end of the contrast pot. has to go to a negative voltage not to 0V as usual. I don't know if this pertains to ALL X-Temp displays but did to 4 I was given.
I've been in that hole, and it ain't at all obvious until a severe shufti at the data sheet reveals the pot. goes to -V … not 0V.
Can be a -5V derived from the +5V using a ICL7660 chip
I get it now. Step is pin 2. Dir is pin 3. Enable is pin 11. This non sequential leap is due to the other pins being used for the Lcd interface.
The outputs go low to pull down the corresponding inputs on the stepper driver. So you’ll need pull up resistors but you are then looking for a low condition when the output is “on”.
Posted by Carl Wilson 4 on 13/12/2016 22:27:43:
Hi John,
…
The outputs go low to pull down the corresponding inputs on the stepper driver. So you'll need pull up resistors but you are then looking for a low condition when the output is "on".
…
I think Carl's answer is upside down. (It's a mistake I often make!) Shoot me if I'm wrong:
Digital Pin 2 (STEP) is normally low and pulses high to step the motor.
Digital Pin 11 enables the motor and is always high.
Digital Pin 3 (MOTOR DIRECTION) is normally low. It outputs a single high pulse to reverse the motor.
It's possible to code the Arduino to enable built-in pull resistors if you want to invert the switching logic.
I see that Siemens has developed an "Industrial IOT Intelligent Gateway" that will accept Arduino code and shields. There are 2 models priced at £74 and £160, depending on the features. The aim is to allow hobby and "new engineers" to be able to apply their work to more industrial environments.
Runs a 400MHz Intel Quark (x86) and can support a host of languages (Arduino, Python, C++, Linux etc) and talk comms such as Profinet, modbus etc. Takes mPCIe cards as well as shields, so plenty of IO options.
Cries of horror from some quarters no doubt. Echos of the Bedroom Basic events of the 1980s? But could be quite useful for housing and interfacing Arduino projects for use in real world environments.
Fig.7 in the magazine article and also on the Liming PDF show the digital output pin location with pin 11 next to pin 3. On the Arduino board. It is pin 4 that is next to 3.
There is some comment in the read me file on the liming PDF that the code was changed from pin 4 to pin 11 and that no change is needed in the wiring.
I don't pretend to understand the code, I am a model engineer , not a programmer, but the code still refers to pin 11 motorEnablepin.
Engine Builder – You're right that pin 4 is next to pin 3 on the Arduino board, but once the LCD/Keypad shield is added the pins run 3, 4, 11 etc. The LCD uses the missing pins so they are not available on the shield.
If anyone is interested the motor I chose was this one **LINK** £23.00 including delivery.
Very many thanks for that link! My efforts to drive a motor with this came to an abrupt end when I discovered that my carefully stored 'step-motor' was no such thing. The suitable motor I found online is over £30 plus postage, which was a bit more than I want to spend on an experiment.
One thing I have noticed is that you don't appear to be able to stop the indexer if you accidentally trigger the step function with silly values unless you reset it.
John Stevenson's comment about the undesirability of nested menus on this type of project has started me thinking: an friendlier interface shouldn't be rocket science, if only I had more time…
I immediately recognised your Nipkow discs and televisor. As a child I was obsessed with Logie-Bairds mechanical television system. I tried on several occasions to repeat his experiments, all unsuccessful.
All seems to work step and direction wise but there is a lot of vibration when the motor runs. It also seems to have a sort of two vibration mode, it start quietly for the first part of an action and then vibrates like mad for the second half. Seems to be the same for long or short runs. i.e. if set to turn 5deg the first 2 will be quiet(ish) and the final 3 will try and vibrate it off the bench. If set to 30deg same sort of thing.
Also likes one way better than the other but I think that is just down to the worm engagement. The switches also need de-bouncing a bit more, have tweaked some of the parameters in the sketch but not quite sure if that is the right way? Still at least it functions.
I was thinking of putting my build version, duly acredited of course, on my web-site. Any problems with that?
Thanks Carl, any clue as to the vibration it does this even with the motor detatched. I have read about resonance but don't understand it and haven't come across anything simple to get rid of it. Are there any settings on the driver board that can be tweaked?
I think the paddle switches are a good idea (but I have one wired back to front, just need to swap the leads) I might also bring out the reset button as I have found some modes you can't interrupt.