hiveeyes / hanimandl

HaniMandl ist ein halbautomatischer Honig-Abfüll-Roboter.
https://hanimandl.readthedocs.io/
GNU General Public License v3.0
38 stars 29 forks source link

Does hani-mandl run on Arduino? #30

Open ganafets82 opened 2 years ago

ganafets82 commented 2 years ago

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

Thanks for this project!

Stefan

ClemensGruber commented 2 years ago

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 commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

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"! :-)