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?” →

Surviving The Pandemic As A Hacker: Peering Behind The Mask

We’re now several months into the global response to the COVID-19 pandemic, with most parts of the world falling somewhere on the lockdown/social distancing/opening up path.

It’s fair to say now that while the medical emergency has not passed, the level of knowledge about it has changed significantly. When communities were fighting to slow the initial spead, the focus was on solving the problem of medical protection gear and other equipment shortages at all costs with some interesting yet possibly hazardous solutions. Now the focus has moved towards protecting the general public when they do need to venture out, and as society learns to get life moving again with safety measures in place.

So, we all need masks of some sort. What type to do you need? Is one type better than another? And how do we all get them when everyone suddenly needs what was once a somewhat niche item?

Continue reading “Surviving The Pandemic As A Hacker: Peering Behind The Mask” →

Social Distancing Headgear For The Futuristically Inclined

Those of you with an eye to classic cinema will remember 1985’s Back To The Future, and particularly its scientist character Dr. Emmett Brown. When the protagonist Marty McFly finds himself in 1955, on his first meeting with they younger Dr. Brown the latter is wearing an experimental helmet designed to read thoughts. It doesn’t work, but it’s an aesthetic we’re reminded of in [Håkan Lidbo]’s Corona Hat, a social distancing tool that incorporates distance sensors into a piece of headgear.

The device is simple enough, half of a globe fitted with a set of car reversing sensors and the battery from an autonomous vacuum cleaner. It’s sprayed a bright orange, and worn on the head as he walks around town in the video below the break. It beeps any time something or somebody gets too close, and as far as we can see it’s effective in what it does. We are not so sure about the look though, to us as well as Emmett Brown it’s a little too reminiscent of the character Sheev in the 2005 Dukes of Hazzard movie who wore an armadillo’s armour as a hat. Perhaps more conventional headgear as a basis might gain it a few fewer askance looks.

This isn’t the first ultrasonic social distancing sensor we’ve seen. Probably the most noteworthy project in this arena though has to be the one with the high voltage that scares more with its bark than its bite.

Continue reading “Social Distancing Headgear For The Futuristically Inclined” →

Why Does Solder Smoke Always Find Your Face?

For some of us the smell of rosin soldering flux vaporizing from the tip of an iron as a project takes shape is as evocative as the scent of a rose on a summer’s day. We’ve certainly breathed enough of it over the years, as it invariably goes from the piece of work directly into the face of the person doing the soldering. This is something that has evidently troubled [AlphaPhoenix], who has gone to extravagant lengths to research the problem using planar laser illumination and a home-made (and possibly hazardous) smoke generator.

He starts with a variety of hypotheses with everything from a human-heat-driven air vortex to the Coandă effect, but draws a blank with each one as he models them using cardboard cut-outs and boxes as well as himself. Finally he has the light bulb moment and discovers that the key to the mystery lies in his arms coming across the bench to hold both iron and solder. They close off an area of lower-pressure dead space which draws the air current containing the smoke towards it, and straight into his face.  It’s something that can be combated with a small fan or perhaps a fume extractor, as despite some video trickery we have yet to master soldering iron telekinesis.

Continue reading “Why Does Solder Smoke Always Find Your Face?” →