Dew Heater Service #830
Replies: 21 comments 44 replies
-
Thanks for your post, I have dew heaters working but would like to explore your code . Currently the 12V - 33 ohm resistor array heater is controlled by a pulse width modulator set to 33% which keeps the plexi-dome clean but also adds a little heat to the ZWO ASI178 body. Heater position should be high and away from the camera body if possible. I look forward to your improvements. Bill in Southern California
…Sent from my iPad
On Dec 2, 2021, at 4:20 AM, Curtis ***@***.***> wrote:
As a companion service to allsky, I built a dew heater (yes, yet another dew heater!) system with the software implemented as a service. It is relatively simple: uses a DHT22 to sense temperature and humidity, calculates dew point using these parameters, closes or opens a relay based upon dew point and other parameters. It also has minimum and maximum temperature set points which will switch the relay on/off independent of dew point.
My physical dew heater is a hacked USB dew heater for camera lenses (because I had an extra), but this should also work with a high temp resistor circuit.
I have not yet extensively tested this code so if you want to pitch in and test here is the link:
https://github.com/Curtis2012/dewheater
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
Holy dome temps Batman!!! "Dec 03 15:24:02 allsky python3[406]: Safety temperature exceeded, shutting down" Until I installed the dew heater software I didn't know how hot it got under that acrylic dome here in the Tropics (duh!). It hit 52C today! I originally put the safety shut down logic in to handle the event of a malfunctioning dew heater, but now I see that I need to add some fans that help ventilate the dome too. The temp of the Pi itself was in normal ranges during this event, it just got really hot under the dome. Next up...fans/ventilation project! |
Beta Was this translation helpful? Give feedback.
-
Considering the air is not clean and eventually the inside of the dome will become dirty maybe a better idea would be to have a cover rotate above the dome to shield the hot sun. This could be accomplished with your present app plus a small routine to excite a model airplane servo to rotate a cover over the dome top. Model airplane servos are strong and cheap, around 10 bux USD, operate from 5 volts, rotate about 170 degrees, 5V pulse width modulated 5Volt logic input signal. Bill acj
…Sent from my iPad
On Dec 3, 2021, at 12:42 PM, Curtis ***@***.***> wrote:
Holy dome temps Batman!!!
"Dec 03 15:24:02 allsky python3[406]: Safety temperature exceeded, shutting down"
Until I installed the dew heater software I didn't know how hot it got under that acrylic dome here in the Tropics (duh!). It hit 52C today! I originally put the safety shut down logic in to handle the event of a malfunctioning dew heater, but now I see that I need to add some fans that help ventilate the dome too. The temp of the Pi itself was in normal ranges during this event, it just got really hot under the dome.
Next up...fans/ventilation project!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
AllSkayCam Tropical Edition... I painted the entire housing white, including most of the acrylic dome (my attempt at masking off a circle on top of the dome came out a bit ghetto, but it works). It helped, but temps still got over 45C under the dome today. Maybe a glycol cooler for under the dome... ; ) |
Beta Was this translation helpful? Give feedback.
-
Peter,
Thanks. I will take a look.
I am currently fixing some bugs and adding some features, I will make
sure to test for this problem. I should push the changes to the main
branch in a few days.
Curtis
Peter Altschul ***@***.***> escribió:
… Hello "Curtis2012"
I tested your "DewHeater"-Program now with manualy "implented"
humidity, temperature variables (see below) , but only the
"cycleRelay" is working fine and then:
`Temp = 0.0C Humidity 80.0% Dew Point = -3.0C`
`Dew heater min temp reached, turning dew heater on`
`Dew heater off`
no Relay-activity. So i think, a "dewHeater ON" command in module
**checkTemps(self)** is missing?
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#830 (reply in thread)
|
Beta Was this translation helpful? Give feedback.
-
New version committed to main today! Substantially refactored the code. I like this version much better. Added "fakeDewPoint" parameter to config file for testing purposes. If set then temp will be set to below dewpoint. |
Beta Was this translation helpful? Give feedback.
-
Peter, I think that supporting inverted on/off logic is a good feature, so I created a branch and added it. Appears to work fine on my config, but I am running non-inverted logic. Would be good to test on an actual inverted logic config. It would be great if you could test that when you have the time. I added a Boolean field to the config file "invertOnOff" that controls this behavior. I've created this code in a new branch. Link below: https://github.com/Curtis2012/dewheater/tree/FEAT-invert_on_off |
Beta Was this translation helpful? Give feedback.
-
Steppers require extra circuitry and can be power hungry unless you put the step driver into sleep mode when the final position is reached. It seems pulsing a simple DC motor and using limit switches would draw minimum power at a super cheap cost to build. Another idea : An RC Servo ($10) does not require a driver, runs on low power 5V, includes a strong gear box . Just putting some ideas on the table.
…Sent from my iPad
On Dec 21, 2021, at 5:29 PM, Curtis ***@***.***> wrote:
Good, glad its working for you.
I am also working on sun cover. My plan is a half dome that rotates over the acrylic dome under stepper motor control. I've drawn up the half dome in Fusion 360, now just need to 3D print it. I have stepper motors on hand. Just need to write the code and figure out the mounting details.
I will probably implement the sun awning control code as a separate service from dew heater.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
Latest version of code merged to main. |
Beta Was this translation helpful? Give feedback.
-
Just found a minor bug and fixed it, relating to minTempOn. There was a typo in this variable name...one downside to interpreted languages: it just becomes a new variable! As a result once minTempOn was set to true it would never go false again (even though the relay would be turned off). Fixed and merged to main. |
Beta Was this translation helpful? Give feedback.
-
Post your progress when possible, I’m fine tuning my enclosure design because I was anxious to use the camera (3 years now) and never finished the electronics container. Good Luck ..
…Sent from my iPad
On Dec 24, 2021, at 4:44 AM, Curtis ***@***.***> wrote:
Its not so bad here in Panama, I can ship small stuff in duty free, and pick it up near my home about 7 days after hits Miami. I used to live in Belize...very tedious and very expensive there. I just have the steppers & controllers on hand already and they should work for this.
I like the iris idea, if nothing else for the cool factor. Will take a look.
Thanks for the input.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
Looks promising. How about documenting what the dependencies are? Such as which python version, pip requirements, etc? For someone who just tries to clone it and then run the python script they wont be able to out of the box. |
Beta Was this translation helpful? Give feedback.
-
Also include how to get this working with a Pi 4. https://forums.adafruit.com/viewtopic.php?f=19&t=165722 |
Beta Was this translation helpful? Give feedback.
-
Hi all, |
Beta Was this translation helpful? Give feedback.
-
The first error is a common issue on Rpis and in most cases you can safely ignore it.
The second is not finding the GPIO library. This normally does not require explicitly importing, but maybe in your environment. Import that library explicitly and see if that helps.
Re displaying in the GUI, you will have to ask one of the GUI developers here.
En 29 de enero de 2022 10:05, en 10:05, ON2ON-HAM ***@***.***> escribió:
Hi all,
Strugling with 2 errors on my end, hopelully someone can give some
help.
Also i would like to read out the data of the sensor, and post it on
the GUI/Web page of Allsky.
Thanks in advance
73 ON2ON
![afbeelding](https://user-images.githubusercontent.com/27927522/151665989-448d1925-ba5a-4e55-bc2e-9e033745079b.png)
--
Reply to this email directly or view it on GitHub:
#830 (comment)
You are receiving this because you authored the thread.
Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
For importing the module look through the steps for setting up a DHT sensor
by Adafruit. Make sure when you do it you are doing it for python3 &
pip3. You may have to do it for python & pip depending on your
environment, but you should be running python3 as python2 is no longer
supported.
You can also use their sample scripts to query the sensor which you can
pipe to a text file. In the allsky settings you can specify this file as
the extra file. For example I have a python script that I run like this:
dht11.py > temp.txt
The other thing you can do it setup NodeRed and do things from there. I
use Home Assistant for many, many things and I have NodeRed running on the
Allsky Pi that will take the DHT sensor and push out MQTT to my HA server
which is then on my Dashboard. I have a sensor sitting up by the camera
and another sitting in the enclosure for the PI. I can turn the sensor on
through HA by running the dewheateron.py script through a remote exec
command. It also reports the status of the heater if it is on or off. All
this keeps my images clean with no text.
Here is what my HA looks like for Astro:
[image: image.png]
And NodeRed on the Allsky PI:
[image: image.png]
…On Sat, Jan 29, 2022 at 9:48 AM Curtis ***@***.***> wrote:
The first error is a common issue on Rpis and in most cases you can safely
ignore it.
The second is not finding the GPIO library. This normally does not require
explicitly importing, but maybe in your environment. Import that library
explicitly and see if that helps.
Re displaying in the GUI, you will have to ask one of the GUI developers
here.
En 29 de enero de 2022 10:05, en 10:05, ON2ON-HAM ***@***.***> escribió:
>Hi all,
>Strugling with 2 errors on my end, hopelully someone can give some
>help.
>Also i would like to read out the data of the sensor, and post it on
>the GUI/Web page of Allsky.
>Thanks in advance
>73 ON2ON
>
>
>![afbeelding](
https://user-images.githubusercontent.com/27927522/151665989-448d1925-ba5a-4e55-bc2e-9e033745079b.png
)
>
>
>--
>Reply to this email directly or view it on GitHub:
>
#830 (comment)
>You are receiving this because you authored the thread.
>
>Message ID:
***@***.***>
—
Reply to this email directly, view it on GitHub
<#830 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUN2CFLMJT3LBZM3FL22JXDUYQD4XANCNFSM5JG7G7SA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Test is working now ! relay is switching ! thanks again,, now to get some DHT values into a text file ;) |
Beta Was this translation helpful? Give feedback.
-
@ON2ON-HAM See the Wiki page "Overlays Explained". It will tell you exactly what to do from an Allsky point of view. |
Beta Was this translation helpful? Give feedback.
-
So I have put all this in place and is working. |
Beta Was this translation helpful? Give feedback.
-
DewHeater Service now supports either DHT22 or BME280! I pushed the latest version of the DHT/BME code to the "merge_BME280_and_DHT_support" branch. It has been up and running on my allskycam for about a week now, but could use more testing (especially in a colder environment). Open tasks:
Volunteers welcome! |
Beta Was this translation helpful? Give feedback.
-
Recently promoted some changes to master. Including support for either BME280 or DHT22 sensor. Details here: |
Beta Was this translation helpful? Give feedback.
-
As a companion service to allsky, I built a dew heater system (yes, yet another dew heater!) with the software implemented as a service. It is relatively simple: uses a DHT22 to sense temperature and humidity, calculates dew point using these parameters, closes or opens a relay based upon dew point and other parameters. It also has minimum and maximum temperature set points which will switch the relay on/off independent of dew point.
My physical dew heater is a hacked USB dew heater for camera lenses (because I had an extra), but this should also work with a high temp resistor circuit.
I have not yet extensively tested this code so if you want to pitch in and test here is the link:
https://github.com/Curtis2012/dewheater
Beta Was this translation helpful? Give feedback.
All reactions