Go Back   IceInSpace > Equipment > ATM and DIY Projects

Reply
 
Thread Tools Rate Thread
  #1  
Old 10-04-2016, 04:04 PM
ChrisV's Avatar
ChrisV (Chris)
Registered User

ChrisV is offline
 
Join Date: Aug 2015
Location: Sydney
Posts: 1,758
Really easy to make arduino dew heater controller

EASY TO MAKE ARDUINO DEW HEATER CONTROLLER

I needed a dew heater, so thought it was a good time to revisit the excellent Dew Heater controller built in IceInSpace 2010 by Bob Stephens. I had two reasons for doing this:
1. There are some great modular arduino products which make it extremely easy to make. The Nano has a great extension I/O board so all the components CAN BE attached with pre-made connectors. There is NO circuit board making. There is NO soldering onto circuit boards. The ONLY soldering is for the plugs and sockets to connect it to the outside world.
2. Arduino based modules are now very cheap. Apart from the heater straps it costs ~$40 for a 1x channel build (Jan-Feb 2016).
3. Except for the heater it uses very little power. In fact, you can leave it on all the time to monitor temp/humidity – only plug in the heater if needed.
The 1st attached pic show it connected and its inside connections

How the controller works & software
The controller is similar to the build by Bob Stephens (with additional liberation of software from other sources) so I won’t go into details. It is Arduino based and feedback controlled, briefly:
1. DHT22 senses ambient temperature & humidity. The dew point is calculated.
2. DS18B20 temperature sensor placed inside the heater strap senses the temperature of the element to be heated. You’ll need 1x for each bit of glass to be heated. I haven’t done the code for multiple channels yet, but will do so if any interest.
3. Calculate the difference = ( heated element - ambient dew point ).
4. Send a PWM output from the Arduino based on this difference. I have used a threshold for activation of the heater of 5oC above ambient dew point (this is what most seem to use - can be changed in the software). So the PWM output = 0% at +5 oC (and above this) to 100% at 0 oC.
5. This PWM output drives the heater strap via a MOSFET driver module. The heater output increases as the temperature difference between heated element and ambient decreases.
6. The display swaps between showing (1) the ambient temperature, humidity and dew point and (2) the heater temperature, difference to dew point, and heater drive level.

The parts
The parts as follows. The 2nd attached pic shows the main Arduino bits.
• Arduino bits ($10-11 – ebay O/S vendors): Arduino Nano; Nano V3.0 prototype shield I/O extension board expansion module.
• The sensors ($10.50 – ebay O/S vendors): DHT22 Digital temperature/humidity sensor; DS18B20 digital temperature 1-wire sensor (need an extra DS18B20 for each additional heater). The beauty of these is that they are digital – they are plug and play as they do not need calibrating.
• Display ($7 - $12 – ebay local & O/S vendors). I used a 0.96” I2C SPI serial 128x64 OLED display - it is small, so if you only want 1x heater channel it all fits in a small light (box) that I Velcro onto the scope. You can use other display eg 20x4 red LCD display. Any display is fine just as long it is an I2C serial display as it only require 2x connection leads (it wont use up all of the Arduino analog/digital ports if you need multiple heater channels) plus 2x power leads.
• MOSFET driver for heater (ebay O/S vendors). $3.50 1x channel module and ($10 for a 4x channel module).
• Hardware (Jaycar). ~$10-15 for Jiffy box, plugs/sockets, wires and 1x resistor.
• Heater strap (Jaycar & Bunnings). Whatever you want. I won’t describe the heater straps here – I use nichrome as its much easier than resistors (and not difficult to connect to wire as some would have you believe).

The nice thing about the extension I/O board is that each Arduino analog/digital/I2C input/output has pins for that input/output & +5VDCC/GND. So you can just plug the pre-made connectors into the IO board. For the MOSFET driver and display just plug the other end into that module. For the sensors (DHT22, DS18B20), just cut one end off and solder onto the appropriate lead or socket (and cover with heatshrink = wonderful stuff).

The circuit
The circuit and how you put it together as follows (shown in the 3rd attached pic). A few things to note:
• The DHT22 attaches to the outside of the box. So get 3x connectors, cut off one end, solder to the DHT22 leads and cover soldering with heatshrink (1.5 – 2.55mm). See the 4th attached pic.
• Have used parasitic mode for the BS18B20 (so only need 2x wires instead of 3x). So you can’t go wrong wiring it up. Just connect the 2 outside ones together – these go to GND; the central one goes to the signal of digital 12. If you cover up all the solder joints and its connections to the 2 core wire with heatshrink it is nice and watertight (see 4th attached pic). There might also have to be a one line change to code in the library of you find it doesn’t work (I can provide details).
• The serial display – just needs 4x wires. Don’t forget to swap over the SCL & SDA connections between display and extension I/O board.
• MOSFET driver connections = easy.
• Power – run the 12V input to both the Arduino extension IO board and the MOSFET driver.

Getting it going
Before you do the whole build its best to put it together in stages and test each bit.
1. First put Arduino on your PC or Mac, load up the attached sketch (it will need a few libraries uploaded – should happen automatically). Don’t worry if you haven’t used Arduino before – its not too hard.
2. At this stage its best to put it together in stages to check it works. (1) plug in the DHT22 and check that it reads the ambient temp/humidity. (2) plug in the Ds18B20 and check that it reads heater sensor temp and calculates the heater output. (3) Plug in MOSFET driver and heater strap – does it heat it.
3. Put it all together in a jiffy box.


Cheers, Chris
Attached Thumbnails
Click for full-size image (Slide1.JPG)
141.4 KB1331 views
Click for full-size image (Slide2.jpg)
139.7 KB1264 views
Click for full-size image (Slide3.jpg)
105.5 KB1472 views
Click for full-size image (Slide4.jpg)
134.0 KB1197 views
Click for full-size image (Slide5.jpg)
90.0 KB1207 views
Attached Files
File Type: zip DewHeaterControllerV3.zip (2.6 KB, 476 views)
Reply With Quote
  #2  
Old 10-04-2016, 04:45 PM
janoskiss's Avatar
janoskiss (Steve H)
Registered User

janoskiss is offline
 
Join Date: Jan 2005
Location: Sale, VIC
Posts: 6,033
Your definition of "easy" may not be agreed upon by everyone... The instructions that you posted look complicated enough. Nevertheless, it's going in my TODO bookmarks folder. Thanks!
Reply With Quote
  #3  
Old 10-04-2016, 06:16 PM
Astroman's Avatar
Astroman (Andrew Wall)
<><><><>

Astroman is offline
 
Join Date: Feb 2005
Location: Paralowie, South Australia
Posts: 4,367
I will bookmark this page, it looks a great little project, after I manage to do a stepper controller for a moonlite focuser. May take a while, so hopefully the page doesn't disappear.

Thanks for putting this up, will save the zip file for future references..
Reply With Quote
  #4  
Old 10-04-2016, 07:02 PM
DavidTrap's Avatar
DavidTrap (David)
Really just a beginner

DavidTrap is offline
 
Join Date: Jun 2009
Location: Brisbane
Posts: 3,040
Hi Chris,

Can dew not or kendrick dew straps be used with this device??

Ta
DT
Reply With Quote
  #5  
Old 11-04-2016, 09:18 AM
aarong (Aaron)
Registered User

aarong is offline
 
Join Date: Mar 2013
Location: Lower Blue Mountains, NSW
Posts: 92
Thank you for the detailed write up. Very interesting. I've just started my Arduino adventure, so really interesting post.

Cheers,
Aaron
Reply With Quote
  #6  
Old 11-04-2016, 10:15 AM
ChrisV's Avatar
ChrisV (Chris)
Registered User

ChrisV is offline
 
Join Date: Aug 2015
Location: Sydney
Posts: 1,758
David

Just depends upon the current they draw. I've used IRF520 MOSFET module. This can do 1amp as is, and up to 5amps with a heatsink. I've used it on a 4" refractor and an 8" SCT and its fine without a heatsink - but conditions don't require a massive heat drive in Sydney. The rule of thumb is that if the mosfet feels too hot then it isn't coping - so add a heatsink or go for a higher power module.

I couldn't find the specs on the Kendrik straps. But the Astrozap 4" heater is 0.6A, 6" is 0.8A and 8" is 1.2A - so it will be fine with those. Just look up whatever heater strap you have and see what current it draws then compare to the above IRF520 specs. And don't forget - most of the time the heater will be running on a low duty cycle if conditions aren't terrible. So if the heater is running 50% duty cycle this equates 0.6A for the above 8" strap.

The thing about the setup I have described is that it uses simple interchangeable modules, so if you need higher power then just get a higher power mosfet module. I'll have a look for some higher power modules when I get a chance. But really, if your need to draw more than 5amps - thats 60W ! Might as well pull out a hair dryer !!!!

Thanks for your interest. Chris

Quote:
Originally Posted by DavidTrap View Post
Hi Chris,

Can dew not or kendrick dew straps be used with this device??

Ta
DT
Reply With Quote
  #7  
Old 11-04-2016, 01:39 PM
DavidTrap's Avatar
DavidTrap (David)
Really just a beginner

DavidTrap is offline
 
Join Date: Jun 2009
Location: Brisbane
Posts: 3,040
Thanks Chris,

I'd be looking at this for a warming the mirror of a 10inch RC. The strap wraps around the inside edge of the tube and heats the mirror by radiant heat.

I only want to keep the mirror a degree or so above ambient dew point.

The current draw would be 1.6 amps at maximum. Any suggestion of what model Mofset I would require? (Much to learn about all this stuff!)

Ta
DT
Reply With Quote
  #8  
Old 11-04-2016, 04:51 PM
redbeard's Avatar
redbeard (Damien)
Registered User

redbeard is offline
 
Join Date: Nov 2010
Location: Adelaide
Posts: 558
Hi Chris,

Well done with this device.

The funny thing is, I have made one almost exactly the same as yours. As I was reading your article I was thinking, that sounds familiar.

Same temp sensors and humidity sensor.

The difference with mine is I am using the Freetronics N-MOSFET Driver which can handle up to 40 Amps so pulling up to 3 amps, does not even get hot. Also have 2 channels.

I have also taken advantage of the USB connection and do stats that can be imported into Excel to show all parameter info. That way the unit can be monitored all night to check the performance. As I'm always using the laptop, I have written some software to show all the parameters live.

Apart from fully auto mode, I aslo have a manual mode built in where 4 different settings for each channel can be set. Also these settings can be custonised to whatever suits the users scope/location. To top it off, it starts to the sound of Black Dog by Led Zeppelin!

I use 2 LED's to display the modes and that also helps to keep things light as it's mounted on the tube.

Great minds think alike. I'll post details of mine when I get a chance.

Cool!

Cheers,

Damien.
Reply With Quote
  #9  
Old 11-04-2016, 06:39 PM
DavidTrap's Avatar
DavidTrap (David)
Really just a beginner

DavidTrap is offline
 
Join Date: Jun 2009
Location: Brisbane
Posts: 3,040
Sounds very interesting Damien!

DT
Reply With Quote
  #10  
Old 11-04-2016, 09:14 PM
ChrisV's Avatar
ChrisV (Chris)
Registered User

ChrisV is offline
 
Join Date: Aug 2015
Location: Sydney
Posts: 1,758
I like the Zeppelin touch ! What about Sabbath, Pigs of War, with them coming out for a tour ?

Manual mode - good idea.
I was after an easy build that wouldn't scare people too much.
Love to see your build. Yes, it takes as long to write it up as design it.

Quote:
Originally Posted by redbeard View Post
Hi Chris,

Well done with this device.

The funny thing is, I have made one almost exactly the same as yours. As I was reading your article I was thinking, that sounds familiar.

Same temp sensors and humidity sensor.

The difference with mine is I am using the Freetronics N-MOSFET Driver which can handle up to 40 Amps so pulling up to 3 amps, does not even get hot. Also have 2 channels.

I have also taken advantage of the USB connection and do stats that can be imported into Excel to show all parameter info. That way the unit can be monitored all night to check the performance. As I'm always using the laptop, I have written some software to show all the parameters live.

Apart from fully auto mode, I aslo have a manual mode built in where 4 different settings for each channel can be set. Also these settings can be custonised to whatever suits the users scope/location. To top it off, it starts to the sound of Black Dog by Led Zeppelin!

I use 2 LED's to display the modes and that also helps to keep things light as it's mounted on the tube.

Great minds think alike. I'll post details of mine when I get a chance.

Cool!

Cheers,

Damien.
Reply With Quote
  #11  
Old 17-04-2016, 10:06 PM
DavidTrap's Avatar
DavidTrap (David)
Really just a beginner

DavidTrap is offline
 
Join Date: Jun 2009
Location: Brisbane
Posts: 3,040
Quote:
Originally Posted by ChrisV View Post
David

I'll have a look for some higher power modules when I get a chance.

Thanks for your interest. Chris
Hi Chris,

Just wondering if you've had a chance to find any higher power modules. I'm a complete novice at this sort of electronics, so really appreciate any assistance you can offer.

Can you suggest a heatsink for the MOSFET module pictured in your build? I'd like to be able to cope with a 2 amp load through the dew strip.

I had a look at the N-MOSFET that Damien suggested. I'm not sure if that is compatible with your project - I think it triggers differently?

Regards,

DT
Reply With Quote
  #12  
Old 18-04-2016, 02:10 PM
ChrisV's Avatar
ChrisV (Chris)
Registered User

ChrisV is offline
 
Join Date: Aug 2015
Location: Sydney
Posts: 1,758
The IRF520 module will be fine at 2A if heatsinked.
Get a TO-220 Heatsink (6021 Type) from jaycar. Its $1.45, plus paste and washer.
I'll measure what mine is doing over the next few nights - with heaters for 4" and 8" scopes.

Or use the freetronics NDRIVE Damien suggested - that's great and only $4 ! The freetronics site has the wiring for it also.

Just remember to run the 12V and GND from the power input directly to whatever mosfet module you use and also to the arduino (as in the diagrams and pics in my post). The mosfet power doesn't come from the arduino.


Quote:
Originally Posted by DavidTrap View Post
Hi Chris,

Just wondering if you've had a chance to find any higher power modules. I'm a complete novice at this sort of electronics, so really appreciate any assistance you can offer.

Can you suggest a heatsink for the MOSFET module pictured in your build? I'd like to be able to cope with a 2 amp load through the dew strip.

I had a look at the N-MOSFET that Damien suggested. I'm not sure if that is compatible with your project - I think it triggers differently?

Regards,

DT

Last edited by ChrisV; 18-04-2016 at 02:22 PM.
Reply With Quote
  #13  
Old 18-04-2016, 04:59 PM
DavidTrap's Avatar
DavidTrap (David)
Really just a beginner

DavidTrap is offline
 
Join Date: Jun 2009
Location: Brisbane
Posts: 3,040
Thanks Chris,

Will start accumulating some bits and pieces.

DT
Reply With Quote
  #14  
Old 18-04-2016, 05:09 PM
ChrisV's Avatar
ChrisV (Chris)
Registered User

ChrisV is offline
 
Join Date: Aug 2015
Location: Sydney
Posts: 1,758
David

A guinea pig !! Good luck.
PM if need any help.

Chris
Reply With Quote
  #15  
Old 19-04-2016, 09:30 PM
DavidTrap's Avatar
DavidTrap (David)
Really just a beginner

DavidTrap is offline
 
Join Date: Jun 2009
Location: Brisbane
Posts: 3,040
Thanks Chris,

You may regret your offer of assistance. I have zero experience with electronics!

Most of the parts are on a slow boat from SE Asia, so I don't expect to have all the bits for a month or so.

DT
Reply With Quote
  #16  
Old 01-05-2016, 08:36 AM
hikerbob's Avatar
hikerbob (Bob)
Registered User

hikerbob is offline
 
Join Date: Jan 2008
Location: Redlands, Australia
Posts: 253
Chris thanks for the kind words about my older design. Glad to see that it continues to be of use. Thanks also for sharing what you have done and the benefits that brings to others. Love the power of the web to enable us to share and build on others work (as much of mine was done by pulling other stuff together). Bob
Reply With Quote
  #17  
Old 03-05-2016, 08:17 AM
ChrisV's Avatar
ChrisV (Chris)
Registered User

ChrisV is offline
 
Join Date: Aug 2015
Location: Sydney
Posts: 1,758
Bob

More than useful. It had to change for me as I'm a messy solderer. I wonder what the next version will look like, Damien's sounds pretty intense.

Chris
Reply With Quote
  #18  
Old 03-05-2016, 09:17 PM
redbeard's Avatar
redbeard (Damien)
Registered User

redbeard is offline
 
Join Date: Nov 2010
Location: Adelaide
Posts: 558
HI again to all,
Sorry about the late reply.
I've added some pics to show what I've done.

How it works is fairly simple:
With the switch in the manual position, the unit will use presets that have been pre designated. In one of the photos, you can see the heater settings can be set for each channel and each channel has 4 heater settings that can be selected by using the small push button. These settings get downloaded and saved in the eeprom.

By pressing this button in, it will cycle through the different heat settings and beep and flash to let you know which setting has been selected. 1 flash and beep for level 1, keep holding the button in,,,2 flash and beeps for Level 2 .......etc. When using the software, it will display the selected settings. The unit does not need the software to run, it's stand alone, but the software is a bonus.

When the switch is in automatic mode, the unit just works and uses the sensors to detect the ambient temp, RH, and heater temperatures to set the heater output PWM. My favorite setting.

The software is fairly straight forward in respect to features, and multiple files can be saved with different settings, (perhaps for different locations).
The unit is very light itself which is great for mounting on the telescope tube.

You can use any software to read in the values as the data is simple and easily imported.

The Humidity/temp sensor on the top, I just wrapped white electrical tape around it for a little protection.

There are a few prototype holes drilled where they should not be, lol.
The centre connection on the front has 2 RCA connectors for the dew heaters and the central connector is for power. I love these power connectors and try to fit to all my gear as I have several 5 amp power supplies with the same mating connectors. The 2 LED's below this are the indicators.

The rear connections are for the 2 temp sensors with the USB in the middle. Below the USB is the small button for selection and the switch below that to select modes. Always use a fuse somewhere logical in the power feed. I have an inline one I use, not shown.

I use DEW NOT heaters as they are reasonably priced and work well.
The photos show the software, (excuse my galaxy pic, couldn't help myself), in operation as well as the settings form.

I've really appreciated reading about your project and I'm guessing you got a buzz when it was working as I did. This is fun stuff.

There is also another guy here on IIS, (Garbz), who has also built an amazing all things device. Look it up. He really knows what he is doing and helped me with some advice on saving memory!

Cheers,
Damien.
Attached Thumbnails
Click for full-size image (p3.jpg)
18.7 KB551 views
Click for full-size image (p4.jpg)
37.0 KB517 views
Click for full-size image (p5.jpg)
36.9 KB479 views
Click for full-size image (pp1.jpg)
149.2 KB502 views
Click for full-size image (pp2.jpg)
147.6 KB501 views
Click for full-size image (pp3.jpg)
137.4 KB475 views
Click for full-size image (pp4.jpg)
171.1 KB556 views
Click for full-size image (pp5.jpg)
163.4 KB435 views

Last edited by redbeard; 03-05-2016 at 10:57 PM.
Reply With Quote
  #19  
Old 03-05-2016, 09:18 PM
redbeard's Avatar
redbeard (Damien)
Registered User

redbeard is offline
 
Join Date: Nov 2010
Location: Adelaide
Posts: 558
Other pics attached.

Data in Excel with graph.

Cheers,

Damien.
Attached Thumbnails
Click for full-size image (ppp6.jpg)
140.4 KB305 views
Click for full-size image (ppp7.jpg)
183.7 KB287 views

Last edited by redbeard; 03-05-2016 at 09:30 PM.
Reply With Quote
  #20  
Old 04-05-2016, 07:42 AM
ChrisV's Avatar
ChrisV (Chris)
Registered User

ChrisV is offline
 
Join Date: Aug 2015
Location: Sydney
Posts: 1,758
Nice build Damien !
Reply With Quote
Reply

Bookmarks

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time is now 05:33 AM.

Powered by vBulletin Version 3.8.7 | Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Advertisement
Bintel
Advertisement