In file included from FiveD_GCode_Interpreter.cpp:9:hostcom.h: In member function 'void hostcom::putInit()':hostcom.h:111: error: 'Serial' was not declared in this scopehostcom.h: In member function 'void hostcom::put(const char*)':
I've got my physical assembly done. I've got a Shield attached to my Mega 2560, with the 4 I guess they're stepper controllers mounted on top of that.
But how I wire all this together is less than entirely obvious.
I've got two power inputs � one on the arduino and one on the shield. I think they're both 5V so I guess I can probably just split my PSU and hook that up. ?
This page:
is useful but doesn't answer everything. What I am still confused about is:
- the stepper motor outputs are labelled RBGB, but the cords for my steppers are yellow, black, orange and red.- which stepper gets wired to which output?- the endstop wires are labelled gnd, sig, vcc but on the pololu page they're labelled XYZ(MIN) and there are six of them. Or there are three with six pins each. Either way, I've got twice as many pins as opto end stop connections.- D8 and D9 don't appear to be used for anything. Seems odd to have them, then.
Also, regarding the firmware:
- which is the best firmware to use? How do I configure it?
I tried uploading the Tonokip firmware with the pins settings provided for the Pololu. There was a flurry of flashing lights, and then nothing. If I press the reset button, I get two flashes of the LED. Is that right?
When I try to build the firmware for the stepper controllers, I get the likes of this:
In file included from FiveD_GCode_Interpreter.cpp:9:hostcom.h: In member function 'void hostcom::putInit()':hostcom.h:111: error: 'Serial' was not declared in this scopehostcom.h: In member function 'void hostcom::put(const char*)':
That will do for now, I think. :-)
> I don't think you are doing it right. I'd have to see it to know more. Basically on the PSU you are only going to use the 2 outermost strands of wire, the core is a second ground if I remember correctly. You'll have to measure it with your multimeter to determine polarity.
Thanks. But the issue it seemed to me is how you attach a wire to a cylinder of loose fine strands of wire. It's just that I haven't done this before. I clearly can't just solder a bunch of strands to another wire. Do I crimp something to the outside strands and something else to the inside strands, or what?
> Actually, you could just solder the outside strands of wire to one piece of wire and the inside to another. As long as you use a wire of at lease 22 gauge it shouldn't cause enough resistance to heat up. You'd have to do the math to find out how hot the joint would become but I soldered my ebike together and that system runs at 24v and up to 30 amps, way more than your psu will ever put out. Just twist the wires together on the psu and pick a wire that is of a similar diameter and you should be fine. Also be sure to use heat shrink tubing to insulate the connection to prevent shorts. Other than that it should come together quite easily.
Okay; I think that's good. Thanks.
C.W.Holeman III PHONE:(760) 512-4707
EMAIL: cwhole...@gmail.com
WEBSITE: http://www.cwholemaniii.com