- Posts: 639
- Thank you received: 234
linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
- Bari
- Offline
- Platinum Member
-
Less
More
4 years 10 months ago - 4 years 10 months ago #228594
by Bari
Replied by Bari on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
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.
- tommylight
- Offline
- Moderator
-
Less
More
- Posts: 22011
- Thank you received: 7491
4 years 10 months ago #228598
by tommylight
Replied by tommylight on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Looks like DB15 used for MIDI and gaming joysticks back in the days.Is than an LPT connector on the left side of the enclosure using a standard pin-out for connection to a BOB?
- Micromachining
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 2
4 years 10 months ago #228644
by Micromachining
Replied by Micromachining on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Do you think this ESP32 CNC board would work?
nl.aliexpress.com/item/1005003511726139....4bdbaf9857080d3ff9b9
nl.aliexpress.com/item/1005003511726139....4bdbaf9857080d3ff9b9
- eng
- Offline
- Junior Member
-
Less
More
- Posts: 37
- Thank you received: 8
4 years 10 months ago #228667
by eng
Replied by eng on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
I'm watching this video, soon I'll run the tests and see if I could get tr more i/o,
- jzolee
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 3
4 years 10 months ago - 4 years 10 months ago #228826
by jzolee
Replied by jzolee on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
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)
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)
Last edit: 4 years 10 months ago by jzolee.
The following user(s) said Thank You: Bari
- eng
- Offline
- Junior Member
-
Less
More
- Posts: 37
- Thank you received: 8
4 years 10 months ago #228833
by eng
Replied by eng on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
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