A 50W Speaker Made Of Light Bulbs

When we think of a speaker, we are likely to imagine a paper cone with a coil of wire somewhere at the bottom of it suspended in a magnetic field. It’s a hundred-plus-year-old technology that has been nearly perfected. The moving coil is not however the only means of turning an electrical current into a sound. A number of components will make a sound when exposed to audio, including to the surprise of [Eric], the humble incandescent light bulb. He discovered when making an addressable driver for them that he could hear the PWM frequency when they lit up, so he set about harnessing the effect for use as a speaker.

Using an ESP32 board and with a few false starts due to cheap components, he started with MIDI files and ended up with PWM frequencies. It’s an interesting journey into creating multiple PWM channels from an ESP32, and he details some of his problems along the way. The result is the set of singing light bulbs that can be seen in the video below the break, which he freely admits is probably the most awful 50 W speaker that he could have made. That however is not the point of such an experiment, and we applaud him for doing it.

For more MIDI-based tomfoolery, take a look at the PCB Tesla coil.

Continue reading “A 50W Speaker Made Of Light Bulbs”

The Simplest Microwave Receiver

We are used to microwave receivers requiring complex chipsets and exacting PCB layouts, but as [CHZ-soft] has shown, it does not always have to be that way. With nothing more complex than a germanium point-contact diode and an oscilloscope, you can quickly, easily, and cheaply resolve microwave signals, as we are shown with a 2.4GHz wireless mouse.

Of course, there’s nothing new here, what we’re being shown is the very simplest incarnation of a crystal set. It’s a wideband device, with only the length of the wires providing any sort of resonance, but surprisingly with the addition of a very selective cavity resonator it can be turned into a useful receiver. Perhaps the most interesting take-away is that the germanium point-contact diode — once a ubiquitous component — has almost entirely disappeared. In most applications it has been supplanted by the Schottky diode, but even those usually don’t quite possess the speed in the point contact’s home ground of radio detection. This is a shame, because there are still some bench-level projects for which they are rather useful.

So if you have a point contact diode and AM radio doesn’t attract, give it a go as a microwave detector. And if the point contact diode has attracted your interest then you may want to read our piece on Rufus Turner, who brought us its archetype, the 1N34A.

Via Hacker News.

Crate EV Motor Hits Market: The Swindon Powertrain

Last year brought some exciting news from the unlikely quarter of an unexciting industrial estate in the British town of Swindon, the company Swindon Powertrain announced that they’d be marketing an all-in-one electric motor and transmission. Essentially this would be a crate engine for EV conversions, and since it’s pretty small it would be able to be shoehorned into almost any car. So often these announcements later prove to be vapourware, but not in this case, because Swindon Powertrain have announced that you can now order the HPD as they call it, for delivery in August. It’s not entirely cheap at £6400 ($7846) exclusive of British VAT sales tax, but when its integrated transmission and differential is taken into consideration it starts to seem more attractive when compared to engineering a random motor onto an internal combustion engine transmission.

They provide a product page with links to a load of data, installation information, and even a CAD model, as well as an ordering page in their webshop from which you can pay the deposit with the rest presumably payable in August before delivery. There is also a range of optional extras including matched inverters, drive shafts, a limited slip differential, and a coolant pump, which makes the whole ever more attractive as a package. 80kW should be enough to lend sprightly performance to all but the largest of cars, so we’ll expect to see this motor ever more often in years to come.

There is already a thriving home-made EV scene which we don’t expect this unit to displace. Instead it will find a niche at the professional and semi-professional conversion level, and we wouldn’t be surprised to see an aftermarket springing up offering ready made subframes to fit it to popular cars. If it is a success there will inevitably be copies and probably at a lower price, so it could be the start of a wave of very interesting conversion options. We hope that Swindon Powertrain will do well with it, and will manage to stay one step ahead of the upstarts. You can read our coverage of its announcement and their electric Mini prototype here.

Thanks [Carl Pickering] for the tip.

Lattice Drops EULA Clause Forbidding FPGA Bitstream Reverse Engineering

Yesterday we reported that Lattice Semiconductor had inserted a clause that restricted the reverse engineering of bitstreams produced by their FPGA toolchains. Although not explicitly stated, it’s assumed that this was directed toward several projects over the past five years that have created fully open source toolchains by reverse engineering the bitstream protocols of the Lattice ICE40 and ECP5 FPGA architectures. Late yesterday Lattice made an announcement reversing course.

To the open source community, thank-you for pointing out a new bitstream usage restriction in the Lattice Propel license. We are excited about the community’s engagement with Lattice devices and our intent is to not hinder the creation of innovative open source FPGA tools.

It’s refreshing then to see this announcement from Lattice Semiconductor. Even more so is the unexpected turn of speed with which they have done so, within a couple of days of it being discovered by the open-source community. We report depressingly often on boneheaded legal moves from corporations intent on curbing open source uses of their products. This announcement from Lattice removes what was an admonition opposing open source toolchains, can we hope that the company will continue yesterday’s gesture and build a more lasting relationship with the open source community?

The underlying point to this story is that in the world of electronics there has long been an understanding that hardware hackers drive product innovation which will later lead to more sales. Texas Instruments would for years supply samples of exotic semiconductors to impecunious students for one example, and maybe you have a base-model Rigol oscilloscope with a tacitly-approved software hack that gives it an extra 50MHz of bandwidth for another.

We can only congratulate Lattice on their recognition that open source use of their products is beneficial for them, and wish that some of the other companies triggering similar stories would see the world in the same way. Try interacting more with your open source fans; they know and love your hardware more than the average user and embracing that could mean a windfall for you down the road.

Sparklines For Your ESP32 Projects

On a typical microcontroller project we may only have access to a relatively tiny screen. Information display can be a challenge, but it’s one that may be made easier by [0xPIT]’s ESParklines library for Espressif processors using the Arduino framework.

A sparkline is a simple line graph without annotations (like axes or units) intended to fit within the flow of text. They’re largely associated today with the statistician Edward Tufte, and if you’ve not encountered them or Tufte before then we suggest you’ll enjoy educating yourself.

It’s a simple enough library and it comes with example code. Usefully it maintains a data buffer all of its own allowing simple updating, and as well as the examples there is a YouTube video we’ve put below the fold showing graphs evolving as more information is added to them. We’re curious about one thing though, it’s billed as an ESP library, for either the ESP8266 or the ESP32, but we can’t find any ESP-specific code in there and neither could our friendly ESP-guru. Have we missed something? The comments are below if you can shed any light.

Continue reading “Sparklines For Your ESP32 Projects”

How Did They Get Sampled Sounds From An SN76489 8-bit Sound Chip?

If you were lucky and had well-off parents in the early 1980s, your home computer had a sound chip on board and could make music. There were a variety of chips on the market that combined in some form the tone generators and noise sources of a synthesiser, but without the digital-to-analogue converters of later sound chips designed for sampled audio. They gave birth to chiptune music, but that was all they were made to do. The essence of a hack lies in making something perform in a way it was never intended to, and some game developers for the Acorn BBC Micro had its SN76489 producing sampled audio when it should never have been possible. How did they do it? It’s a topic [Chris Evans] has investigated thoroughly, and his write-up makes for a fascinating explanation.

So, how can a set of audio tone generators be turned into a sampled audio player, and how can it be done when the CPU is a relatively puny 6502? There’s no processor bandwidth for clever Fourier transform tricks, and 1980s tech isn’t set up for high data bandwidths. The answer lies in making best use of the controls the chip does offer, namely frequency and volume of a tone. A single cycle of a tone can be given a volume, and thus can be treated as a single sample of an unintended DAC. By using a tone frequency well above the audio range a suitable sample frequency can be found, and thus an audio stream can be played. The write-up has links to some examples in an emulator, and while they’re hardly hi-fi they’re better than you might expect for the hardware involved. Still, even at that they don’t approach this amazing 48kHz playback on a Commodore 64.

Header: SN76489, on a Colecovision console motherboard. Evan-Amos / Public domain.

When A Bike Sharing Startup Goes Away, What Do You Do With The Bikes?

Part of the detritus of many cities over the last few years has been the ubiquitous bicycles and scooters of the various companies that offer them for hourly hire via a smartphone app. They’re annoying when left randomly on pavements by their users, and they sometimes appear to outnumber riders many times over. In 2018 for many cities outside China they became a little less numerous, as the Chinese bike sharing service Ofo contracted its operations and pulled its distinctive yellow machines from the streets. A couple of years later those Ofo bikes that were sold off or simply abandoned by the company and never recovered are still with us. They can be used if their lock is dismantled, but to do that is to ignore the potential of the lock. [Aladds] has written a firmware for Ofo locks that allows them to be unlocked by a code entered upon its buttons.

Onboard the lock are an nRF51822, 4G radio, and of course the lock mechanism itself. The battery is likely to be flat by now, and though he doesn’t tell us what it is it’s worth our pointing out that similar designs sometimes use hazardous LiSOCl2 chemistry which any hacker should be very cautious with. He gives us full instructions for finding the programming connections for the chip, which can either have its stock firmware downloaded for examination, or be wiped for insertion of the new version. To show the code in action there is also a short YouTube video that we’ve put below the break. Meanwhile we’ve peered inside an Ofo lock before, back in 2018.

Continue reading “When A Bike Sharing Startup Goes Away, What Do You Do With The Bikes?”