The Shop > Electronics & IC Programing
Arduino programming, Mega 2560 ADK
Dawai:
Gecko "Unkillable" vampire drive 203.. current adjustable from low to 7 amps by resistors in between the last two terminals.. I have two in my bridgeport now. The ancient 201's are now in the plastic 3d printer. THEY have excellent explanations of their drives, general principles and how to make it work in documentation on their website.
This new style drive has "opto isolated" step and dir inputs, positive pulse, will work on a 2ms waveform.. so it will work direct connection to the arduino Uno's pins. (less current than a LED on a pin)
I figured out the sainsmart-DF robot lcd-keypad terminals, posted a actual picture of the device and point to point terminations. HOW more simple can you get? ON the UNO arduino, pins are the same numbers on the mega I have here.
Posted is the terminal designation list on the 203 gecko drive.
Looking at Mike's divider, he may need at least a 400oz motor.. they are $65 on gecko's site.. or $35 off ebay.. beware.. the drive "power" on ebay are jokes.. they laugh, while you wonder why the motor won't pull the load.. (vacuum cleaners, air compressors, they lie about actual hp too)
'******************* cut and pasted drive information ***************
G203V TERMINAL WIRING
The G203V uses a 2-piece modular main connector. The connector is split in two pieces; terminals 1 through 6 (power supply and motor leads) and terminals 7 through 12 (control interface). Each can be removed separately by pulling the connector body upwards and off of the mating header pins on the G203V. The connectors must initially be removed to mount the G203V to a heatsink or chassis.
TERMINAL 1 Power Ground
Connect the negative (black) lead of your power supply to this terminal.
TERMINAL 2 Power (+)
Connect the positive (red) lead of your power supply to this terminal. It must be between +18VDC to +80VDC.
TERMINAL 3 Motor Phase A
Connect one end of your “Phase A” motor winding here.
TERMINAL 4 Motor Phase /A
Connect the other end of your “Phase A” motor winding here.
TERMINAL 5 Motor Phase B
Connect one end of your “Phase B” motor winding here.
TERMINAL 6 Motor Phase /B
Connect the other end of your “Phase B” motor winding here.
TERMINAL 7 Disable
This terminal will force the winding currents to zero when tied to the step and direction controller +5V.
UNO Pin 3, LCD Shield = TERMINAL 8 Direction
Connect the DIRECTION signal to this terminal.
UNO Pin 2, LCD shield = TERMINAL 9 Step
Connect the STEP signal to this terminal.
UNO Pin next to 5vdc bottom LCD shield = TERMINAL 10 Common
Connect the controller’s GROUND to this terminal.
TERMINAL 11 Current Set
Connect one end of your current set resistor to this terminal.
TERMINAL 12 Current Set
Connect the other end of your current set resistor to this terminal.
POWER SUPPLY WIRING
TERMINAL 1 Power Ground
Connect the power supply ground to term.1
TERMINAL 2 Power (+)
Connect the power supply
Dawai:
I connected this to my plastic-3d printer panel sitting here in the floor. (wired a female db25 plug to a terminal strip, plugged the cable in) I was amazed, I had ran the motors, panel through Mach3 cnc software and the PC.
With the 10x multi-step resolution on the gecko 201 drives you can hardly see the motors moving. (10 x 200steps per rev) POWER is such you can't hold the gear pulley, but.. painfully slow. Looking online, most all the 3d plastic printers use a different processor. Use 1x single step, or 2x half step polu drivers.
So I cleaned the code up some. THE lcd "timed screen update", the lcd driver running in the back ground, had a 1 second per update, it was enough to "change the pitch" and stutter the drive when it took the time to write to the parallel screen update. I changed the screen print to "moving" while it is in motion and abandoned the update. I also moved the "if" statements for variable "limits" inside the Button statements where it would only be ran when data is entered and not every loop.
Possibly the "keypad button subroutine" is slowing this way down, as the F-keys used to in GW BASIC, it searched for a "Fkey" in between each line-statement.???
The simple stepper driver has a 1000 steps per second limit it says on the site.
I have been programming these Arduino's for two weeks now, some learning from everyone in the process. I felt pretty whipped at bedtime last night. I stuck the "parallel" cable back on the pc, the motors spun like 2,000rpm in Mach3.
I would not say this is a total failure, it has been a learning experience, but is pretty poor final results in two days work.
tom osselton:
Don't worry about it I'd still be looking at it scratching my head! I've never played with code or any diodes, resistors, or cap's but will eventualy make a little cnc machine.
Dawai:
Yeah, I've hung my back up today, too much, started at 8am, it was 16F..had ice in my beard at 10:30 when I came in first time. (cleaning up the shop and yard)
CNC for newbies.. go to Mach3 download the mach3 support manual, read the description, HOW it works, it explains everything from "Cartesian" coordinates (square, up, down, left, right fore-back) movements. Another good place is geckodrive.com and look at the literature there.. he also explains well.
These new cncs that make circular polar moves in all directions just confuse me. I tried to figure out how to code a gcode file.. was even more confused. While working for a local company on a welding robot program, you just take the pendant and "trace" your desired route, if you want to modify a point, just run the movements to that step, and add, subtract distance there on that point and it recalculated everything for me.. That was a tig welder that used some kind of copper looking powder as filler metal.??? I didn't get to slow down there long enough to learn much. Running through breaks and lunch. I wore out a pair of boots in a month.
I'll rewire a board to run 4 tip120 transistors, it'll be a full step drive, do a pwm for current limiting. Been so long since I fabbed something I'll have to research all the data sheets again.
Navigation
[0] Message Index
[*] Previous page
Go to full version