- Hardware & Machines
- Computers and Hardware
- linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
- BeagleBrainz
- Offline
- User is blocked
Less
More
- Posts: 1437
- Thank you received: 570
20 May 2021 03:39 #209607
by BeagleBrainz
Replied by BeagleBrainz on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Has anyone compiled the code and hooked up a ESP32 & Ethernet Module ?
Have I both now sitting in the "lets make something box" but I'm having an issue with the ESP32 to Ethernet Module hookup. The SPI signals seems easy enough to find info on, but the RESET & CS seem a bit iffy. I've spent a few hours looking and seem to come up with different pins.
Yeah yeah I know I'm probably missing so simple.
Have I both now sitting in the "lets make something box" but I'm having an issue with the ESP32 to Ethernet Module hookup. The SPI signals seems easy enough to find info on, but the RESET & CS seem a bit iffy. I've spent a few hours looking and seem to come up with different pins.
Yeah yeah I know I'm probably missing so simple.
Please Log in or Create an account to join the conversation.
20 May 2021 14:34 #209655
by Cncninja
Replied by Cncninja on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Would love to buy one from you and try it out.
Please Log in or Create an account to join the conversation.
20 May 2021 17:38 #209671
by MX_Master
Replied by MX_Master on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
This module can help
a.aliexpress.com/_mNQ0OYt
a.aliexpress.com/_mNQ0OYt
The following user(s) said Thank You: tjtr33
Please Log in or Create an account to join the conversation.
21 May 2021 01:49 #209717
by scotta
Velocity feedback only.
Replied by scotta on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
I've had the Trinamic TMC2209's running in velocity mode over UART. Really neat but lacks the internal feedback of the software step generator.
No serial feedback from the drivers then?
Velocity feedback only.
Please Log in or Create an account to join the conversation.
24 May 2021 09:52 #210044
by tjtr33
Replied by tjtr33 on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Thx, I saw same and its' cleaner, about a dozen gpio left over
and a simpler package.
bit.ly/34eTCfX
or
www.wireless-tag.com/wp-content/uploads/...6%96%87%EF%BC%89.pdf
There are a LOT of 'esp32' boards
I have DOIT ESP32 DEVKIT V1
and i've found 2 versions
so
finding the correct pins can be hell
and NOT having to find them is nice.
( a bonus of a pcb containing 2 major components)
tomp tjtr33
and a simpler package.
bit.ly/34eTCfX
or
www.wireless-tag.com/wp-content/uploads/...6%96%87%EF%BC%89.pdf
There are a LOT of 'esp32' boards
I have DOIT ESP32 DEVKIT V1
and i've found 2 versions
so
finding the correct pins can be hell
and NOT having to find them is nice.
( a bonus of a pcb containing 2 major components)
tomp tjtr33
Please Log in or Create an account to join the conversation.
24 May 2021 11:54 #210052
by tjtr33
Replied by tjtr33 on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Hi Scotta
I have problem compiling the src code from
github.com/Deotti-cl/linuxcnc-esp32
github.com/Deotti-cl/linuxcnc-esp32
Is that the correct repo?
I have a breand new ,empty, clean, install of Arduino IDE,
arduino IDE 1.8.15
and I have configured for ESP32 devices using Board Manager
and chose my DOIT ESP32 DEVKIT V1 from the list
I can compile and run wifiscan without problems.
but the linuxcncinterface.ino
gets me this message
What am i missing?
Thanks TomP
I have problem compiling the src code from
github.com/Deotti-cl/linuxcnc-esp32
github.com/Deotti-cl/linuxcnc-esp32
Is that the correct repo?
I have a breand new ,empty, clean, install of Arduino IDE,
arduino IDE 1.8.15
and I have configured for ESP32 devices using Board Manager
and chose my DOIT ESP32 DEVKIT V1 from the list
I can compile and run wifiscan without problems.
but the linuxcncinterface.ino
gets me this message
linuxcncinterface:20:18: fatal error: gpio.h: No such file or directory
compilation terminated.
exit status 1
gpio.h: No such file or directory
What am i missing?
Thanks TomP
Please Log in or Create an account to join the conversation.
- BeagleBrainz
- Offline
- User is blocked
Less
More
- Posts: 1437
- Thank you received: 570
24 May 2021 16:15 - 24 May 2021 16:42 #210073
by BeagleBrainz
Replied by BeagleBrainz on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Try this
From here:
github.com/dlhenke/linuxcnc-esp32/blob/m...inuxcncinterface.ino
udp.comp needs some extras, the scale as parameters, the ability to set the IP Address when loading, and updating some of the socket functions (working on that ATM). Tho it does work as expected, the above just make it nicer.
The CS/SS pin needs to be set correct for your particular board.
There still needs to be some work done on the GPIO pin numbering for the DIR pins
#include <stdlib.h>
#include <driver/gpio.h>
#include <Arduino.h>
#include <Ethernet.h>
#include <EthernetUdp.h>
///#include <mcpwm.h>
///#include <ledc.h>
#include <esp_timer.h>
#include <driver/rmt.h>
#include <string.h>
#include <ESP32Encoder.h>
From here:
github.com/dlhenke/linuxcnc-esp32/blob/m...inuxcncinterface.ino
udp.comp needs some extras, the scale as parameters, the ability to set the IP Address when loading, and updating some of the socket functions (working on that ATM). Tho it does work as expected, the above just make it nicer.
The CS/SS pin needs to be set correct for your particular board.
There still needs to be some work done on the GPIO pin numbering for the DIR pins
Last edit: 24 May 2021 16:42 by BeagleBrainz.
Please Log in or Create an account to join the conversation.
24 May 2021 16:23 - 24 May 2021 16:52 #210075
by tjtr33
Replied by tjtr33 on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
i made some progress
i edited linuxcncinterface,ibo
changetoand xhangeto
and
install ESP32Encoder using library mgr
now it will compile
but i have not tested it
There used to be a processing driver pde
but it is not in the tail of linuxcncinterface.ino
i saw it somewhere in my travels
tomp tjtr33
regards tomp tjtr33
i edited linuxcncinterface,ibo
change
#include <gpio.h>
#include <driver/gpio.h>
#include <rmt.h>
#include <driver/rmt.h>
and
install ESP32Encoder using library mgr
now it will compile
but i have not tested it
There used to be a processing driver pde
but it is not in the tail of linuxcncinterface.ino
i saw it somewhere in my travels
tomp tjtr33
regards tomp tjtr33
Last edit: 24 May 2021 16:52 by tjtr33. Reason: suggestion
Please Log in or Create an account to join the conversation.
24 May 2021 16:41 - 24 May 2021 16:49 #210079
by tjtr33
Replied by tjtr33 on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
@ BeagleBrainz
Thanks i discovered similar
both compile ok
rom/gpio.h
driver/gpio.h
and your suggestion lookks better
TomP tjtr33
Thanks i discovered similar
both compile ok
rom/gpio.h
driver/gpio.h
and your suggestion lookks better
TomP tjtr33
Last edit: 24 May 2021 16:49 by tjtr33. Reason: late read
Please Log in or Create an account to join the conversation.
28 May 2021 05:16 #210488
by tjtr33
Replied by tjtr33 on topic linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
@scotta @BeagleBrainz
Hello, please addto your list
All original #includes can be removed
IF yours plus this esp_ipc.h are in the file
( no need for FreeRtos etc )
It compiles and loads fine
and the pins can be seen in halbut theres are pins listed that dont exist on my 30 pin devkit1 board
I will go now to study the comp src to see what params may exist
and how a .hal file would be made to use this
There must exist a config(hal and ini ) if we watched the video.
Are they published?
Should the RST pin be set High? (d26 on esp32 , RST on w5500 )
Also I am still looking for the .pde that tests the .ino
I have it someplace but have misslaid it.
Thx TomP
Hello, please add
#include esp_ipc.h
All original #includes can be removed
IF yours plus this esp_ipc.h are in the file
( no need for FreeRtos etc )
It compiles and loads fine
and the pins can be seen in hal
halrun
loadrt upc
show
I will go now to study the comp src to see what params may exist
and how a .hal file would be made to use this
There must exist a config(hal and ini ) if we watched the video.
Are they published?
Should the RST pin be set High? (d26 on esp32 , RST on w5500 )
Also I am still looking for the .pde that tests the .ino
I have it someplace but have misslaid it.
Thx TomP
Please Log in or Create an account to join the conversation.
- Hardware & Machines
- Computers and Hardware
- linuxcnc-esp32 Software Stepping over Ethernet Using ESP32
Time to create page: 0.141 seconds