Robert Brown Arduino dew controller build, step by step #6

I have now soldered all the resistors and capacitors to the PCB:

Yes, I have put all the resistors the same way around. I can’t help myself 🙂

My favoured method for dealing with the resistors is to put a group of them in place, bending the leads over underneath themselves to hold the resistors loosely in place, then gently press a bit of blutak over the top of the entire group to hold them on the PCB without moving. Now they won’t shift about it’s a matter of seconds per lead to solder them using the magnifying glass to get a good view of what I’m doing.

The capacitors needed a little adjustment with the pliers to get the leads through the holes, but I didn’t push them down to far to avoid damaging them.

Next I think I’ll do all the pin headers, leaving the semi-conductor components until last so there’s minimal handling once they’re in place.

Posted in Astro Equipment, Astronomy, Projects | Tagged , | Leave a comment

Robert Brown Arduino dew controller build, step by step #5

Time to start some actual construction!

Whilst the PCB was uncluttered I decided the first job would be to solder on the headers for the Arduino, so I used the junior hacksaw to cut a couple of 15-pin lengths from the headers. I kept the blade up tight to the sixteenth pin so as to avoid exposing the fifteenth. If the finished cut is a bit ragged, a couple of gentle strokes with fine sandpaper cleans it up.

I used a couple of the male pin headers to keep the headers in the correct positions whilst soldering and to balance the board when it was upside down.

Then flipped it over and soldered all the pins

I didn’t notice at the time, but I need to clean up the two top right pins just a little when I next have the soldering iron hot.

And from the upper side of the board…

Next I’ll get all the resistors done I think.

Posted in Astro Equipment, Astronomy, Projects | Tagged , | Leave a comment

Robert Brown Arduino dew controller build, step by step #4

Right then… Components… I’ve given links to the places I purchased parts from where they still exist or if I still have them, but a few things I already had. I have no connection with any of the vendors and I’m not suggesting anyone should buy from these specific vendors. They’re more for information and guidance. The photos may not show the number of each component required — I was buying to make at least three of these (and so the links to where I bought them might have more than you need, too.)

I’ve already covered the PCB in my earlier post.

Simple stuff first. Resistors, twenty in all:

4 x 330 ohm
1 x 1 Kohm
3 x 1.2 Kohm
1 x 2.2 Kohm
4 x 4.7 Kohm
6 x 10 Kohm
1 x 1 Mohm

The documentation doesn’t suggest power ratings or tolerance, but the PCB design appears to suit 0.25W resistors and those are what look to be used in the build photos, so that’s what I went with. I assumed 5% tolerance would be ok.

Most of these I had anyhow, but those I was missing I bought from here:

https://www.ebay.co.uk/itm/High-Quality-0-25W-Resistors-100-330-470-1K-4-7K-10K-100K-OHM-UK-STOCK-New/200933857810

Capacitors. Just the two.

1 x 0.1uF
1 x 0.33uF

Bought from https://www.ebay.co.uk/itm/Monolithic-Multilayer-Ceramic-Capacitors-10-Pack-Choose-PF-NF-UF-Free-P-P/231332330771
Diodes

From https://www.ebay.co.uk/itm/1N5800-Series-Schottky-Diodes-1N5819-1N5822-Various-Pack-Sizes/152056021097 and https://www.ebay.co.uk/itm/5-x-10A10-Rectifier-Diode-10A-1000V/252434225368.

All of these actually have leads that I’d consider over large and don’t fit through standard PCB holes. With stripboards you can probably just enlarge the hole slightly, but with a prefab PCB an alternative solution needs to be found. For my first controller I bodged it, but this one I’m going to try to make a better job of it. I’ll return to this when I get that far.

LEDs

1 x 5mm Multicolour RGB LED model KY-016

https://www.ebay.co.uk/itm/RGB-3-Colour-Full-Color-Led-Module-KY-016-For-Arduino-Raspberry-PI/263230411143

4 x 3mm 12V LED with resistor

For the rest of the LEDs the documentation shows blue LEDs whilst the PCB seems to suggest one of each of red, green and blue, as well as a fourth for the power indicator. I just used red ones throughout. I don’t think anything is gained by using different colours really. The documentation also suggests these should come with a bezel, but I couldn’t find any so had to buy them separately.

https://www.ebay.co.uk/itm/Pre-Wired-3mm-LEDs-With-Resistors-Various-Colours-5v-6v-9v-12v-Pack-of-5/123912557473

Other ICs and similar

4 x FQP30N06L MOSFET — I didn’t need to buy these.

1 x LM7808 8V voltage regulator (TO-220 package)

I got these from ebay, but the listing no longer exists

1 x DHT22 humidity sensor

https://www.amazon.co.uk/gp/product/B06XF4TNT9/

1 x LCD2004 LCD module & I2C interface

From here: https://www.amazon.co.uk/gp/product/B0725KXF99/

3 x DS18B20 thermal probe sensor

https://www.amazon.co.uk/gp/product/B075FYYLLV/

1 x DS18B20 thermal sensor in TO-92 package

I already had some of these, but they should be easy enough to find on Amazon or Ebay

1 x Arduino Nano V3

I bought as a pack of five: https://www.amazon.co.uk/gp/product/B07F8NW9JF/

And the other bits of hardware…

1 x USB B panel mount socket to mini USB plug

This is specified as a right-angle mini USB plug, but I couldn’t find any so I bought one with a straight plug. The case I designed has sufficient room for it, though it is possible to buy a right-angle converter (link also below). It only saves a couple of millimetres however.

https://www.ebay.co.uk/itm/30cm-Mini-5-pin-Male-to-USB-2-0-B-Female-Socket-Printer-Panel-Mount-Cable-Cord/231961140556

https://www.amazon.co.uk/Degree-Angled-Female-Extension-Adapter/dp/B015PRVI62/ref=pd_sbs_23_2/257-8654966-0092832

3 x RCA panel mount sockets

I had these already. They’re easy enough to find. For example:

https://www.ebay.co.uk/itm/RCA-Phono-Chassis-Panel-Mount-Socket-Connector-Red-White-Yellow-Black-x-8/222523856989

1 x panel mount power socket

This is specified as 5.5mm with a 2.5mm centre pin. Pretty much all my other kit (mount, cameras etc.) uses a 5.5mm x 2.1mm socket though, so I used that size instead. I actually bought it with the matching plug so I can make up my own power lead to the correct length.

https://www.amazon.co.uk/gp/product/B07QNWSKN2/

1 x 5mm x 20mm panel mount fuse holder
1 x 6A 5mm x 20mm glass fuse

I already had the fuse holders. The fuses came from here:

https://www.ebay.co.uk/itm/Glass-Fuse-10-Pack-250V-5x20mm-Choose-from-available-values-Free-UK-P-P/261899073442

1 x 40mm 12V fan

It’s claimed that you don’t really need this for the MOSFET build, but I chose to fit one anyway, just in case. The voltage regulator may well be happier for it anyhow.

https://www.ebay.co.uk/itm/4X-40mm-12V-Brushless-Computer-Case-System-Laptop-3D-Printer-DVR-Cooling-Fan-UK/153575881605

5 x TO-220 heatsink (with screw)

Again, these may not be required for the MOSFETs, but I decided to fit them anyhow (though slight modifications were required that I’ll talk about later). It’s probably a good idea to fit one to the voltage regulator regardless.

https://www.ebay.co.uk/itm/TO220-TO-220-Heatsink-Alloy-Various-Pack-sizes-For-Voltage-Regulators-etc-Pin/263988492509

5 x mica insulator and bush washer for TO-220 heatsink

I got these from ebay, but the listing no longer exists. The mica piece insulates the heatsink electrically from the component and the bush for the screw ensures the screw can’t make electrical contact with the component either.

3 x 6P4C panel mount connector and plugs

Sometimes also called an RJ11 or RJ12 socket/plug. In our case although it’s a six position (6P) connector, not all the contacts are required so we can make do with four (4C). 6P6C would work just as well. 6P2C won’t. If you don’t have the tool for crimping the plugs on and don’t wish to buy it then some other type of socket and plug would probably do just as well. I was tempted by 3.5mm stereo jack plugs and sockets but was warned by Robert Brown that they cause problems. I’ll return to this in a later post.

https://www.ebay.co.uk/itm/20x-RJ11-6P4C-Phone-Crimp-Connectors-Plugs-Ends-Cat3-ADSL-4-Pin-Fax-Telephone/254173063867

I also bought the sockets from Ebay, but the listing has now gone.

1 x SPDT mini toggle switch

I already had some of these, still in their Maplin packaging! If you want to use the “Force heaters full on” feature, you’ll actually need three of these.

1 x 5mm LED bezel
4 x 3mm LED bezel

You can probably get away without using these, but it does make things look neater. The first set of 3mm ones I ordered (from elsewhere) were utter rubbish. These are a little better.

https://www.amazon.co.uk/gp/product/B07LD7W2PC/

https://www.amazon.co.uk/gp/product/B07H4M3N3D/

2 x female 15 pin headers (for the Nano)

Using these means it’s easy to replace the Nano if it fails, but I couldn’t find any suitable 15-pin headers. Instead I bought longer ones and cut them down to size with the junior hacksaw. (It’s the black single female strip connector on this listing.)

https://www.ebay.co.uk/itm/263827548381

male pin headers

Quite a few of these are required for all the off-board connections and they can be bought from the link above — two of the male 40-pin headers should be sufficient. They can be cut to the right number of pins with a pair of side-cutters. However, that leaves you needing to make up the plugs to go on them, so instead I bought this, which includes the crimping tool, pins and plug bodies.

https://www.amazon.co.uk/gp/product/B07S1SDKSC/

If you don’t fancy making them up yourself at all, the following will do the job for most connections. I’d suggest you’d need six of the 20cm female to female strips.

https://www.ebay.co.uk/itm/Dupont-Ribbon-Cable-10-20-or-30cm-Male-Female-Or-Mixed-UK-Free-P-P/233180441032

But if you do go that route it may well be sensible to solder the power connector, power switch, fuse and dew strap wires direct to the PCB and not use pin headers at all.

Wire

I had some twin-core automotive wire that I think I bought from Amazon rated for 11A that I use to make up 12V power cables in the observatory. I also used it for the power connections inside the controller (power supply to PCB, power switch, fuse connection and dew controller connections). Where it was easier to have the two cores separate, I just stripped off the outer insulation to separate the wires.

Heatshrink

I have heatshrink in various sizes that I used on some connections in my first build. I may use it this time, but at the moment I don’t know.

Nuts & bolts

4 x M3 stainless 16mm hex cap screws
8 x M3 stainless nyloc nuts

Just used for mounting the fan (four of the nuts are used for fixing the LCD display). Nyloc may be overkill, but given that I was going to be using them on a fan I decided I’d err on the side of caution.

https://www.ebay.co.uk/itm/M3-3mmØ-CAP-SCREWS-A2-STAINLESS-STEEL-HEX-SOCKET-ALLEN-KEY-BOLTS-DIN-912/361582679814

https://www.ebay.co.uk/itm/NYLOC-NYLON-INSERT-LOCKING-NUTS-A2-STAINLESS-STEEL-M2-5-3-4-5-6-8-10-12-16-18-20/150783000310

8 x M3 stainless 20mm button head hex screws

For fitting the display, and in my case screwing down the lid of the case. I’d expect a purchased case to come with all the necessary screws for the lid.

https://www.ebay.co.uk/itm/BUTTON-HEAD-SCREWS-ALLEN-KEY-SOCKET-DOME-BOLT-A2-STAINLESS-STEEL-M3-M4-M5-M6-M8/362765268288

2 x M3 stainless 10mm button head hex screws

For fitting the USB panel mount socket (mine were M3 threaded, though still a bit awkward to fit)

https://www.ebay.co.uk/itm/M3-3mmØ-BUTTON-HEAD-SCREWS-ALLEN-KEY-HEX-SOCKET-DOME-BOLTS-A2-STAINLESS-STEEL/181024489629

Case

As I’ve already mentioned, I printed my own case. The docs specify a case measuring 163 x 100 x 50mm, but I reckon that’s really too small now. The design in the documentation build photos doesn’t have as many components as the current version and even so many of the switches and external connectors are really tight up against each other or even overlapping. Slightly bigger would probably be better.

If you want to put the sensor and/or dew heater connectors on the end of the case rather than the top, having removable end sections might be useful to allow room for fingers and tools when fitting the sockets. I think someone posted on SGL saying they’d used a case with a clear lid, meaning the LCD could be completely sealed inside the case and still be readable.

Also note that if you’re going for the prefab PCB, it doesn’t have any mounting holes, so the case needs to provide some mechanism for holding the PCB in place. If you’re using stripboard obviously holes can be made to suit.

Posted in Astro Equipment, Astronomy, Projects | Tagged , | Leave a comment

Robert Brown Arduino dew controller build, step by step #3

I’m going to post details of the components I used, but before that some comments on the circuit board…

The documentation provides a plan for building the controller on stripboard, which looks perfectly good (but you’ll need to add a track cutting tool to the list of required tools). I decided to go down the route of prefabricated PCBs, thinking without any real evidence that it would be simpler and more compact. There appear to be a number of different links in the documentation to “recommended” PCB providers, but I ordered from Aisler. They also offer a package for components, but ignore it. It doesn’t use the listed components and it isn’t even remotely complete. I assume someone must have started setting up a list and abandoned it fairly quickly because they couldn’t find what they wanted. My recollection is that the minimum order from Aisler is for three boards. As it happened I wanted at least three anyhow so that worked out for me. Otherwise you might need to a friend or two who also want to do the build so you can share costs.

A little later, in an exchange of emails with Robert Brown, I had the impression that he was surprised I wasn’t using stripboard for the build and that he was expecting people would do it that way. I may have misinterpreted what he was saying, but assuming I got it right that does add to the confusion given that the documentation already suggests two separate “recommended” sources for the bespoke PCB.

Had I known this to start with I’d probably have gone with the stripboard build and as I intend to build the focuser controller once the dew controller is done I will do exactly that for those, but as I had the three PCBs already ordered that’s the way I went this time. In the event that I want any more (I may build a fourth to use for my travel kit so I don’t have to remove one from the observatory) I will go down the stripboard route. If you would prefer to use a prefab PCB then I couldn’t really fault the Aisler service to be fair.

Posted in Astro Equipment, Astronomy, Projects | Tagged , | Leave a comment

Swimming, 14th January 2020

Wasn’t really up for swimming today having had a very bad night’s sleep, but I forced myself to attempt a repeat of yesterday’s session anyhow. Sadly it was awful. I first failed on rep six and it didn’t get any better from there. At least I went, though.

Posted in Swimming | Tagged , | Leave a comment

Robert Brown Arduino dew controller build, step by step #2

Since it’s relatively easy, I’ll start with the tools required. I think this is pretty much everything I needed for the first build.

Covering the easy stuff first, obviously there’s the soldering iron. It would be nice to have a proper temperature-controlled iron, but I’ve had some of my tools since I was in my early teens and getting rid of them now is almost unconscionable 🙂 The one in the picture is 18W and has a standard tip about 2mm wide. I did also use a very small tip for the temperature sensor sockets in my first build, but that should be avoidable in the future.

Other easy bits — a hot-melt glue gun which my daughter normally uses for, err, making a sticky mess all over the front of a hot melt glue gun, wire cutters/strippers and a pair of side cutters, a couple of pairs of pliers, junior hacksaw and a multimeter (something else that’s probably twice as old as my children). If all goes well the multimeter really only gets used as a continuity tester or at most a resistance meter.

There’s also a pair of Allen keys to fit the bolts I used — 2mm and 2.5mm in this case, and a pair of drills(2.5mm and 3mm) to drill the holes out for the bolts because it was easier than trying to make them in the design for the case.

In the centre at the bottom is a sort of clamp with a built-in magnifier for holding parts whilst soldering them. These days my eyesight needs a bit of help for the small stuff. It, or a separate magnifying glass, is also handy for checking soldered connections to make sure there aren’t any bridges between joints that shouldn’t have them. Above it is a tool for making up modular sockets. It’s probably one of the more esoteric items, but I have several lying about because I make up all my own network cables. It’s only used for crimping the RJ11 plugs onto the temperature sensors and I think I’m going to use a different sort of socket for this build, so may not be required at all.

Above the crimping tool, a couple of blobs of blutak (showing discolouration due to heavy use, in this case). It can be so handy for holding stuff in place whilst soldering 🙂 And above them, a little 3d-printed tool that really isn’t necessary, but allows the likes of resistor leads to be bent at just the right point to go through the usual 1/10th inch spacing PCB holes. Pliers mostly work just as well.

And finally, bottom right, and the only tool I actually bought specifically for this build because it actually came with some of the components I wanted anyhow, a crimping tool for making up the connectors for pin headers. This actually came in a set with the crimps and plugs — more of that in another post.

I think the only out-of-the-ordinary thing I used that isn’t in the photo is a hot air gun. That’s because in places I used some heatshrink sleeving to make sure joins were insulated.

I did also use a small flat-bladed screwdriver (about 3mm wide). It’s handy for making sure the pins are pressed fully home on the pin header sockets, but otherwise I only used it for adjusting the brightness of the LCD so the text showed up. In fact, for the latter purpose a plastic screwdriver would be a better idea because you do need to be poking it in the general direction of live electrics, so removing the possibility of shorting anything out would be sensible. I feel sure I have one, but I haven’t been able to find it.

Posted in Astro Equipment, Astronomy, Projects | Tagged , | Leave a comment

Robert Brown Arduino dew controller build, step by step #1

In an earlier post I said I’d write up the build of my second dew controller, so if you’re not sure it’s for you and need to see how someone else did it, this is it. There are a few optional bits of the build and the instructions aren’t always clear what applies to which bit, so for clarity here I’m building the three-channel MOSFET-based system using a twenty row by four line LCD display with a DHT22 humidity sensor. I didn’t build in the Bluetooth interface and I also didn’t bother with the additional switches to force the heaters full on because generally I’ll be operating my kit remotely, even if it is only from the warm room. I’ll also be putting mine in a 3d-printed box that I’ve designed myself because I couldn’t find anything I really wanted off the shelf.

If you’re concerned about the level of expertise required, I am not and nor have I ever been an electronics engineer. I’m happy enough with a soldering iron that I know not to grab the hot end and I did do an AO Level (or whatever they were called) in Electronics in the mid-1980s, though most of that was theory and we rarely got to play with components, nor even design anything very complicated.

This is what my completed first build looks like (two-tone, because I ran out of white filament, though I quite like the look so I might do the rest that way deliberately.

On the top are the three temperature sensor sockets, three dew heater sockets, three LED indicators for the headers, a fan speed indicator LED, on/off switch, power LED and fuse. The long side has a fan and the USB socket and the short side has the 12V supply socket and DHT22 humidity sensor. The other long side has ventilation holes in:

Posted in Astro Equipment, Astronomy, Projects | Tagged , | Leave a comment

Swimming, 13th Jan 2020

With the problems I’ve had over the last few months I’ve dropped things back a bit and this is now my current set:

  • 400m f/c warm-up
  • 18 x 50m f/c, target time 50s, turnaround 90s
  • five minutes rest
  • 18 x 25m f/c, target time 20s, turnaround 60s
  • 200m swim down

The focus of the second 25m set is mostly on arm speed whilst maintaining technique.

It’s not going particularly well though. I was doing much better than this six months ago.

Today I managed fourteen reps of the 50m set before my first fail, then completed the set. That left me very tired for the second part of the set though and I only managed eight reps before failing for the third time and stopping the set.

Posted in Swimming | Tagged , | Leave a comment

Robert Brown’s Arduino-based dew heater controller

Like almost everything in my life, this has taken a lot longer than I was hoping, mostly because I ran out of steam a bit, partly thanks to the weather being so poor, but also because it took some time to decide how I was going to put it all together. However, recently I finally finished construction of a dew controller built to plans originally put together by Robert Brown and am now in a position to start testing. It’s all in a 3d-printed box because I couldn’t find anything with a design I liked in a suitable size, though in fact the box had to go through a few iterations because there’s an awful lot of wiring and getting something that wasn’t too big that I could still get my fingers inside to connect everything up turned out to be a bit of a challenge.

Initial thoughts now I’m nearing the end for this first one are that I’m really quite impressed. It’s not a hard build and looks like it should do the job well. Probably the most tricky part is fitting it all in a case of a reasonable size. There are eighteen components that don’t go on the PCB in mine, and I even left out the “give it max welly” switches for the heater strips. That’s an awful lot of wires and means there’s a bit of a balance to find between the placement of all the plugs and sockets and the sizes of the case needed to fit them in. Putting most of them on the top of the case makes for much easier fitting in a smaller case, particularly for someone like me who doesn’t possess the most delicate of digits, but it does mean wires end up spewing out of the top of the case once everything is connected.

I’m not that happy with the LED bezels. I bought from several different Amazon/Ebay vendors and they’re really all pretty skanky. Whilst I did use them in the end, I also applied a bit of hot-melt glue to the inside to keep them in place properly. That’s no fault of the controller design though, just cheaply-manufactured plastic tat.

There are probably three awkward bits. The first is down to my decision to fit pin headers for all the off-board components. The pin headers are nice and easy to fit, but then I ended up making a loads of connectors to go on them, crimping the sockets onto individual wires. That was exceptionally tedious.

The second is down to the use of 6P4C/RJ11 connectors for the temperature sensors. This isn’t of itself a bad idea because lots of 1-wire kit uses RJ11 or RJ45 plugs which means the sensors can be used elsewhere if the “standard” pinout is retained. The problem really comes down to not being able to find any reasonably-priced way to connect wires to the sockets. It’s possible to buy little break-out boards for the sockets with solder pads to connect wires onto, but they’re over £6 each and I wanted a total of nine for the three controllers I intend to build which ramps up the cost a bit. There are some available with screw terminals, but they’re huge. At one point I did seriously consider getting the gear to make my own PCBs and do them myself. It would probably pay back when it comes to making the PCBs for the focuser units that I intend to build once the dew controllers are done. In the end though I just soldered the wires direct to the pins of the RJ11 sockets and sleeved them with heatshink. Not particularly neat given the pin spacing and the fact that my eyesight isn’t quite what it used to be.

The RJ11 sockets are actually quite awkward to fix in place in the box too. Because mine was 3d printed I ended up making the openings very close to an interference fit and then getting out the hot-melt again 🙂

The final thing is that some of the diode leads don’t fit the standard hole size in the PCB. I bodged it for this build, but for the next one I might well take leads off the board to a terminal block and fit the diodes there.

The only teensy-weensy little criticism I might possibly have of the project is that the documentation is a bit haphazard and I’m not sure all of it is in sync with the different versions of the design. Patience gets you there though. It’s not a huge deal.

Now I have a better feel for what I’m doing I intend to record the next build and do a step-by-step write-up to help anyone else who wants to give it a go. I’m sure anyone who can wield a soldering iron accurately (not a lot different from being able to colour in between the lines, really) could manage it.

Posted in Astro Equipment, Astronomy, Projects | Tagged | Leave a comment

January 1st: Best weather of the decade so far

New Year’s Day was dark. Really dark.

Posted in Environment | Tagged | Leave a comment