Open Farghal1 opened 3 weeks ago
Is it flashing briefly when it's booting up?
Message ID: @.***>
No, It's always ON and when the spnEN is connected it's OFF.
how did you wire GND/Signal? 12V/GND? There is a rectifier in most cases, so you would measure against virtual GND
Am Do., 11. Juli 2024 um 10:04 Uhr schrieb Farghal @.***
:
No, It's always ON and when the spnEN is connected it's OFF.
— Reply to this email directly, view it on GitHub https://github.com/openUC2/UC2-REST/issues/79#issuecomment-2222290976, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBE5OCYN3EQKHFBMVB73UDZLY36JAVCNFSM6AAAAABKQKW3KOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRSGI4TAOJXGY . You are receiving this because you commented.Message ID: @.***>
This is the schematic I used. Is this the correct one?
As I said, the Laser board has a rectifier after the 12V, this has to be connected in a proper way (usually not indicated). Can you turn on/off the laser with 5V/GND signals?
No, the 5V signal has no effect on the laser.
Reverse 12v Input and check again. Maybe laser is broken
On Fri, Jul 12, 2024, 10:18 Farghal @.***> wrote:
No, the 5V signal has no effect on the laser.
— Reply to this email directly, view it on GitHub https://github.com/openUC2/UC2-REST/issues/79#issuecomment-2225065887, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBE5OCXPVDJPAGF3OEJLU3ZL6GL3AVCNFSM6AAAAABKQKW3KOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRVGA3DKOBYG4 . You are receiving this because you commented.Message ID: @.***>
The laser is working fine, but the spnEN has no output voltage. Could this be an issue with the firmware?
Can you check that pin without the CNC Shield connected? May also be that the ESP’s pin is fried.
@Farghal1 what power supply are you using for your setup? I have the exact same setup except for the laser module and my motors are not working properly. I am thinking I might not be running the proper power to the board for all the motors to work.
Did you bridge the 12 v from esp to CNC?
On Tue, Jul 16, 2024, 20:14 jsmithe2 @.***> wrote:
@Farghal1 https://github.com/Farghal1 what power supply are you using for your setup? I have the exact same setup except for the laser module and my motors are not working properly. I am thinking I might not be running the proper power to the board for all the motors to work.
— Reply to this email directly, view it on GitHub https://github.com/openUC2/UC2-REST/issues/79#issuecomment-2231522993, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBE5OH5BKILTLOO4DVKZNTZMVPGRAVCNFSM6AAAAABKQKW3KOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRGUZDEOJZGM . You are receiving this because you commented.Message ID: @.***>
@beniroquai So I was trying to avoiding soldering so I connected two different power supplies via barrel jack to both the esp board and the CNC shield. I now realizing I might not be supplying enough power.
I am using a NEJE laser engraver and the already assembled nema 17 motors for the X and Y. I Just used to power cord it came with to power the CNC shield. I used a red and black wire to barrel jack adapter to connected it to the shield FYI. Not sure if that is okay. Both barrel jack power supplies connected to the cnc shield and the esp board have a 12V/ 3A output rating.
Is this not enough power for the 2 nema 17 and 1 nema 11 stepper motors? Do you have a recommended power supply, and do you think soldering a bridge from the esp and CNC is required?
12V @ 3A should be fairly enough actually.. Can you measure if the motor drivers get 12V actually?
@beniroquai Yes, my terminal gets 12 volts just fine. One thing I did see was my "enable" pin on my A4988 driver gets a 3.3V read on my multimeter. I read online that if it draws that voltage, it will disable your driver and the steppers attached will not run? Are you familiar with this and do you know a solution to this?
@beniroquai Okay, I was able to solve the problem I just explained above by using a jumper cable to connect my enable and ground pins together which enabled all my drivers. The nema 11 motor I use for the z-axis works great in imswitch but the nema 17 motors I used for X & Y control just vibrate still with no real torque or movement. I am going to try to swap out the A4988 drivers with the more powerful DRV8825 drivers that can handle higher-rated currents. Hopefully that gets me the torque I need to rotate the motors instead of just shutting down because of overheating which I believe is happening right now.
I'll get back to you on this but let me know if there is anything else I should potentially try? Is there a way to set the current limit in the firmware? do you think this would help?
The enable pin is mapped to PIN12
as taken from the youseetoo.github.io:
// ESP32-WEMOS D1 R32
const int PIN_DEF_MOTOR_DIR_A = 0;
const int PIN_DEF_MOTOR_DIR_X = GPIO_NUM_16;
const int PIN_DEF_MOTOR_DIR_Y = GPIO_NUM_27;
const int PIN_DEF_MOTOR_DIR_Z = GPIO_NUM_14;
const int PIN_DEF_MOTOR_STP_A = 0;
const int PIN_DEF_MOTOR_STP_X = GPIO_NUM_26;
const int PIN_DEF_MOTOR_STP_Y = GPIO_NUM_25;
const int PIN_DEF_MOTOR_STP_Z = GPIO_NUM_17;
const int PIN_DEF_MOTOR_EN_A = GPIO_NUM_12;
const int PIN_DEF_MOTOR_EN_X = GPIO_NUM_12;
const int PIN_DEF_MOTOR_EN_Y = GPIO_NUM_12;
const int PIN_DEF_MOTOR_EN_Z = GPIO_NUM_12;
const bool PIN_DEF_MOTOR_EN_A_INVERTED = true;
const bool PIN_DEF_MOTOR_EN_X_INVERTED = true;
const bool PIN_DEF_MOTOR_EN_Y_INVERTED = true;
const bool PIN_DEF_MOTOR_EN_Z_INVERTED = true;
So it should automatically go high/low whenever you activate the motor. Which string did you use for running the motor?
Does this work?
{"task":"/motor_act",
"motor":
{
"steppers": [
{ "stepperid": 1, "position": 10000, "speed": 5000, "isabs": 0, "isaccel":0},
{ "stepperid": 3, "position": 10000, "speed": 5000, "isabs": 0, "isaccel":0}
]
}
}
What are you trying to drive with the motors? 12V/3A + A4988 should give you plenty of torque. The firmware cannot set any current limit.
Can you check that pin without the CNC Shield connected? May also be that the ESP’s pin is fried.
Sorry for my late reply, but I had to try different ways to see where the problem is: 1- I tried to measure the output voltage on that pin with the CNC removed, but no output change. 2- I also tried a new ESP and CNC module and the problem is still the same. 3- The laser works fine separately and the board has 5v and 12v connected.
What else do you think could be the issue? what solutions do you suggest?
And it shows UC2-WEMOS as pinconfig? I'm sorry, I don't really know what'S going on then.. :( Can you upload the simple blink example and change the gpio to e.g. 12 to see if this works?
Message ID: @.***>
Hii,
Sorry for this late reply. I uploaded the blink example and connected an Led to show the output. The Led blinks, but the laser doesn't. It's always ON and dissipating 0.28 Amp
Now Is this the Laser issue and should it be changed? Or this is usual not to blink similar to the LED!
Hello,
I'm trying to control the laser using imswitch. The outpin SpnEn doesn't seem to have any output voltage and the laser isn't responding to any change in intensity from imswitch.
I'm using wemos d1 r32 with these pin configurations.
struct UC2_WEMOS : PinConfig // also used for cellSTORM wellplateformat { const char pindefName = "UC2_WEMOS"; const char mSSIDAP = "UC2_WEMOS"; const char mSSID = "UC2_WEMOS"; const char mPWD = "12345678";
};
the following are imswitch configurations.
"lasers":{ "635 Laser": { "analogChannel": null, "digitalLine": null, "managerName": "ESP32LEDLaserManager", "managerProperties": { "rs232device": "ESP32", "channel_index": 1, "filter_change": true }, "wavelength": 635, "valueRangeMin": 0, "valueRangeMax": 255 },
Am I missing something or is there any extra manipulation that I need to do for the laser to make it work?