Hello everybody. I am in need of some assistance with editing the firmware to

Hello everybody. I am in need of some assistance with editing the firmware to operate my motors correctly. They are 4.2v 1.8degree step 1.5a. They are wired correctly, but when i hit the home button or move button the motor stalls. What voltage is sent through to the motor? Is it definable? If not does that mean these motors will not work? Or will turning down the current to some other value make them work? If so how do i calculate that value?

Thanks.

I think you just need to setup the 1.5A on each motor con the config but it depends if you are using a board with integrated drivers.

Yeah the current config file has the current per motor set at 1.5a. I am using the smoothieboard with the on board drivers. Forgot to mention that. Really tired was up most of the night trying to get this stuff to work.

Try moving slowly, you might have your steps/mm set wrong. If you send for example G0 X10 F100 it should move your X axis by 10mm.

I believe steps per mm will only adjust the pulses to the motor, which if they are the wrong valued pulse it still will stall. Default config is 80 steps per mm.

I would make very sure that the stepper cables are connected in the correct order. That most certainly would make them stall. I have done it myself. If current is correct that would be my best guess

Do you have to use all 3 wires on the end stop switches? How are they supposed to be wired? Because i think i just ruined my board. Just set xmax pin straight to ground through the switch. It set the trace on fire next to the large cap and chip next to the mosfets. I am guessing that was the 1k pull up resistor chip. Which is most likely fried. Is it possible to still use the board? Can i just redefine the min endstops to be the max endstops and thus avoid the burnt section?

I don’t have a smoothieboard but a compatible smoothieware so I can be sure but I can tell you that I have connected the end stops in all possible combinations and nothing happened. I don’t think much current goes through that since it’s just a mechanical sketch but could be very wrong. Maybe @Arthur_Wolf ​ can clarify

Its times like this when i wish these boards were made with replaceable components. Smd is great and all for low profile but not good for replacement. I hate having to buy new boards because one little chip goes poof.

You can surely fix it. If you know how. Even if you don’t know it’s a good place to start.

I found what i did wrong with the switch. I transposed xmax with the 5v side. That is why it fried. I thought i had moved ground to the right pin, and technically i did, but i didn’t move the other pin to the correct side. Mrrrrr

Is this the reason the motors where stalling or this happened after?

This happened after. I was looking over the board and found my switches were wired nc through signal to 5v. Thought that might be my problem so i dug out the wiring diagram and changed the pins in my plug. But only changed the signal to ground. My wires were made by someone else who doesn’t know anything about color codes for wiring, black is always ground (which was wired to signal, i moved to ground). The other wire is yellow and was wired to 5v, i didnt move this because i didnt double check to see that it was actually in the wrong spot. Instead my brain said “black is next to yellow now it is hooked up right.” But it was backwards. Now all i get is a high pitch hum from the motors. But the switches do turn it off when you trigger them so at least they are working now. The are wired to min. Before all this mess with the switches the motors did turn of about a 1\4 turn then stall, but i think they stalled because the swtich was wired signal to 5v. And firmware said signal to ground. So firmware says default signal to ground (says to add an ! To make it NO signal to ground.) and switch is wired nc signal to ground.

Beta_min_endstop 1.26^
Beta_max_endstop 1.27^

These lines define the pins right? So i can just swap these numbers to swap the pins right?

Beta_min_endstop 1.27^
Beta_max_endstop 1.26^

Hurrah turning steps per min down allowed the motors to turn. Switches work fine on the min setting. So maybe the board is still usable. Going to try hooking up on the max side to see if it will work.

But you had 80 spm, it’s way low

80 steps per mm, turned the speed rate down to 300mm per min. That is what did the trick. Now i should be able to change steps per mm to 2700.

Now i just need to know why after hitting the endstop it doesn’t bounce and stop, and shut off the motors.

Hmmm nope. Turning steps per mm back up to 2700 stalls them. I wonder what the max steps per mm are for these motors.

Steps per meter need to be set to the correct amount of movement in real life like @Richard_Marko ​ said before. You don’t set a max, there should be only one number based on your linear motion system look here http://prusaprinters.org/calculator/