Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "stepper"
-
!rant
Four hours of work.
You think you write spaghetti code? I write spaghetti wires.
H-Bridge dual motor tester for stepper motors.
Speed is controled by pot.
H-bride are L293D.
My third board, and the first that won't go to the trash.
Question. With the baterry off the motor continues spinning with the 5v from arduino.
My question is, is the L293D suposed to do that? Or do I have a short circuit somewhere that is giving power to the motor? Meaning it can burn the arduino.
Runs a 12v stepper from a CD-Rom driver perfectly at 5v from the arduino and actually starts to act strange when I turn the 12v on. (maby the circuit it's adding 12v + 5v?)24 -
3 hours making this beautiful circuit to test stepper motors.
Arduino nano + L293D + pot
Fucking bitch has a short circuit somewhere and can't find it out...
Made the same project in a breadboard in 15 minutes and it's working.
Fuck hardware bugs.
Cutted in the middle of all connections, took out excess solder... Nothing.
Fuck it, moving to the next ideia20 -
FUCKKKKKK
FUCKKKKKK
everything mounted, was going to connect Z and motor...
And the fucking X stepper isn't working...
The plastic piece that made the steps is overused and can't handle the weight :(22 -
Thanks guys for the help in the last weeks.
This is what I was so hard trying to print.
Btw... reminder to self, plastic expands. That's why the stepper has duck tape instead of screws lol33 -
!rant
Arduino CNC
Hey guys.
Since I mostly see frameworks to use with G-Code in Arduino CNCs I'm gonna make my own framework, where you don't need to know G-Code and the code is executed by Arduino code.
The code would include a template to define steppers steps and such.
Would include a library to work with different stepper shields.
Would this interest to anyone?
I'll provide a full example with stuff to learn for any amateur working with CNCs or that want to work with one. If you're not interested, thank you for reading, you can stop here.
Ex:
X(10);
Y(-5.5);
XY(6,7.5);
Z(-10);
This framework would only use incremental coordinates and will work for basic forms, drilling and such.
<Tutorial>
Coordinates.
Coordinates can be relative/incremental or absolute.
Lets say you have a square with 10mm, (top coordinates: (X=0,Y=0) to (X=10,Y=10).
think your drawing this square.
First line:
X0, Y0
Absolute: x10,y0
Relative: X+10
Second line:
A: x10,y10
R: Y+10
Third Line (...)
Absolute is a fixed point (coordinate)
Relative is a distance to move (not a coordinate but the distance and direction)
</Tutorial>
So, to cut a square with a TR10 (end mill with radius=5, diameter=10)
<code>
// You don't place + in positive values
// The tool always cut in the direction of the tool rotation, meaning on the left of the material.
Z(10); // Security Distance
XY(-5,0); //Compensate the diameter of the tool in radius
Z(-1); // Z=0 is the top of the block to mill, in this case. Z=0 can also be in the bottom
Y(15); //Second Point
X(15); // Third Point
Y(-15); // Forth point
X-15; // Fifth Point
(repeat)
</code>
Now we have a block with 1mm depth. If you use a while or for you can repeat the sequence for x=n passages, change the value to Z for the depth and your done.30 -
The first filamment for my 3D printer had to end at 4h30 in a 5h30 program. FUCKKKKK
Tryed to replace while pausing the printer, but the fucking merlin doesn't reset the extruder stepper motor, so... when I resumed the print it wouldn't extrude filament, because the position of the extruder was wrong....
Well. At least printer time is cheap... I'll just print all the pieces and leave it until tomorow night printing lol3 -
Recently bought an Adafruit Industries board which controls stepper motors over i2c. It has a Phython library, but my code is in C++. Decided to convert the Python code to C++ to get started quickly. Behold the magic line that made everything work:
std::this_thread::sleep_for(std::chrono::milliseconds(10));
I can't believe Python's ridiculous performance is being harnessed to let the field generated by electromagnets in a stepper motor to grow to sufficient proportions to affect movement. Without the said sleep(), the stepper motor just vibrates with my C++ code. Not sure if the library was created with Python's performance in mind, or they simply didn't think about back EMF in electromagnets...5 -
!rant
Hey guys...
It's finally working.
Just needed to upgrade the drivers.
Using RGBL + 3 28BYJ steppers.
Just have one tiny problem and need help...
The resolution isn't right... Instead of moving mms, if I send a move of 64mm (one stepper revolution) it just turns one time instead of moving 64mm... Where are the settings to change this?
Btw this is the best birthday present ever, from me to me :-D also... My parents bought me a 3D printer, waiting for it to arrive... Me happy today31 -
Xcode: took away the ability to manage multiple windows as documents; everything is a half-assed safari browser window that neither works like Mail nor like Safari.
Xcode: took away the ability to have variables in the debugger in separate displays, now it is a single basket of eye-bleeding variable/data spew.
Xcode: took away the ability to modify variable values in the debugger, it's just broken and lets you think you can but reverts the value.
Xcode: took away the debugger's ability to modify the execution pointer. You can't move the current line of execution to the previous line, the line past the current line, nothing.
The same internal human virus that manages the Alzheimers 'upgrades' of macOS Server seems to be managing the Xcode debugger, more aptly named now "Xcode stepper" cuz it makes a lot of motion but goes nowhere fast.1 -
Started with 3D-Printing last year, bought a cheap Creality Ender 2 and upgraded almost everything except the mecahnical parts.
Upgrades include a new Mainboard, stepper drivers, stepper dampers, custom firmware, new printed case, better extruder, OctoPI Server etc.
Oh yeah, and Animu ^^ -
Finally got my multi-page dialog with stepper to have validation on every field based on a schema in a way that doesn’t totally mess up styling and that still collects information from fields from both pages to send the Graphql mutation.
So happy I could cry.