sunnuntai 8. toukokuuta 2022

LED lamp

I've been upgrading my home light to LEDs over the years, at this point I think I don't have any incandescent light in use anywhere. Earlier I replaced quite a few incandescents with CFLs, but now it's exclusively leds.

Some people claim that both CFLs and LEDs have very short life, but my anecdotal experince says otherwise. I don't remember how many CFLs have broken but I think it was countable with one hand fingers (that is, without using binary, for you nitpickers out there), and LEDs have been equally long-lived. 

So, when one dimmable one broke after nearly 10 years I wanted to take closer look. 

Led in question was Osram (reputable brand) bulb, with 4 year warrenty.  I have taken habit of writing buy date to lamps, so it's easy to check whether they are covered by warranty when they break (spoler alert: exactly one bulb of CFLs or LEDs have broken during warranty period and was refunded without questions).

It was mostly the broken white base that made me curious, but unfortunately this turned out to be false alert. After years of use the plastic had become brittle and broke very easily. Underneath "glass" (plastic too actually) is small PCB with LEDs on it, glued with some kind of thermal compound to metal base with press-fit connectors acting as LED supply prongs coming out from inside. That is quite a nice setup.

I managed to pry the top off, but at that point I stopped my examinations short. Inside is completely potted. I really didn't feel like digging in that mess, so I just gave up. I expect board to be fairly straightforward led driver board design anyway.

Someone elsewhere mentioned that these bulbs are pretty much designed to run as hot as they can. This one wasn't even high-wattage one, but that claim makes kinda twisted sense, considering what happened to this one and what I've experienced when trying to handle these just after turning them off. I think that if this was designed to run just few tens of degrees colder, it would last much, much longer yet. Too bad for planned obsolescense.


maanantai 2. toukokuuta 2022

How does rainfall sensor work?

Years ago I got a weather station from somewhere, don't even remember where exactly anymore. It had all kinds of goodies like usual temperature and humidity displays, with some history (few days), but also wind and rainfall sensors. I never installed wind meter (due to lack of suitable location) or rain meter (due to snow), so they just sat on my shelf.

When doing cleaning I found the rainfall sensor again. I was just about to throw it away, but then reconsidered and checked it again. How does rainfall sensor work, after all?

Sensor itself is cylinder, with conical opening on top, with some small holes at the bottom. Hmm.


 

Opening the device is enlightening. Inside there is small swing-like device. When enough water drips on upper part of this swing, weigh eventually causes it to fall down to other side, causing accumulated water to spill out through  opening in bottom. Then other side starts collecting water. That small metal-colored cylinder is magnet; inside the box is small board with reed (magnetic) switch which is used to count "swings".

So, let's go back a bit. The opening on top is approximately 11.2cm in diameter (quick'n'dirty tape measurement so accuracy is so-and-so), so opening is approximately 100 square centimetres total. I don't feel like experimenting on water volume needed for tripping the swing, but I think it is also some nice round number, let's say X, eyeballing the size of things suggests possibly few millilitres.

I am not exactly current with details of rainfall math, but all this means that every time magnetic switch triggers, X amount water had rained to area of 100 sq cm. With little more math its fairly trivial to figure out more detailed rainfall figures.  

Also in the box is some kind of RF transmitter. I also don't feel like experimenting with it too much to figure out how it exactly transmits rain amounts to base station, since this very likely works on one-way mode (i.e. no confirmation from base of received data), unfortunately I don't have time for that. My guess is that it transmits raw number of trigger pulses received, leaving detailed math to main unit; or then accumulated rainfall figure over last hour or so. For cheap unit I pretty much expect the first.

And now I can happily toss this thing from taking up space on my shelf.