ESP32 HAL2UDP setup for linux CNC noob.

More
2 years 7 months ago #295897 by sapra.aayush
Trying to fix this old obsolete CNC Lathe (2Axis+tool turret ) for my diploma college with new electronics but I am a total noob to Linux and Linux CNC. I have done some GRBL CNC work but never tried Linux CNC. I was advised not to use the parallel port as I had a newer PC donated for the project with a Jitter of nearly 35000. And unable to get Mesa boards into the country and their cost would be massive if I import them myself. 

I came across this project called HAL2UDP by jzolee on Git Hub running on ethernet. ( github.com/jzolee/HAL2UDP ). 
I started but I am failing execution. I Have installed LinuxCNC, and uploaded the file CPP file to ESP32.
I am failing to install linuxcnc-uspace-dev
install build-essential

halcompile --install udp.comp
[img




What Do i do next. how do i proceed with the project , How do i remove this error. What would be next steps after compiling? How do i setup the machine?

Thank You

Please Log in to join the conversation.

More
2 years 7 months ago #295900 by cekaa
My English is poor, I found it from another video and ran it

You had a question about installing udp.comp. If you copied the file to the config folder, you must enter the config folder in the command line and issue the following commands:  sudo apt-get install linuxcnc-uspace-dev build-essential

sudo halcompile --install udp.comp
link ----


I applied the steps in this video
I put it everywhere in config linuxcnc
ip configiration thıs video ok 

I'm trying to learn too
I cannot start Linuxcnc, it is important for me.
 

Please Log in to join the conversation.

More
2 years 3 months ago #305995 by yathish
Even im stuck with this problem can anyone help

Please Log in to join the conversation.

More
1 year 11 months ago #313949 by tommylight
What do you need help with?

Please Log in to join the conversation.

More
1 year 11 months ago #314004 by michaeln
Are the linux commands the problem?

Please use:
sudo apt install linuxcnc-uspace-dev
sudo apt install build-essential

sudo halcompile --install udp.comp

Please Log in to join the conversation.

More
1 year 2 months ago #333931 by lj
Hello, I just started working on the linuxcnc esp32 W5500 setup and I ran into some issues.
1. Hardware: Rpi4 8gb with linuxcnc 2.8.4, W5500, Esp32 Wroom 
2. Esp firmware: hal2udp pwm
3. Motion: open loop stepper with TB6600 Driver

Issues
1. activation of spindle or flood no voltage change on esp32 pins 4 or 25.
2. joint follow error all axis3. My stepper is enable without the enable pin connection (I'm not even sure what pin to use for enable/disable on the esp32-the pin out from the read file doesn't show what pin to use.
3. udp.stepgen.1.enable (error doesn't exsist) (My assumption is that because the udp.comp file doesnt show the param or pin) maybe I'm missing something
4. is the Pid function only used for closed loop steppers to accurately determine movement
I attached my hal and ini files

thanks for the help

Please Log in to join the conversation.

More
1 year 2 months ago #333948 by tommylight
Use the serial monitor feature to see if the ESP is connected and working.
Use ping to make sure network is set up properly, ping the W5500 on the address you set in PlatformIO/Code

Please Log in to join the conversation.

More
1 year 2 months ago #333971 by lj
I think I found the problem. I am using a straight through instead of the cross over Ethernet cable I should be using

thanks for the help

Please Log in to join the conversation.

Time to create page: 0.109 seconds
Powered by Kunena Forum