linuxcnc-esp32 Software Stepping over Ethernet Using ESP32

More
5 years 5 months ago #210044 by tjtr33
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
More
5 years 5 months ago #210052 by tjtr33
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
Code:
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
  • BeagleBrainz
  • Visitor
  • Visitor
5 years 5 months ago - 5 years 5 months ago #210073 by BeagleBrainz
Try this
Code:
#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: 5 years 5 months ago by BeagleBrainz.
More
5 years 5 months ago - 5 years 5 months ago #210075 by tjtr33
i made some progress
i edited linuxcncinterface,ibo

change
Code:
#include <gpio.h>
to
Code:
#include <driver/gpio.h>
and xhange
Code:
#include <rmt.h>
to
Code:
#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: 5 years 5 months ago by tjtr33. Reason: suggestion
More
5 years 5 months ago - 5 years 5 months ago #210079 by tjtr33
@ BeagleBrainz
Thanks i discovered similar
both compile ok
rom/gpio.h
driver/gpio.h
and your suggestion lookks better
TomP tjtr33
Last edit: 5 years 5 months ago by tjtr33. Reason: late read
More
5 years 5 months ago #210488 by tjtr33
@scotta @BeagleBrainz
Hello, please add
Code:
#include esp_ipc.h
to 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 hal
Code:
halrun loadrt upc show
but 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
Attachments:
Time to create page: 2.202 seconds
Powered by Kunena Forum