linuxcnc-esp32 Software Stepping over Ethernet Using ESP32

More
4 years 4 months ago #245224 by viewtop1
HI JZolee
Would you possibly be able to add encoder functionality from github.com/dlhenke/linuxcnc-esp32  into the code?  My Programming skills are nowhere near the level required to make this work. I know you posted that you have very limited development time, but this would be greatly appreciated.
I made a PCB for the ESP32
3 Axis, TMC2225 / Stepstick type things
3 encoder inputs A,B, Index 
3 Limits switches ( Inductive Sensors)
3 Digital Outputs
The Board will need a V2 to fix some issues, but it works for me. I will gladly share the schematics / gerbers and I have some spare blank boards too should anyone want V1.

Doing the encoder using the UDP.IN pins limits the max Spindle speed. So the Encoder should give spindle position feedback.
I am trying to CNC a Mini lathe. ( I say trying... but in truth I have not gotten further than moving the axes and homing...)
Halscope sees the all the inputs though.

Another question... How would one invert a pin signal. I included an Enable signal, And was able to get the signal to come on when Axis is taken out of estop / Machine ON, but then realised I actually need to ENABLE to go LOW rather than HIGH. 
Also similar issue will arise with encoder inputs, it might be needed to invert the signals

Long message for something that equates to begging for your coding time...
Thanks
 
Attachments:
More
4 years 4 months ago #245541 by eng
through the studies done with remora, i managed to use dds with esp32, i'm still on the study bench, i'm getting pulses with more than 200khz, this is not my area but i'm learning little by little.
The following user(s) said Thank You: Bari
More
4 years 4 months ago #245887 by scotta

through the studies done with remora, i managed to use dds with esp32, i'm still on the study bench, i'm getting pulses with more than 200khz, this is not my area but i'm learning little by little.
Hi eng, great to hear. Could you share your implementation? I'd love to be able to increase the step rate in Remora.
More
4 years 4 months ago #245926 by eng
i'm still learning about programming, i just took its structure from dds and put it inside a void IRAM_ATTR onTime_0() the same we used here in esp32, and used your .c
with some simple changes, I hope to make it the same as jzolee, as soon as everything is working correctly I will make it available on github so we can use it because at the moment everything is new to me and I don't have enough knowledge to discuss about it, I'm going in trial and error with some basic calculations.
More
4 years 3 months ago - 4 years 3 months ago #247661 by xek
Hi there! I'm new to linuxcnc, however I know some esp-idf.
I tried to find a cheap linuxcnc-compatible board, but failed. The cheapest board ever available on the internets costs ~250$.

Then I found this thread and esp32 looks promising. I started porting  github.com/jzolee/HAL2UDP code to native esp32-idf with native LAN8720.
I'm using WT32-ETH01 board with LAN8720 and RMII connection to esp32. One of the problems – it has low free io pin count.
I'll release the code in a day or two.

@jzolee
can you please share some contact info, I'd like to ask a pair of questions, please?
Last edit: 4 years 3 months ago by xek.
More
4 years 3 months ago #247723 by jzolee
Hi xek
Unfortunately, my English is poor, but I will try to answer: juhasz.zoltan@freemail.hu
Time to create page: 0.334 seconds
Powered by Kunena Forum