Replies: 10 comments 4 replies
-
Hi, thanks for reporting. I've got the H743 variant of the SKR3 here, and also a Huanyang VFD. Will confirm settings tomorrow, but have definitely had this combination working on the bench.. Do you have access to any sort of logic analyser or scope? Cheers, Jon. |
Beta Was this translation helpful? Give feedback.
-
@ed-apex I've set my SKR-3 back up with the Huanyang VFD. All seems to be working as expected here, what does your wiring look like? There are some old comments on SKR3 connections in the H7 repo here. |
Beta Was this translation helpful? Give feedback.
-
I have a scope, no logic analyzer and a rs485 sniffer is on its way. Here's a quick report on what my config is right now: $pins |
Beta Was this translation helpful? Give feedback.
-
Probably not helpful, but here's a link to some images of the connection to the tft header, the rs485 converter (also getting power and gnd from the tft header) and the vfd itself : https://share.icloud.com/photos/02fBMfgUvLxAgvlMAKGcorEoA |
Beta Was this translation helpful? Give feedback.
-
Here's my platformio.ini:
|
Beta Was this translation helpful? Give feedback.
-
The connections and config all look okay to me. (Always some ambiguity on TX/RX labelling, but as you say, you've tried both ways already). VFD setup from your initial post matches my notes here;
I believe the relevant grblHAL settings are just these (and I think are all defaults anyway);
If you have a sender connected, I would expect to see data every second. Otherwise, a '?', or 'Ctrl-C' should send something, the TX and RX lights on my RS485 module flash with each data transfer. As you have a scope I would suggest checking the signals next. These Huanyang devices are only sort of Modbus RTU compatible, so a protocol decode would likely complain about invalid data. But really I'd just be looking for activity initially. I'd start with the logic level signals on the board, looking for TX and RX data. (You'll be getting the Alarm 14 because there is no valid response within the RX timeout period). Be prepared to be horrified by the noise on the RS485 side - these VFDs are nasty! :) You should be able to see something if you can use a math function to subtract one channel from the other (or even better have differential probe, but not at all needed for basic checks). |
Beta Was this translation helpful? Give feedback.
-
So I got it working in between the responses by throwing -D SPINDLE_FEEDBACK_ENABLE=0 in my platformio.ini. Probably a hack solution, but it's all working. Do you have any thoughts on how I can lift the restriction on the current settings for the steppers? I've tried a few things but all of them caused the firmware to not initialize. |
Beta Was this translation helpful? Give feedback.
-
Well... I did a fresh pull from your repo Jon and just did a clean sheet of paper build and now the spindle works reliably (YAYYY!). So that's solved. Also, the fancy wave share ttl to rs485 adapter works peachy and has a lot of nice features. Any insights on upping my current level for my steppers. I did see a lot in the source about it making current calculations based on feedback from the driver. I'm not sure if that means I'm getting the most out of my 5160 ez drivers or not. |
Beta Was this translation helpful? Give feedback.
-
Thanks, will update submodules in a bit... |
Beta Was this translation helpful? Give feedback.
-
Thank you both! SKR 3 is a very good budget board option for grblhal with the 5160 drivers. Especially with the ability to support 48v for the drivers. Tough to beat for well under $100 all in. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm currently doing a refit / upgrade to my cnc router. I'm now using a BTT SKR 3 (STM32H723). I compiled my own FW to implement the sdcard along with the 5160 drivers (the latter not seeming to work on the webbuilder based fws). I have been successful in achieving all my goals and the machine is working just peachy except... NO SPINDLE! I am sort of flummoxed as it seems to be configured correctly in both the fw and wired correctly.
I'm using a Huanyang HY series vfd. It is tested and working from the control panel. I have been using Huanyang1 from the spindles driver. I have configured it for RS485 control with PD01 = 2, PD02 = 2, PD163 =1, PD164 = 2 and PD165 =3. I have the settings in grbl configured suitably to match with the address set to 1, and the baudrate set to 19200. I have not messed with the communication protocols as I believe they are 8N1 RTU by default. I get an alarm 14 every time I try to start the spindle. I have tried every combination of reversing the tx and rx pin to my ttl / serial to RS485 adapter along with the A and B outputs and the terminating resistor on and off. Same result. I have used a web build without the trinamic drivers in the board config which allows iosender to communicate with the board and I still can't get the spindle to start. Alarm 14. PA 9 and PA 10 are tx and rx on the SKR 3 EZ and the $pins in every compilation I have done along with the successful non trinamic webbuilder implementations match that. I'm at a loss here. I actually need this machine for work (yes it is a hobby grade machine, but it has a specific use) and I'm getting pretty behind and am really stressed.
The other issue I'm having is I can't find a way in the source code to lift the current restrictions for the stepper motors. The motors are rated for 2.8 amps and the 5160s in the packaging they are in with wrap around heatsinks and fans should be good for 3amps at 24v. The ceiling is 1584 as allowed by grblhal. I'd like to raise it. If I'm not mistaken, RMS should be about 77% of the peak rating, so I'd like to be in the 2100ma range at least. I may be off base on all of this, so input is appreciated.
I'm drinking a bit from the fire hose hear trying to wrap this up. The physical build is done, it's homing, autosquaring wonderfully. I just need my spindle working and a little more juice to the drivers. I'd like to go rs485, but I'm about ready to go 0-10 with a pwm to analog adapter as I just need this running asap. Thanks to all for the help in advance. I'm so stressed and frustrated right now. I know it's something I'm doing wrong and I just can't figure it out. For reference, here's a link to the ttl / serial to rs485 adapter I'm using: https://www.amazon.com/dp/B0BRFRS6R9
Beta Was this translation helpful? Give feedback.
All reactions