-
Notifications
You must be signed in to change notification settings - Fork 1
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
Modification ideas: ESP8266; rotary encoder #1
Comments
I had this idea too and have even bought an Arduino Nano ESP32 with Headers [ABX00083] – ESP32-S3, USB-C, WLAN, Bluetooth, HID support, MicroPython compatible
Yes. The Selly plus 1 with Add-on plus is a device in Home Assistant und here I can log the temperatures of (un)original heated drybox. I have tried to use the DS18B20 sensors directly now as well.
I think this is a prerequisite for further expansion. I think your suggestions are excellent |
I just looked it up, didn't realize that there is an Arduino ESP. Must have missed that, thanks. I have a bunch of different versions of ESP8266 board, though. My last attempt to MicroPython was some years ago, and I had trouble getting it work reliably. But I never revisited it since. For such possibly dangerous applications, I would always opt for Arduino (C/C++) code.
Thank you for the info, I had not really thought about the electronics overheating. Maybe I opt for moving all electronics to the outside of the box. Maybe next to the PSU.
DS18B20 can be tricky. They easily damage when connecting them in the wrong way. In addition, they are very picky regarding the value of the pullup resistor on the data line. Some reference code from one of my projects. |
I hope it's ok that I hijack this issue to report my latest findings and progress. I've read your notes regarding the temperature distribution being poor without additional external fans. Hence, I had a look at the duct I believe you are using. I think the design of the duct has two flaws, which when fixed, might make the additional fans unnecessary. The original design divides the entire cross section in three even sections. The outer ones direct the hot air sideways and the central one downwards. The flaw I see in this is that the cross section of the duct includes the black plastic frame of the heater, while the air from the fans solely flows through the metal parts. This results in most of the hot air flowing in the central section and hence downward, whereas only a small portion of air is taking the outer section directed towards the sides. Therefore, I am in the process of redesigning the duct with the following changes:
Here a sneak peek: So far, I have only printed in PETG as design test. Running the fans without heating, I can confirm that most of the air is exiting the duct sideways. As of yet, I never printed with Nylon and still waiting for my order to arrive. I hope i get this printed without warping. PS: I also ordered an Arduino Nano ESP32. Some more printing of basic frame parts to do, before I can start coding. |
Hi,
might make the additional fans unnecessary
I think that the two additional fans have a positive effect on the air
distribution, especially towards the front
In my opinion, the upper distribution is OK, It divides the heating area
into 3 equal parts.
The problem is the side outlet, which is much smaller than the one assigned
above.
I therefore also increased the side outlets by 15mm.
I have to say that I haven't been doing 3D printing for very long and don't
have enough experience.
I can only make changes with the PrusaSlicer using Add Part or Add negative
volume.
widening the entire base of the duct, placing the side outlets further
apart.
I also suggested this to the "duct" creator, but he never responded
I hope i get this printed without warping.
With Easy Nylon form Overture (printed with 260°C) no Problem with Warping
But on Strong overhangs create blobs.
No need of �Supports�. I also tried using supports, but the blobs were even
worse.
See attached pictures.
![2024-10-08 21 36 44](https://github.com/user-attachments/assets/c0443f01-eeb1-4f8d-b002-558e20a89d5a)
![2024-10-08 21 34 24](https://github.com/user-attachments/assets/2482c311-713f-45a5-ad2a-7712893251bb)
![2024-10-08 21 31 27](https://github.com/user-attachments/assets/d8179d6d-01cc-47fe-9d1b-1f1537fc5e09)
Werner
From: Max
Sent: Tuesday, October 8, 2024 6:34 PM
To: WernerKr/-Un-original-Prusa-Heated-Drybox
***@***.***>
Cc: Werner Krenn ***@***.***>; Comment ***@***.***>
Subject: Re: [WernerKr/-Un-original-Prusa-Heated-Drybox] Modification ideas:
ESP8266; rotary encoder (Issue #1)
I hope it's ok that I hijack this issue to report my latest findings and
progress.
I've read your notes regarding the temperature distribution being poor
without additional external fans.
Hence, I had a look at the duct
<https://www.printables.com/model/951757-duct-for-unoriginal-prusa-heated-dr
ybox> I believe you are using.
I think the design of the duct has two flaws, which when fixed, might make
the additional fans unnecessary. The original design divides the entire
cross section in three even sections. The outer ones direct the hot air
sideways and the central one downwards. The flaw I see in this is that the
cross section of the duct includes the black plastic frame of the heater,
while the air from the fans solely flows through the metal parts.
This results in most of the hot air flowing in the central section and hence
downward, whereas only a small portion of air is taking the outer section
directed towards the sides.
duct.original.flaw.png (view on web)
<https://github.com/user-attachments/assets/9c83eeef-22c9-44fd-a159-7af86a19
ce7b>
Therefore, I am in the process of redesigning the duct with the following
changes:
* significantly decrease the width of the central section, directing
more air towards the sides
* widening the entire base of the duct, placing the side outlets
further apart.
Here a sneak peek:
duct.redesign.sneak.peek.png (view on web)
<https://github.com/user-attachments/assets/ec462a59-e9ba-44cf-859d-681de3f4
a822>
So far, I have only printed in PETG as design test. Running the fans without
heating, I can confirm that most of the air is exiting the duct sideways. As
of yet, I never printed with Nylon and still waiting for my order to arrive.
I hope i get this printed without warping.
PS: I also ordered an Arduino Nano ESP32. Some more printing of basic frame
parts to do, before I can start coding.
�
Reply to this email directly, view it on GitHub
<#1 (comment)
comment-2400339616> , or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWJXHPMD7BHF6HKJFGQZ64DZ2
QCQVAVCNFSM6AAAAABPL447RSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBQGMZTS
NRRGY> .
You are receiving this because you commented.
<https://github.com/notifications/beacon/AWJXHPKIMQCGD24ERHDEM23Z2QCQVA5CNFS
M6AAAAABPL447RSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTU
PCJDKA.gif> Message ID:
***@***.***
***@***.***
.com> >
|
I'm going to follow with interest the progress of this idea to use an ESP 32, it would indeed allow to have the management of the basic functions plus an efficient log on MQTT. |
@BugsBunny1403 Working on it, but nothing published, yet. The additional temperature sensors gave me trouble so I pushed it aside for a while. But two days ago I finally fixed this. Just a sneak peak what already works on my breadboard:
Missing:
@WernerKr Sorry to highjack your project. Wasn't sure if you were actively working on a switch to ESP32. If you are interested in collaborating, I am willing to clean up my code and publish it even before its finished. |
No Problem! I tried to query DS18B20 temperature sensors with the "normal" Nano, but was unsuccessful. I have already seen MQTT with Home Assistant: Why "moved to VSCode and PlatformIO for development" ?
I would be very interested in that |
I appreciate it 🥇
I've used them before, but struggle time and time again.
Did this before with an ESP8266. So I hope this will be an easy task.
I don't like the Arduino IDE and I am used to VSCode. It is my first attempt with PlatformIO and it seems to work quite trouble-free.
I've published my current state, but it is far from complete: https://github.com/maximweb/drybox-esp32 At the moment I am still working on various individual parts. Still some way to go before putting everything together. |
My Testversion for Home Assistant and MQTT support is now ready - are Arduino IDE files! |
The additional temperature sensors gave me trouble so I pushed it aside for a while. But two days ago I finally fixed this.
What was/is the solution to the problems with the DS18B20 sensors?
…--------------------------------------------
Werner Krenn
Lackenhäuser 149
D-94089 Neureichenau
Germany
***@***.*** ***@***.***>
***@***.*** ***@***.***>
https://www.pc-wetterstation.de
--------------------------------------------
From: Max
Sent: Wednesday, January 1, 2025 7:46 PM
To: WernerKr/-Un-original-Prusa-Heated-Drybox ***@***.***>
Cc: Werner Krenn ***@***.***>; Mention ***@***.***>
Subject: Re: [WernerKr/-Un-original-Prusa-Heated-Drybox] Modification ideas: ESP8266; rotary encoder (Issue #1)
@BugsBunny1403 <https://github.com/BugsBunny1403> Working on it, but nothing published, yet. The additional temperature sensors gave me trouble so I pushed it aside for a while. But two days ago I finally fixed this.
Just a sneak peak what already works on my breadboard:
* use of Arduino Nano ESP32
* moved to VSCode and PlatformIO for development
* SSD1306 128x64 display
* DHT2? temperature and humidity sensor
* 3x DS18B20 temperature sensors (one for duct, two for drybox front)
* rotary button encoder with differentiation between short press, long press, double press (replaces two buttons)
* WiFi connection
Missing:
* push button wiring
* heater & fan wiring
* controller code
* menu code
* MQTT code for Home Assistant
@WernerKr <https://github.com/WernerKr> Sorry to highjack your project. Wasn't sure if you were actively working on a switch to ESP32. If you are interested in collaborating, I am willing to clean up my code and publish it even before its finished.
—
Reply to this email directly, view it on GitHub <#1 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AWJXHPLNCURXVTXBP36RED32IQZV3AVCNFSM6AAAAABPL447RSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRXGEYDQOJXGE> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/AWJXHPKHSQSFUDYUM6NBUJD2IQZV3A5CNFSM6AAAAABPL447RSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUZAL4WW.gif> Message ID: ***@***.*** ***@***.***> >
|
The standard things:
Nano ESP32 specific
|
Thank you very much.
I have now completed a version for Home Assistant support with
Arduino Nano ESP32-S3 for the (un)original heated Drybox (IDE files). See <https://github.com/WernerKr/-Un-original-Prusa-Heated-Drybox> https://github.com/WernerKr/-Un-original-Prusa-Heated-Drybox and there "drybox_Home Assistant_MQTT"
Werner
…--------------------------------------------
Werner Krenn
Lackenhäuser 149
D-94089 Neureichenau
Germany
***@***.*** ***@***.***>
***@***.*** ***@***.***>
https://www.pc-wetterstation.de
--------------------------------------------
From: Max
Sent: Tuesday, January 7, 2025 1:16 PM
To: WernerKr/-Un-original-Prusa-Heated-Drybox ***@***.***>
Cc: Werner Krenn ***@***.***>; Mention ***@***.***>
Subject: Re: [WernerKr/-Un-original-Prusa-Heated-Drybox] Modification ideas: ESP8266; rotary encoder (Issue #1)
What was/is the solution to the problems with the DS18B20 sensors?
The standard things:
* I use the DallasTemperature <https://github.com/milesburton/Arduino-Temperature-Control-Library> library
* The data line needs a 4.7kOhm pullup resistor (for long cables in the tenth or hundred meter, use less)
* DS18B20 is allergic (damages easily) when GND and VCC pins are swapped, so take extra care to check
Nano ESP32 specific
* There is something called pin-remap for the Nano ESP32. It seems the OneWire library required for DallasTemperature does not (yet)support this <PaulStoffregen/OneWire#148> . This meant i had to use the GPIO pin number for it to work.
o I am still not entirely sure how the remapping works, but OneWire always needs a GPIO pin number <https://docs.arduino.cc/tutorials/nano-esp32/cheat-sheet/#esp32-pin-map> .
o This can lead to conflicts as when pin remapping is disabled: Never use Dx names for pins and pure numbers combined.
* I had to set pinMode(<your pin>, OUTPUT) explicitly for the data pin, despite it being used as combined input and output. This is probably related to the remapping issue.
—
Reply to this email directly, view it on GitHub <#1 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AWJXHPJS6XYZNA3C4S6OVSD2JPAOXAVCNFSM6AAAAABPL447RSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZVGEZTOMBXHE> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/AWJXHPJFDX2I4CM55YC5QT32JPAOXA5CNFSM6AAAAABPL447RSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUZPV4TO.gif> Message ID: ***@***.*** ***@***.***> >
|
Since the switch to the Arduino Nano ESP32 is now complete and the data also arrives at Home Assistant both without additional DS18B20 and with this temperature sensor, I now close here |
Hi there,
I am currently in the process of upgrading my MK4(soon to be S) with MMU3 and the (un)original heated drybox. When scouting for possible modifications, I saw your very interesting mod.
I have some ideas for further modifications, which I hope are worth sharing.
Switch from Arduino to ESP8266
Your images indicate that you are using Shelly products to log the temperatures, and it somewhat looked like Home Assistant. Hence, I was thinking about replacing the Arduino with a wifi-capable ESP8266/NodeMCU. This could then push all the sensor data to a self-hosted MQTT server enabling logging and live review of the heater's performance without the need of additional Shelly hardware. (I've some working not-yet-published code for ESP8266 and MQTT, which I could contribute.)
Replace some buttons with a rotary encoder
Another tweak I can think of, vastly improving flexibility, is to replace some of the buttons with a rotary encoder. This gives significant more flexibility and allows to built an entire menu structure. In addition to setting the target temperature, this would also allow to adjust multiple settings, currently hardcoded.
I would love to get your take on my suggestions. It might take some weeks until I have all the default parts for the enclosure ready, but I am willing to contribute some code, as I have helpful bits and pieces already lying around on my harddrive somewhere.
The text was updated successfully, but these errors were encountered: