Spinning AC mains frequency display

The guys at dynamic demand have a meter showing the frequency error of the UK AC mains, which shows typical values ranging between 49.9 and 50.1. A digital count will do that a treat, but the trouble with digital displays is they have no soul, IMO.

Frahm vibrating reed frequency meter has a steampunk charm of its own, but lacks precision to < 1%

In the past there were all sorts of weird and wacky methods of displaying measured variables, analogue sensors sometimes wear their heart on their sleeves, like the vibrating reed frequency meter.This doesn’t have the frequency precision needed, however.

The click of a Geiger counter is well known, but old-school Geiger counters also had dekatron tube displays, which whizzed round faster at high rates and inched round at slow rates. These tube displays, where a red glow would move clockwise round the tube, was a good, intuitive indication of count rate. I wanted something like that.

So my idea is for a rate counter. A single ring of red LEDs, one of which is lit. If the mains is too fast the lit one will progress clockwise, if too slow, it will move anticlockwise. A set of red LEDs on black perspex is hard to get a good picture of, it looks better than that in real life. Normally it spins a lot faster, I had to wait for a point close to 50Hz to get both too low and too high frequency.

This is built largely out of a 16F628 PIC. The mains is run through a wall-wart 9V transformer, which is an increasingly rare beast nowadays. Often old land-line phones and answering machines had low-voltage AC power supplies, but switch-modes are far more common now.

Schematic

The 9V is half-wave rectified, clipped to 2V with a LED and sliced with the comparator in the PIC, with the voltage regulator module providing the other side. Internally the transition copies the state of a 16-way counter fed from a 6400Hz clock derived from the 4MHz crystal. There isn’t an integer relationship between 4MHz and 6400 Hz so I used Roman Blacks Bresenham timing ideas to toggle a divide-by 76 and 77 counter using TMR1, I confess I got it roughly right by calculation and then tinkered with the ratio while watching the dynamic demand display to fine-tune the 50Hz point. My null is ever so slightly higher than theirs, but it’s good enough IMO.

I like the effect, it’s more for its ornamental nature, it’s not like I will be calling up Sizewell to throw some more fuel pellets into the reactor, but it’s a sort of connection with what my fellow Britons are up to and there’s a surprising amount of variation moment to moment. It will be interesting to see if a ad break in a big TV program is perceptible, the speed of rotation reacts quickly to frequency changes, a little faster that dynamicdisplay’s meter

Code and schematic

at Github

Over at Return to Zero they’re counting over 100 cycles to get a digital display. Which is fine as far as it goes, but doesn’t have the at-a-glance feel of the spinning LED display IMO. I tip my hat to RTZ for accuracy, if you need to really know what the frequency is, there’s nothing wrong with that solution at all.

laser cutting rather than drilling

Construction was Veroboard and because I’m far too imprecise a craftsman to make the display right I used Razorlab to laser cut the holes and panels from black Perspex, controlled by an Inkscape drawing. That worked remarkably well; I’m tempted to make more designs that way and it may be a solution for decent looking front panels too. The display really had to be regular and even to look any good, and Inkscape made that easy.

Olympus LS-10 remote control success

I’d experimented with the wired remote for the Olympus LS- series recorders before. I have an Olympus LS-10 and an LS-14, and previous experiments showed I could make this work in principle. There’s a big gap between making it work on the bench and getting it to work in the field, however. This is the next step of boxing it up and making it stand alone.

16F628 PIC is fitted into the space of two batteries in a 4-way battery box, giving me a small box with battery holder and on/off switch. A 32kHz watch crystal gives an easy integer divide down to seconds and then hours, and reduces the power drawn by the PIC and lets me drop down to 2V Vcc and stay in spec over the industrial temperature range.

Either my LS10 is knackered or it never was compatible with Olympus’s wireless remote, it doesn’t provide 3.3V power on the plug tip, so I have to power the PIC 16F628 from two NiMH cells, which means I am short of headroom for 3.3V because there’s a 0.9V difference. I’d expect the PIC to drag the remote control line, which rests at 3.3V down to ~ 3V (2.4V VCC + 0.6V input protection diode drop)

I used a diode for the stop command pulling to ground, which still works with that diode drop, so the drive circuit is

Driving the 3V3 LS10 from a 2.4V PIC

RA4 is an open-drain connection, I figured I would chance the forward-biasing of the input protection diodes via the 100k. It works fine, at least at room temp – a 100ms pull to gnd via RA4 starts the recording, and then a 100ms pull to ground of RA2 stops the recording. Pins are switched to hi-Z inputs when not active. I guess the 3V3 from the LS10 has to go through two diode drops now to get to the 2.4V rail (diode shown and the input protection diode), and this is enough to let it float OK.

I got it to start the recorder at 4am, which is too early, but recording for two hours got me this recording at about 5:30 am of the local birds. I hear Great tit, Robin, Blackbird, some sort of gull, Wren, Woodpigeon, Crow, in that lot.

Using a 3.5mm socket as a workaround for the fiddly 4-pole 2.5mm jack plug – it’s a lot easier to wire a socket than a 4-pole plug, and I got a 4-pole 3.5mm jack to 4-pole 2.5mm jack cable from Ebay. Wiring the 4-way socket is dead easy now, and saves having a flying lead from the box.

In search of microphone weatherproofing ideas

I need to now find a way to get a reasonably weatherproof microphone. Looking at how B&K do this in the manual for the UA1404 the way to go is to use a small raincover just over the mic capsule

B&K’s solution to weatherproofing

Their mention of birds makes me thing this is very close to a mesh nut feeder – I could put horticultural fleece around the mesh and use the top cap as a rain guard. Another option is to go minimalist, recess an omni electret capsule in something like a plastic bottle cap. I’d have thought that the cavity of the raincover would cause dreadful resonances, but if it is say 2cm diameter that would be a wavelength of 330/.02 ~ 16kHz – perhaps theirs is 0.5cm keeping this down to ¼ wavelength. Where this would score is it’s small, and electret mic capsules are cheap so I could afford to lose some. I can take the line that I’ll omit the big foam guard and use a piece of horticultural fleece across the cap, this makes a reasonable wind baffle, and I’m not going to get a good recording if the wind is over 5 mph anyway because of the hiss of the wind in the trees even if I were to keep wind blast out of the mics.

I am thinking of using a small Dribox to rig the recorder and timer, and sample some birdsong from other places. A pair of AAs run the timer for at least three days and the power drain of the LS10 on standby is also low, probably good for a couple of days, but I don’t have more than four hours of recording time on the LS10, it is 2Gb. So I can live with that – the Dribox has enough room for a bigger battery if that starts to look necessary.

Skytec PRO 600 PA Amplifier repaired but bad design can’t be fixed

tl;dr – to fix the problem throw the Skytec Pro 600 away and buy something better before the Skytec blows your speakers again. Don’t buy Skytec, and if you have it throw it away before it fails on you.

Skytec is cheap rubbish made in China for kids who are wannabe DJs but have little money. This is not quality – I had to repair this amplifier because of a fundamental defect in the engineering design. These are fine for background music, say in a pub. They’ll go reasonably loud in a modest party setting ,say 30 people, but it’s rough, and it’s nasty. You’ll save on the amp and pay in bass drive units if you DJ with this at any scale 😉 And get a limiter if you can, but if you can afford that you won’t be down at the Skytec end of the market.

I made the dumb mistake of buying one of these used from Cash Converters for £30 a while back. I bought it purely on price, I wanted something basic for parties of about 30-50 people. I knew nothing about PA, but I figured a hifi amp wouldn’t cut it for that sort of usage. What I hadn’t anticipated was people shift junk onto the PA market with design defects that were solved in the 1970s. They don’t even need any new parts, just put the Vbe multiplier on the heatsink rather than on the circuit board.

Skytec 600s are sold as 600W and the manual claims 600W output. They are absolutely away with the fairies on that, to the extent they should be done under the Trade Descriptions Act. I guess they hide behind the fact they don’t say RMS power, so they probably mean peak power, though that’s still only 280W. I measured 80V p-p, which is about 28Vrms. Run that into 4Ω and you’ll get V²/R≈200W. Do that for any length of time and it will blow because of the inadequate heatsinking and bad thermal design.

about 80Vp-p (I am using 10x probes) into 6ohms, 130W per channel. Don’t do it for too long, though

HiFi tower talk glowingly about the MOSFETs

Skytec’s PA-600 gives you the extra power you need with exceptional bass. All sound components are co-ordinated carefully and captivate their longevity. The modern MOSFET transistors and extra large power transformers give great sound and dynamics. The high build quality makes it the ideal amplifier for tours and gigging. For use on stages, for DJs, monitoring, parties and conferences.

but there ain’t no MOSFETs in this, simply a pair of paralleled bipolar junction transistors in the complementary pair output stage, 2SA1941 and 2SC5198. Toshiba described the transistors as suitable for 75W amps, you have two in parallel so 150W tops, okay times two for stereo = 300W. The toroidal transformer isn’t over 600W, I’d guess 200W from the size.

It worked OK for me for a couple of years, but then I let someone use it unsupervised for live music. Which brings me to the first warning

Do NOT use the Skytec 600 for live music unless you are aware of the risks you are taking!

I wasn’t, there, and the result was a blown output stage and blown woofer. It only cost me £11 to service the amp and £50 to change out the woofer, so I am now down £91, and I still have a junk amplifier, though it works now. Now that I know the ghastly horror of the circuit design I am not sure I have the balls to use it again, but at least it works as it was meant to originally 😉

Why not for live music then?

After all, the promotional blurb says this:

The high build quality makes it the ideal amplifier for tours and gigging. For use on stages, for DJs, monitoring, parties and conferences.

so what’s the problems then? Dynamic range – live music has a higher peak to mean ratio than recorded music. You end up pushing the bugger harder, so unless you limit the live source in the mix you’ll clip the output. At least that’s what I assume happened, I wasn’t there when It failed 😉 The Skytec is fine for prerecorded music, but the basic problem is that this amp has zero protection for the speakers or the output stage. Worse still, the VBE multiplier that biases the output stage isn’t thermally coupled to the heatsink on the output stage. Let’s hear it from Rod Elliott why this sucks

Thermal Stability

It can be seen that in the Darlington configuration, there are two emitter-base junctions for each output device. Since each has its own thermal characteristic (a fall of about 2mV per degree C), the combination can be difficult to make thermally stable. In addition, the gain of transistors often increases as they get hotter, thus compounding the problem. The bias ‘servo’, typically a transistor Vbe multiplier, must be mounted on the heatsink to ensure good thermal equilibrium with the output devices, and in some cases can still barely manage to maintain thermal stability.

If stability is not maintained, the amplifier may be subject to thermal runaway, where after a certain output device temperature is reached, the continued fall of Vbe causes even more quiescent current to flow, causing the temperature to rise further, and so on. A point is reached where the power dissipated is so high that the output transistors fail – often with catastrophic results to the remainder of the circuit and/or the attached loudspeakers.

I got to find that out the hard way. I’ve actually managed to do a fair number of parties with this fine, but I was always careful to keep the bouncing LEDs of the output display under control by controlling the master gain.

How does the Skytec PRO600 do thermal stability?

On a wing and a prayer.

PC case fan blowing on the internal heatsink

They run a PC case fan 100% of the time  onto the main heatsink, sucking air out of the case, inflow is through the front. There’s no margin for error – although I didn’t trace the circuit it’s a complementary pair of paralleled output transistors driven by a driver (effectively making a Darlington output)  so you got four VBE drops reducing with temperature at 2mV/deg C, asking for thermal runaway. There’s no fight against that with the VBE multiplier because it’s not thermally coupled. Get the die temp of those output devices hot enough, say 40C above ambient and you have 40*2*2 = 160mV less bias than you started with (the drivers are conveniently mounted on the heatsink to make sure their VBE drops too).  This is designed for thermal runaway and the only thing standing between you and a blown output stage is the hope the heatsink and the fan keep the temperature rise down. You can get a little bit of an idea of the architecture from this thread and this PDF of a similar noname PA amp which gives a rough idea of the architecture on the output

Schematic someone has traced out of a similar piece of junk. In my case the four o/p transistors are 2x 2SA1941 (BG7,8) and 2x 2SC5198 (BG 9,10). BG4 is the offending Vbe multiplier that isn’t on the heatsink.

How to fix a Skytec 600 blown output stage

Change the 2SA1941 and 2SC5198 transistors 😉 I buzzed these through with a DVM on diode setting and found them all short, traced back to the drivers expecting them to have gone but they were OK, traced back a further stage of BJTs but they were OK too. The 5A fuse saved the other passive components.

It’s quite repair-friendly – unscrew the three screws on the base holding the heatsink, unplug all the connectors after taking a photo to remember where they go back. Lift the PA module out, snip the duff transistor legs to save the PCB while desoldering the pins one at a time.

snipping the duff transistor legs lets you unsolder the legs one at a time, saving the PCB from overheating.

I powered up the repaired stage on a 30-0-30V bench power supply set to limit at 100mA, I know it’s meant to work off 60-0-60V but I got a signal through and confirmed it wasn’t still duff, before getting it onto the main supply. I also compared the quiescent current (10mA at 30-0-30V)  with the good side, which was the same, so I figured the VBE multiplier was still set about right. Easy win for about £11 in parts. In fact one of the old output transistors was still okay, presumably saved by it’s parallel buddy shorting across it, but I’m not chancing it.

I also went round and tightened the output transistors a tad. It’s easy to overdo this, but the still- working side was about finger-tight like the failed side. I wonder if this also led to the early demise. You just can’t risk the transistor die heating up to any great amount with this design.

Having fixed it I started to test it looking for why it blew. I got a couple of 50W 6Ω wirewound resistors. These are sold on Ebay to people doing LED upgrades to their lights, to put in parallel with the LEDs and draw 24W so the automotive CAN bus filament blown detector doesn’t keep going off. I figured 6Ω is a nice compromise between typical 8Ω and 4Ω speaker loads; real speakers present complex loads anyway. It was the cheapest way of getting a power resistor up to the job. I then dunk the resistors in a pan of water.

Low cost high power load

since I don’t have a heatsink/fan combo up to dissipating 300W. I know electricity and water don’t really mix, but I figure the water isn’t going to shunt my 6 ohms too much. Worth heatshrinking the ends of the resistors though 😉 The reason I used a pan is because the failure mode of these type of power resistors is to violently eject the ceramic slug out the end. So a Pyrex dish or a jam jar isn’t really desirable.

Running both channels full tilt at 130Wpc for two minutes the transistors get up to about 50C at the hottest part of the plastic case. If fairness to the amp I’ve been able to fill a rented Scout hall with music without ever taking it up that high even on peaks, so I ran it for five minutes at 33 watts per channel (~40V p-p). And got the transistor cases up to 110C. The manufacturer’s spec for the junction temperature is 150C peak. If you thrash this like that for a long time I guess  the heatsink/case fan combo is hopelessly inadequate, and it blows.

Sadly I battle tested the inadequacy of the design a second time. Five minutes after running the second test, after I had brought the signal down to 0, I was greeted with this, telling me the right hand channel has gone DC, presumably thermal runaway again.

failed again

While I know how to repair this, I don’t know how to fix it to make it fit for purpose because of the fact the Vbe multiplier isn’t on the heatsink. It’s probably true that my needs don’t push it that hard, but an amplifier that blows after running a steady 33W for five minutes isn’t something I’m going to risk ever using, so it’s time to scrap it.

Skytec Pro600 – Avoid. Just say no.

Sonar ranger for the visually impaired

This project was for someone I know who is blind. If you can’t see your surrounds then coming into contact with things is always a surprise, she is elderly so it’s not easy to use a cane, which is the low-tech surprisingly effective way of orientating yourself if you can’t see.

the fisihed ranger - the glue stick on the side is to give a softwer contact and avoid damaging the ultrasonic sensors
the fisihed ranger – the glue stick on the side is to give a softwer contact and avoid damaging the ultrasonic sensors

Initially I thought the idea was original, but a little Googling shows it certainly isn’t and more sophisticated versions are available commercially, like the minigude and K sonar. But for the low cost ~ £15 of a PIC and a few bits it’s worth a go to see if the basic principle works, assistive tech seems very variable in effectiveness depending on the user.

Bats use ultrasonic pulses to locate things by emitting a pulse of high frequency sound and listening for the echo. More recently ultrasonic ranging has become a big thing in the robotics field. These modules turn the analogue interfacing into a microcontroller-friendly length of pulse digital signal. I bought a SR04 from ebay for less than £3, which does much of the hard work.

SR04 ultrasonic ranger module
SR04 ultrasonic ranger module

You apply 5V, pulse the trig for 10μs and get a pulse of varying duration from Echo. It’s surprising easy to turn that into a tone rising in frequency as you get closer. Start a timer on the leading edge of the echo return, and when the training edge comes, copy the count into the duration control of another timer (copy into the PICs CCP module which controls the period of TMR1) Then toggle a pin when the CCP module resets TMR1.

You have to do a little error checking to catch timeouts or when the distance is too large, the signal gets more reliable as you get closer to an object, which is good. I was able to find doors and follow a wall using it. It works better when the ultrasonic sensors are vertical, the beam spread is narrower. It does not help you find things on the floor.

I was surprised how little it takes to make one of these now – all you need is the HC04, a 16f628 and a piezo speaker, and it runs 5mA off a 9V battery regulated down to 5V.

schematic
schematic

PIC code on Github

 


This works better in real-world application held vertically, not horizontally. but I didn’t know that when I made the video.

 

Olympus LS10 and LS14 DIY wired remote control

tl;dr – the schematic

Olympus LS10 (and LS14) wired remote schematic
Olympus LS10 (and LS14) wired remote schematic

A new approach to a timed recorder

For the last year or so I’ve been trying to make an timed start recorder using a Raspberry Pi and the Wolfson/Cirrus audio card. I was able to make it work, but never eliminate some rattiness in terms of overruns on record – I confess I couldn’t hear them, but it didn’t give me a good feeling. Then I added up the costs –

£25 – Cirrus Audio card
£27 – Raspberry Pi B+£10 – case and odds and sods to make it work
£20 – PCB, time and bits to make a preamp to get from mic to line level

so I’m looking at £80 to get off the ground, and that gives me a seriously power-hungry SD audio recorder, although I can use a timer to save the power drain for active service.

Alternatively, if I could crack the remote control for them I could go on ebay and get a secondhand Olympus LS10, or one of the similar models (LS-5, LS-11, LS-12, LS-14) and use my own LS10 to start with. I can feed a mic straight into the LS10, no extra preamp required and the audio spec is good.

Reverse engineering the Olympus remote control protocol

This cost me £90 on ebay, and it turned out I didn’t need it. You get the info for free, but then I got a natty nearly new LS-14 with an RS30 remote control, so I’m not too unhappy. Unfortunately the RS30 doesn’t work with my Olympus LS10, don’t know why. I’d have been hacked off if I’d just got the RS301. Works a treat with the LS14 it came with, on their own  a RS30 seems to go for £50, so I got an okay deal.

my Olympus recorders
my Olympus recorders

Google first – I owe dashanna of the naturerecordists’ list for inspiration, I vaguely recall seeing that post go through on the list. Their solution is this

1610_dashanna

The connector is an evil little 2.5mm four-pole jack, and these are a bear to solder

nasty connectors to solder, though easier when you realise you only need t wire to two parts. You can pick up 3.3V on the tip, which may be of use...
nasty connectors to solder, though easier when you realise you only need to wire two parts. You can pick up 3.3V on the tip, which may be of use…

I can’t help wondering if life would be easier using a three-pole jack, since only sleeve and ring are needed. Now I didn’t like that battery in dashanna’s version – I mean who the heck would make a wired remote for a machine offering you a 3.3V supply on the tip of the plug and demand you go fit a battery in your remote? It’s just not a clean engineering solution at all. But apparently it works.

So I rigged the cable in series with the RS30 and sniffed the signals. Of the TRRS the tip had 3.3V, the second ring seemed open circuit, the first ring had the wanted signal and the sleeve was ground. Presumably the IR receiver and LED driver are powered off the 3.3V on tip. The signal on the first ring rests high at 3.3V.

Record is this funny little signal
Record is this funny little signal, 100ms at about 1.5V followed by a low
Stop is this signal, pull to ground for 100ms
Stop is this signal, pull to ground for 100ms

In practice you can ignore the second pulse. For all I know it could be an ack back to the receiver to light the LED. I tried using a couple of diodes to pull the signal down to 1.2V but that didn’t initialise record. I then figured this is one of those analogue resistor chain remotes, so I look for what resistor would give me ~1.5V. Turns out if you replace the 1.5V battery in dashanna’s schematic with 100k you get about 1.5V and the recorder starts recording. You don’t need the second pulse at all, and the debouncing seems to be done in the recorder, it takes a little while, up to about half a second to start recording. I guess that means inside the recorder there’s a 100k resistor to the 3.3V rail in series with the first ring.

That works with both the LS 10 and the new LS14, although the RS30 only works with the LS14. So now all I need do is mod the timer to pull down a couple of pins, one through 100k. If I make the stop command the open-drain pin to ring and the rec command a normal pin resting High via 100k to ring, and pull the relevant pin down for 100ms I should be good to go.


  1. I’ve just got onto the Olympus RS30 website and if you scroll through the models that is compatible with it includes the LS-3, LS-5, LS-11, LS-12, LS14, LS-20M, LS100 so perhaps my LS10 was never compatible with it and Olympus have changed their mind since writing the LS10 manual which says on p65 “Exclusive remote control RS30W (scheduled for Spring 2008)” 

How to use an external GPS with a smartphone

The best GPS for a Brit searching for prehistoric stones is a GPS which has OS maps built in.

GPS with OS maps
GPS with OS maps

The trouble with these is the sticker shock, you’re looking at about £300-400, which is still a bit stiff. If you start with nothing, it’s probably still the best way, and you will undoubtedly get a better moving map experience, particularly with a GPS including an electronic compass, which will orient the map correctly for you.

I had a smartphone and Viewranger. I’d bought the Landranger 1:50k set of OS maps on viewranger for about £70 – once you buy digital mapping you’re locked into that provider unless you want to pay up again.

Smartphone GPS is awful and power-hungry

The big problem with a smartphone is that GPS performance is dreadful. Quite how dreadful I hadn’t realised until I got out on Dartmoor and tried to use Viewranger, which made no attempt made to track current position.Well, pretty much until I was on my way back to the start point. I had a paper map anyway, although the smartphone version was easier to control in the wind!

A-GPS doesn't help you here
A-GPS doesn’t help you here

The problem with a smartphone GPS is that by design it will fail you when you need it most, on a featureless moor with no signal. It is new-born each time you start it up. Rather than maintaining the ephemeris (knowing where to look for the satellites) when the phone is off, smartphones use A-GPS – getting the rough location from the network connection and using this to simulate the ephemeris.

Which is OK in towns, and no good to man nor beast in rural areas, because there’s no network connection. So you get to do a cold start of the GPS which can take over half an hour. No fun at all when you are out on Dartmoor. Even in towns the performance of smartphone GPS is dire, compared to a handheld GPS, as I found out looking for birds. Plus it’s power-hungry – running about 43mA @ 5V with continuous GPS on, compared to 25mA with a BT GPS.

Go for a separate Bluetooth GPS

A secondhand CoPilot GPS3 The default Bluettoh code for one of these is 0183 (from NMEA 0183 protocol, I guess)
A secondhand CoPilot BTGPS3, 2003 vintage
The default Bluetooth code for one of these is 0183 (from NMEA 0183 protocol, I guess)

and use an app to get the location signal into the phone, something like Bluetooth GPS to set this as a mock location provider. Then shut off the internal GPS to save power. Start the hardware, then start the app before starting Viewranger, and everything will work better than before. The CoPilot battery is good for six hours, ebay has many more modern equivalents which probably have better battery life. You can save more smartphone power in the sticks by putting the phone into flight mode and specifically re-enabling Bluetooth, this shuts down the power-hungry wifi and phone data systems. Plus it stops Google knowing where you are in real time 😉

I still hanker after a Garmin GPSMAP64 because while this sorts out the poor GPS performance, it is hard to see the smartphone display outdoors, even under a wide overcast sky, and impossible with sunlight falling on it. Nevertheless, the smartphone app is a lot more practical now.

Ciseco – WirelessThings goes to the wall

Sad day, I used their RF modules for farm telemetry and they were great products at a good price. I have a fair stock of their XRF and RFu micros and bought a few of the latter and a bunch of boards in their closing down sale. But I’m sorry to see them go, and support and data are going to be nonexistent now. London Stock Exchange RNS announcement

1608_wthingsThey’re still on GitHub as Ciseco, the original company, though I guess how long that will last is questionable

There is basic info on the XRF command set on the wayback machine version of the old Ciseco site

Launchpad on Github

 

 

 

Timed Audio Field Recorder with a Raspberry Pi Cirrus Logic Audio Card

The problem is still the same as it was this time last year – the birds get up before I do in the Spring and I can only be one place at a time. Automatic recording devices let me scout locations in parallel.

A timed field recorder needs to be cheap, because somebody might nick it, it needs to be weather-resistant because it’ll be stuck outside, and it needs to be low-power, because 13A mains sockets are rare outside. Oh and it needs to be standalone, and not part of some cloud, because mobile Internet is ratty and expensive.

tl;dr the hardware performance is good but software support is dire

You can make this work but it isn’t fun at all. If you can use something like a USB stereo audio in board then do that rather than use this Cirrus Logic Audio Card, particularly if you have mains power available. I like the Behringer UCA202 and it works with the Pi.

A Raspberry Pi and A Wolfson audio card sort of fitted the bill, but the Wolfson Audio card is no more. I say sort of, because I’m still looking at about £70 for a Pi1, the audio card and enough odds and sods to power it. You can buy a Zoom H1 for about £80, although there’s still a bit more cost in powering it for long times, keeping the water out and making up some gizmo to pretend to be you pressing the big rec record button early in the morning.

But with the Pi I get to drive the recorder via cron and ssh, and transfer the files via the internet or mobile data in some places. Even if I don’t get a case, though they are to be had for the Pi/CL Audio card combination…

Continue reading “Timed Audio Field Recorder with a Raspberry Pi Cirrus Logic Audio Card”

Making a fake Chinese Wattsup 12V power meter less dangerous

You can buy a pukka Wattsup meter from RC Electronics for $60. That’s just too dear for me, I want to be able to apply a few of these in various places, so I go with the cheap fake Ebay version for £5.99 🙂 At the time I didn’t realise it was a cheap fake Wattsup, it was simply billed as Watt Meter

as it arrived
as it arrived

It duly arrived from some joint in Shenzhen and it wasn’t hard to see that quality control left something to be desired. But hey, whaddya expect for £6? I couldn’t source the LCD display and box for £6!

Chinese suppliers don’t actually have to deliver reliability at these low prices because the cost of sending the product back to China for a refund is higher than writing off the goods. Since I’m prepared to fix the odd part I’m happy to take the risk. It didn’t seem to be a good idea to apply a 12V car battery to this sucker as is, without some investigation. Plus having the display centred is a nice touch…

1512_DSCN2785Hmm, nothing to centre the boards. Other than that, looks okay, except for the exposed positive solder joint in the main battery 12V line Insulated from the case by the blue anodising and now’t else. At least the LCD contacts are pushed away from the metal by some foam. The LCD groundplane ends just shy of the edge of the board so it may not short on the box, but it still seems a risky business to risk having the box at +12V potential when the anodising gets scraped through. Most 12V systems assume exposed metalwork is either isolated or connected to the negative terminal. I don’t feel that lucky as to go around with a +12V exposed metal box, so I got some of that pressed card (plastic can easily melt if it gets hot) and put it in inside the box, to at least give me an extra layer. I do see the wisdom of RC electronics using a plastic case, but then an 80% discount speaks a language of its own. How do I know it’s a fake Wattsup? Continue reading “Making a fake Chinese Wattsup 12V power meter less dangerous”

12V LED Sound to Light or Color Organ

I made a couple of sound to light units at school and university many years ago.

1977 - around the time when I started making my first sound to light
1977 – around the time when I started making my first sound to light

Not much has changed about the technology, but on the display side LEDs are made for these – not only do we now have the chance of running the system at 12 or 24 V but we can avoid all the fun and games with mains triacs and pulse transformers – I got several mains shocks in those days, because while I optoisolated the main circuit from the triacs using MOC3020 opto-triacs the metal tabs on the triacs were live via the lamps, and on the same circuit board…

Now the Chinese make these things to drive LEDs by the millions on ebay and Amazon, and the sound to light is usually an add-on to a box designed to set moodlighting by colour with a remote control. And the sound to light function is crap on the two I’ve tested – I sent one back to Amazon because it was so dreadful it wasn’t worth the £12, although the cheaper Chinese device I have the light chase mode is acceptable.

Lancaster's original article
Lancaster’s original article showing the filter design

There’s not much that has changed about the filtering from Don Lancaster’s 1970s article – sure we can use opamps or DSP but the essentials are still the same half a century later. I want to use proportional PWM control with the LEDs. Continue reading “12V LED Sound to Light or Color Organ”