-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use on ESp32dev #15
Comments
@Hatzumi187 thanks for your donation. |
Hello thanks for answer,I think I need extra library SD.h and SPI.h And if I look at my shield board where the sd card Modul is connected it’s different SD_MISO 19SD_MOSI 23SD_SCLK 18SD_CS 5I don't know where or how this can change in your sketch. I think your software is so cool because an SVG file can be opened and edited directly. And the preview function is awesome. Please try to get it running on a normal ESP32 board. Which pins are used in your sketch for the SD card? If everything doesn't help, I would buy an M5Stack. Would it work with an "M5Stack Core2 & stepper motor driver module"? I have concerns and would be very grateful for your support.Von meinem iPhone gesendetAm 17.07.2023 um 10:20 schrieb Andrei Tatar ***@***.***>:
@Hatzumi187 thanks for your donation.
Not really sure why the SD card would not be recognized. Try formatting it using FAT32 (if it's not already). I used an old 512MiB card I had laying around.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@Hatzumi187 there is also a fork here that says
https://github.com/rysmario/wifi-egg-duino
The pins for the SD card I think are pretty much the same on all ESP32 boards, aren't they? For this code version, the usage is here, in the M5Stack lib:
I don't see why not. Might need some pins changed for the stepper motor driver. I just built my own stepper motor driver and chose the pins I wanted to use. |
Then I look for the error at the wrong place . I always get this error message when trying to save.Von meinem iPhone gesendetAm 17.07.2023 um 11:59 schrieb Andrei Tatar ***@***.***>:
@Hatzumi187 there is also a fork here that says
I just modded it to a) work on a plain ordinary esp32 b) slow down the pen hammering on the egg otherwise
https://github.com/rysmario/wifi-egg-duino
The above fork also doesn't change any SD pins, only the ones for the stepper motors.
Which pins are used in your sketch for the SD card?
The pins for the SD card I think are pretty much the same on all ESP32 boards, aren't they? For this code version, the usage is here, in the M5Stack lib:
https://github.com/m5stack/M5Stack/blob/7ebd4c63e3ad488c2e43d42896f7a3f8324583e8/src/M5Stack.cpp#L29
SD and SPI come bundled with Arduino for ESP32, you don't need to do anything extra and the M5 lib doesn't seem to change the default pins.
Would it work with an "M5Stack Core2 & stepper motor driver module"?
I don't see why not. Might need some pins changed for the stepper motor driver. I just built my own stepper motor driver and chose the pins I wanted to use.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Thank you!With this one it’s working now to save.rysmario/wifi-egg-duino: WiFi enabled Egg botgithub.comVon meinem iPhone gesendetAm 17.07.2023 um 12:44 schrieb Andi ***@***.***>:Then I look for the error at the wrong place . I always get this error message when trying to save.<image0.jpeg>Von meinem iPhone gesendetAm 17.07.2023 um 11:59 schrieb Andrei Tatar ***@***.***>:
@Hatzumi187 there is also a fork here that says
I just modded it to a) work on a plain ordinary esp32 b) slow down the pen hammering on the egg otherwise
https://github.com/rysmario/wifi-egg-duino
The above fork also doesn't change any SD pins, only the ones for the stepper motors.
Which pins are used in your sketch for the SD card?
The pins for the SD card I think are pretty much the same on all ESP32 boards, aren't they? For this code version, the usage is here, in the M5Stack lib:
https://github.com/m5stack/M5Stack/blob/7ebd4c63e3ad488c2e43d42896f7a3f8324583e8/src/M5Stack.cpp#L29
SD and SPI come bundled with Arduino for ESP32, you don't need to do anything extra and the M5 lib doesn't seem to change the default pins.
Would it work with an "M5Stack Core2 & stepper motor driver module"?
I don't see why not. Might need some pins changed for the stepper motor driver. I just built my own stepper motor driver and chose the pins I wanted to use.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Do you have any idea why the printing is not correct for me? The pen motor moves left and right against the wall when printing. I have already tried to set the "Steps per rotation" down but then the print image is much too small and the proportions are no longer correct. How can I set the print field to 3200x800 mm? This is how I tested it in Inkscape directly on another Egg device. |
@Hatzumi187 You might need to change the number of steps per revolution according to your driver setup (number of microsteps) and the motors. I don't remember what kind of motors I used. |
I tried it with all possible steps from 200 - 3200, unfortunately no good result. As soon as I print something it is totally squeezed. As if the X and Y ratios are not correct and as soon as I increase the steps too much the pen crashes with the servo against the left wall. I have built my shield according to these instructions [Link](url) `#ifndef PRINTER_H #include <AccelStepper.h> typedef std::function<void()> PrinterHandler; #define PIN_ROT_DIR 26 #define PIN_PEN_DIR 25 #define PIN_SERVO 27 #define VSPI_SS 5 struct MotionParameters class Printer
private:
}; #endif |
@Hatzumi187 If I remember correctly, I think you need to "reslice" the svg after you change the number of steps. |
Thank you very much for your software! It works now. With one of the drivers (A4988) the M2 contact was not given and therefore this strange behavior. Now I'm just trying to figure out how to center an imported SVG file on the ping pong ball. In the Hello World test print, the O is not quite round, but this is certainly still due to the alignment of the pen. Has actually been improved on the client Ordenr in the M5 version, since the date was I think newer? If so, can I just copy this into the ESP version? Greetings |
ok, i try to reslice again. Maybe it's then on the right position. |
Hello Andrei, is it possible, as with inkscape, to fill the graphic /svg file, i.e. not just the border? |
@Hatzumi187 I didn't add a fill method to the slicer logic. |
Hello andrew, thank you for this code.
i am totally new here and hope this is the right way. i only have a M5 stack fire without shield for the motors, so i loaded your code on a ESP32dev board and adjusted the pin's before. It looks like it runs and I like it a lot, better than the other "Egg" solutions. My problem is the SD card is not recognized in the Micro-SD adapter module to uplode or save files. Is there a solution to this? Please help me.
thank you for your effort
regardless see paypal ;-)
The text was updated successfully, but these errors were encountered: