linuxcnc-esp32 Software Stepping over Ethernet Using ESP32

More
4 years 10 months ago - 4 years 10 months ago #228594 by Bari
Is than an LPT connector on the left side of the enclosure using a standard pin-out for connection to a BOB?
Last edit: 4 years 10 months ago by Bari.
More
4 years 10 months ago #228598 by tommylight

Is than an LPT connector on the left side of the enclosure using a standard pin-out for connection to a BOB?
Looks like DB15 used for MIDI and gaming joysticks back in the days.
More
4 years 10 months ago #228644 by Micromachining
Do you think this ESP32 CNC board would work?

nl.aliexpress.com/item/1005003511726139....4bdbaf9857080d3ff9b9
More
4 years 10 months ago #228667 by eng
I'm watching this video, soon I'll run the tests and see if I could get tr more i/o,
More
4 years 10 months ago - 4 years 10 months ago #228826 by jzolee
Hi eng, I improved the system:
i added more inputs and outputs as well as pwm option.

GPIO  2 -> OUT-00 or PWM-00
GPIO  4 -> OUT-01 or PWM-01
GPIO 25 -> OUT-02 or PWM-02
GPIO  1 -> OUT-03 or PWM-03
GPIO 14 -> OUT-04 or PWM-04
GPIO 15 -> OUT-05 or PWM-05

GPIO 26 <- IN-00 {pullup}
GPIO 27 <- IN-01 {pullup}
GPIO 32 <- IN-02 {pullup}
GPIO 33 <- IN-03 {pullup}
GPIO 34 <- IN-04 {no pullup}
GPIO 35 <- IN-05 {no pullup}
GPIO 36 <- IN-06 {no pullup}
GPIO 39 <- IN-07 {no pullup}

GPIO 12 -> step-0
GPIO 13 -> dir-0
GPIO 16 -> step-1
GPIO 17 -> dir-1
GPIO 21 -> step-2
GPIO 22 -> dir-2

GPIO  5 -> W5500 SCS
GPIO 18 -> W5500 SCLK
GPIO 19 <- W5500 MISO
GPIO 23 -> W5500 MOSI

In the ethernet library, I modified the SPI frequency in the w5500.h file because sometimes the data transfer was faulty.
I used a new method to calculate the step period time, which is faster. So the step frequency may be higher, but I can't control it because my machine can't do more than 40 kHz.

pwm can be activated on the outputs by setting the value of the parameter udp.pwm.xx.freq (1...65000 Hz)
The pwm duty ratio can be set on pin udp.pwm.xx (0 ... 1)

 

File Attachment:

File Name: udp_2021-12-10.comp
File Size:6 KB


 

File Attachment:

File Name: HAL2UDP_20211210.zip
File Size:75 KB




 
Last edit: 4 years 10 months ago by jzolee.
The following user(s) said Thank You: Bari
More
4 years 10 months ago #228833 by eng
I'm grateful for your effort, I'll do the tests and see how it turned out, could you ask me a question? I'm wanting to go deeper into your code to be able to use it on the stm32f407, do you believe it would be possible to use this same code with changes? I'm thinking about it because it would be an interesting way out to have more i/o ports.
Time to create page: 0.585 seconds
Powered by Kunena Forum