Skip to content
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

Does hani-mandl run on Arduino? #30

Open
ganafets82 opened this issue Nov 28, 2021 · 4 comments
Open

Does hani-mandl run on Arduino? #30

ganafets82 opened this issue Nov 28, 2021 · 4 comments

Comments

@ganafets82
Copy link

Hi,
Could I run it on Arduino, or its the ESP32 choosen on purpose?

Thanks for this project!

Stefan

@ClemensGruber
Copy link
Collaborator

The reason for choosing the Heltec board was the onboard display and the cheap price. :-) There was an ESP32 microcontroller on board but from a technical side a M0 would also be sufficient. BUT with the ESP32 as given we have choosen the appropriate libs for the ESP and not for Arduino. E.g. we are using the ESP32Servo lib. So in case you want to try the code with an Arduino you have to replace at least this lib. But we do not use special features of the ESP or onboard WiFi. So it should work on an Arduino also with slight adjustments but not as is in the repo.

@amotl
Copy link
Member

amotl commented Jan 22, 2024

Dear Stefan and Clemens,

thank you for writing in, and apologies for the late reply. Your dispenser project looks like it is pretty similar to hanimandl, right?

Through #include <Servo.h>, we can see you are using the vanilla Arduino Servo library. However, this library is not suitable for Espressif chips. A library with apparently the same interface, but suitable for ESP32, would be ServoESP32 (ServoESP32 on PlatformIO).

However, I also observed that ESP32Servo is advertising quite the same:

This library attempts to faithfully replicate the semantics of the Arduino Servo library.

So it may be possible to make it work by just swapping in the vanilla Arduino library, using the #include <Servo.h> statement?

With kind regards,
Andreas.

@ganafets82
Copy link
Author

Hi Andreas,
The dispenser is somehow similar but not as advanced as the hanimandl. I used this several weeks a year now for filling hot juice. It just works will since the beginning, there was no need to change something except the red part (visible at thingiverse) is aluminium now.
It has no display and I will not develope this further and I plan to use the hanimandl code or instead.

I cant tell you about the servo library on ESP, I never used it.
I would wonder if it would not work similar.

Best wishes
Stefan

@ClemensGruber
Copy link
Collaborator

ClemensGruber commented Jan 23, 2024

Bit OT, but I have to addmit: A very nice idea to use a tube and this nice eccentric mechanism to press of a hose for filling up liquids: https://www.thingiverse.com/thing:4631906 !

Many thanks Stefan / @ganafets82 ! I spent this nice idea a posting under: https://community.hiveeyes.org/t/fur-flussigkeiten-abgequetschter-schlauch-statt-quetschhahn/5202 feel free to jump in, Stefan and many thanks to Andreas / @amotl as "Trüffelschwein"! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants