Glasgow Uses an FPGA as an Embedded Systems Multitool

Everyone who builds embedded systems wants tools to help build and debug systems faster, so it isn’t uncommon to see boards outfitted with various tools like serial port sniffers. We’ve seen a few incarnations and the latest is Glasgow. The small board uses an FPGA and claims to do the following:

  • UART with automatic baud rate determination
  • SPI or I2C
  • Read and write common EEPROMs and flash chips
  • Read and write common EPROMs including a data rescue function
  • Program AVR chips via SPI
  • Play back JTAG SVF files
  • Debug ARC and some MIPS CPUs
  • Program XC9500LX CPLDs
  • Communicate to several wireless radios and CPUs
  • Do sound synthesis
  • Read raw data from floppy drives

The revC board is the first to be relatively functional and sports 16 I/O pins operating at up to 100 MHz, although the documentation hints that 6 MHz might be the top of what’s easily accomplished. The software is written in Python and the iCE40 FPGA toolchain that we’ve talked about many times in the past.

This already looks like a useful tool and the reconfigurable nature of FPGAs makes it a good platform to expand. The documentation discusses the difficulty in debugging things for the board, so the base software offers support such as a built-in logic analyzer to help.

We have seen dev boards become bench tools, like using the iCEstick as a logic analyzer. It’s nice to see dedicated tools like this one built up around the speed and versatility of FPGAs.

source https://hackaday.com/2020/08/10/glasgow-uses-an-fpga-as-an-embedded-systems-multitool/

Raspberry Pi Gets PATA/IDE Drive via GPIO Header

By and large, the Raspberry Pi is a computer that eschews legacy interfaces. Primarily relying on SD cards for storage and USB ports for further expansion, magnetic hard drives are a rare sight. However, [Manawyrm] decided that some 40-pin goodness was in order, and set to making a PATA IDE adapter for the platform.

To achieve the task of interfacing now-vintage IDE devices with the Raspberry Pi, [Manawyrm] elected to use the single board computer’s GPIO pins to get the job done. 23 pins are required, with 16 used for the data bus, with the rest dedicated to address lines, strobes, and other features.

The adapter is no speed demon, netting 800 kbit/s on reads and 500 kbit/s on writes with a Raspberry Pi 4. The main bottleneck comes from relying on libgpiod, which [Manawyrm] readily admits is designed for general IO tasks, not data transfers. Despite this, it’s still fast enough to play an audio CD from an IDE CD-ROM drive without skipping. A kernel build is required, however, as Raspberry Pis are unsurprisingly not configured to use ATA disks by default.

Obviously, more serious applications would substitute a dedicated USB hard disk adapter or give the Raspberry Pi a PCI-express (PCIe) card for sata drives instead, but that doesn’t discount the fun inherent in the build. While it may be slow, it shows that talking to PATA hard disks is actually quite straightforward when you understand the basics. Of course, if you want to do the opposite, and have your Raspberry Pi emulate a PATA disk, that’s possible too. Video after the break.

[Thanks to DosFox for the tip!]

source https://hackaday.com/2020/08/10/raspberry-pi-gets-pata-ide-drive-via-gpio-header/

COVID-19 Lockdown Update: These sectors may return to work

It has been announced that certain sectors may return to work during the second stage of the COVID-19 lockdown.

Click or tap on the following quick links to see the information immediately:

Highlights of the lockdown-regulation updates:

  • Alcohol and cigarettes are still NOT for sale
  • The sale of hot food is now explicitly banned
  • Selected non-consumable goods may be sold for the care of babies and toddlers
  • The number of confirmed COVID-19 cases, as of 16 April, is 2 605 with a total of 48 deaths and 903 recoveries.

Sectors that may return to work during the second stage of lockdown:

  • To ensure that SA continues the supply of energy and petroleum products, the following applies:
    • Collieries that supply Eskom may continue to operate at full capacity
    • Refineries may operate at full capacity to avoid a shortage of fuel. This includes operations such as refineries, smelters, plants, and furnaces.
  • Plumbers, electricians, glaziers, locksmiths, and roof repairers may provide emergency help. Emergency automobile repairs may also be done for people who render essential services and public transport vehicles that are permitted to operate during lockdown.
  • Hardware stores and stores selling vehicle components may also reopen but should maintain a register of persons buying essential goods and must keep record of a signed declaration whereby the buyer attests that the goods are essential.
  • Essential goods may be transported from warehousing sites to essentials service providers.
  • Call centres may operate if they are necessary to provide the following:
    • Health  
    • Safety
    • Social support
    • Government and financial services
    • Debt restructuring for consumers or retailers
    • Short-term insurance policies
  • Information and communication technology services rendered to entities and institutions engaged in delivering essential services.

Additional information:

  • Retailers who are permitted to sell essential goods may sell non-consumable goods essential for the care of babies and toddlers. These goods may include:
    • Clothing
    • Blankets
    • Towels
    • Cot mattresses
    • Teething rings
    • Pacifiers
    • Bibs
    • Feeding bottles
  • No one may be evicted from their place of residence for the duration of the lockdown.

For more information on these and other regulations, please visit https://www.gov.za/speeches/minister-nkosazana-dlamini-zuma-coronavirus-covid-19-amended-regulations-16-apr-2020-0000

Getting business exposure during lockdown:

If your business falls into any of the categories listed above, it is imperative to ensure that you make people aware of the fact that you are trading, even if it is under special circumstances.

One way to do that is by listing your products and services on Junk Mail for FREE. That’s right, no advertising cost! It’s the perfect opportunity to advertise your business during these challenging times.

All you need to do is visit Junk Mail and start placing your FREE adverts. The best part is, it’s UNLIMITED, so place as many ads as you like!

We understand the immense strain lockdown has placed on every business in South Africa, and even though this won’t last forever, you’ll need all the help you can get to make it through. Don’t take this opportunity for granted. If you need assistance with anything else, please don’t hesitate to call us on 0872369457 or fill in the contact form below.


Contact us for help to promote your essential service:

Please enable JavaScript in your browser to complete this form.


The Zero Terminal 3: A Pop-Out Keyboard Linux Computer in Your Pocket

The mobile phone revolution has delivered us attractively packaged and convenient computing in our pockets, but without the easy hackability we like in our community. Meanwhile the advent of single board computers has given us affordable super-powerful hardware that can run a very capable GNU/Linux operating system and fulfill all our hackable computing needs. Combine the two though? Plenty have tried, few have succeeded in making something as slick as the former with the open power of the latter. Fine if you like your portable devices to have a cyberdeck vibe, but maybe not something you’d take into the boardrooom. Never fear though, for [N-O-D-E] have the solution, in version 3 of the Zero Terminal. It’s the ultimate in Raspberry Pi based handheld computing, and it resembles a slightly chunky mobile phone.

At its heart is a Waveshare OLED 5.5″ touch screen, on the back owhich is mounted a PCB that carries a USB hub and power circuitry. A Pi Zero is mounted directly to this, and a cleverly designed HDMI adapter board interfaces it to the display. The power board is a generic one, the one designed for the PCB proved difficult to hand solder. There’s a very smartly designed case to give it that mobile phone feel, and on the back are a set of sockets with all the relevant Pi connections. This opens the possibility of some exciting add-ons, the first of which is a sliding keyboard similar to those on early Android phones. The ‘board is based on a [Bobricius] design, though sadly isn’t quite working yet.

As you can see in the video below the break, this is about as slick a mobile Pi as it’s possible to get. [N-O-D-E], we want one. Just take our money!

source https://hackaday.com/2020/08/10/the-zero-terminal-3-a-pop-out-keyboard-linux-computer-in-your-pocket/

Unique Instrument Plucks Out Notes on a Ruler

How does one describe the notes that come from a ruler that is anchored on one end and then plucked? The best word we can come up with is “wubulation”. So would that make this ruler-plucking synthesizer a “wubulator”? Or perhaps a “wubatron”?

Whatever we decide to call it, [Dmitry Morozov] dubbed it the RBS-20, or “ruler bass synth, 20-cm”, for the 20-cm stainless steel ruler that forms the heart of the instrument. The ruler is attached to a linear slide which varies the length of the sprung section. A pair of servos can pluck the free section of the ruler in two different places, providing notes in different registers, while another pair of servos control metal fingers that can damp the vibration, change the sustain, and alter the notes. There’s no resonator; the sounds are instead picked up by a piezo mic. Twelve keys on the base of the instrument can be programmed for various lengths, and an OLED display gives the musician feedback. The video below shows the instrument wubulating, and brings us back to those desktop jam sessions in our grade school days — at least until the rulers were confiscated.

We’ve covered a ton of similarly unique musical instruments before, like this hybrid synthesizer-violin, a symphony of soda bottles, and inexplicably, a leg guitar.

source https://hackaday.com/2020/08/10/unique-instrument-plucks-out-notes-on-a-ruler/

Unique Instrument Plucks Out Notes on a Ruler

How does one describe the notes that come from a ruler that is anchored on one end and then plucked? The best word we can come up with is “wubulation”. So would that make this ruler-plucking synthesizer a “wubulator”? Or perhaps a “wubatron”?

Whatever we decide to call it, [Dmitry Morozov] dubbed it the RBS-20, or “ruler bass synth, 20-cm”, for the 20-cm stainless steel ruler that forms the heart of the instrument. The ruler is attached to a linear slide which varies the length of the sprung section. A pair of servos can pluck the free section of the ruler in two different places, providing notes in different registers, while another pair of servos control metal fingers that can damp the vibration, change the sustain, and alter the notes. There’s no resonator; the sounds are instead picked up by a piezo mic. Twelve keys on the base of the instrument can be programmed for various lengths, and an OLED display gives the musician feedback. The video below shows the instrument wubulating, and brings us back to those desktop jam sessions in our grade school days — at least until the rulers were confiscated.

We’ve covered a ton of similarly unique musical instruments before, like this hybrid synthesizer-violin, a symphony of soda bottles, and inexplicably, a leg guitar.

source https://hackaday.com/2020/08/10/unique-instrument-plucks-out-notes-on-a-ruler/

Unique Instrument Plucks Out Notes on a Ruler

How does one describe the notes that come from a ruler that is anchored on one end and then plucked? The best word we can come up with is “wubulation”. So would that make this ruler-plucking synthesizer a “wubulator”? Or perhaps a “wubatron”?

Whatever we decide to call it, [Dmitry Morozov] dubbed it the RBS-20, or “ruler bass synth, 20-cm”, for the 20-cm stainless steel ruler that forms the heart of the instrument. The ruler is attached to a linear slide which varies the length of the sprung section. A pair of servos can pluck the free section of the ruler in two different places, providing notes in different registers, while another pair of servos control metal fingers that can damp the vibration, change the sustain, and alter the notes. There’s no resonator; the sounds are instead picked up by a piezo mic. Twelve keys on the base of the instrument can be programmed for various lengths, and an OLED display gives the musician feedback. The video below shows the instrument wubulating, and brings us back to those desktop jam sessions in our grade school days — at least until the rulers were confiscated.

We’ve covered a ton of similarly unique musical instruments before, like this hybrid synthesizer-violin, a symphony of soda bottles, and inexplicably, a leg guitar.

source https://hackaday.com/2020/08/10/unique-instrument-plucks-out-notes-on-a-ruler/

45 Minute Podcast Served Up On A Floppy Disk

Near the turn of the millenium, portable media players like the iPod led to the development of the podcast. The format generally consists of content similar to talk-based radio, and is typically served up in modern codecs like AAC, M4A and MP3. However, [Sean Haas] decided these were all too chunky, and wanted to see if it was possible to deliver similar content on a floppy disk. The results are predictable, but impressive.

[Sean]’s aim was to try and fit roughly 45 minutes of audio on to a 1.44 MB floppy disk. To pull this off, he looked far and wide for a codec fitting for the task. The choice landed on was Adaptive Multi-Rate, or AMR. Typically used to encode audio for GSM phone calls, it can also be used to create compressed audio files.

Initial attempts weren’t quite good enough to do the job, so [Sean] introduced a pre-processing step with FFMPEG, to speed the audio up 1.2 times. It was then passed through SoX and encoded in AMR at approximately 5 kbit/s. This allowed a 45-minute long MP3 file of 72MB to be compressed down into just 1.2 MB, and thus able to fit onto a floppy disk. Audio quality is predictably poor, as you can hear in the embedded clip below, but definitely intelligible. You’d probably want to skip any musical passages if you were doing this seriously.

[Sean] took it one step further, converted his entire back catalogue, and created an RSS feed. This was then submitted to the usual podcast directories like Apple Podcasts, Google Podcasts, and the like. While most rejected the submission, as they lack support for AMR files, somehow Spotify has no problem with the content. [Sean] suspects there must be some conversion going on somewhere as browsers don’t usually have AMR players built in.

It’s a fun project, and we’re almost disappointed nobody tried this back in the era of floppy trading and BBSes. If you’re interested in a history of compressed audio standards and how they changed the world, we’d be happy to oblige.

source https://hackaday.com/2020/08/09/45-minute-podcast-served-up-on-a-floppy-disk/

Talking Head Teaches Laplace Transform

Most people who deal with electronics have heard of the Fourier transform. That mathematical process makes it possible for computers to analyze sound, video, and it also offers critical math insights for tasks ranging from pattern matching to frequency synthesis. The Laplace transform is less familiar, even though it is a generalization of the Fourier transform. [Steve Bruntun] has a good explanation of the math behind the Laplace transform in a recent video that you can see below.

There are many applications for the Laplace transform, including transforming types of differential equations. This comes up often in electronics where you have time-varying components like inductors and capacitors. Instead of having to solve a differential equation, you can perform a Laplace, solve using common algebra, and then do a reverse transform to get the right answer. This is similar to how logarithms can take a harder problem — multiplication — and change it into a simpler addition problem, but on a much larger scale.

We assume it was a choice, but [Steve] presents wearing all black on a black background, so we found ourselves imagining him as a floating head of math knowledge. Kidding aside, what a great explanation of the topic! You’ll probably need some calculus to get the most out of the video, but it is interesting to just watch him cut through the equations.

Once you tackle the transform, you’ll find it interesting to learn about the S-plane which is the graphical representation of the Laplace transform. If you need a brush up on calculus we have mentioned before that calculus isn’t really hard. We also like a very old book on the subject.

source https://hackaday.com/2020/08/09/talking-head-teaches-laplace-transform/

Hackaday Links: August 9, 2020

We regret to admit this, but we completely missed the fact that Windows 10 turned five years old back in March. Granted, things were a little weird back then — at least it seemed weird at the time; from the current perspective, things were downright normal then. Regardless, our belated congratulations to Microsoft, who, like anyone looking after a five-year-old, spends most of their time trying to keep their charge from accidentally killing itself. Microsoft has done such a good job at keeping Windows 10 alive that it has been installed on “one billion monthly active devices”. Of course, back in April of 2015 they predicted that the gigainstall mark would be reached in 2018. But what’s a couple of years between friends?

Of all the things that proved to be in short supply during the pandemic lockdowns, what surprised us most was not the toilet paper crunch. No, what really surprised us was the ongoing webcam supply pinch. Sure, it makes sense, with everyone suddenly working from home and in need of a decent camera for video conferencing. But we had no idea that the market was so dominated by one manufacturer — Logitech — that their cameras could suddenly become unobtainium. Whatever it is that’s driving the shortage, we’d take Logitech’s statement that “demand will be met in the next 4-6 weeks” with a huge grain of salt. After all, back-to-school shopping is likely to look vastly different this year than in previous years.

Speaking of education, check out the CrowPi2 STEM laptop. On the one hand, it looks like just another Raspberry Pi-based laptop, albeit one with a better level of fit and finish than most homebrew Pi-tops. With a Raspberry Pi 4b on board, it can do all the usual stuff — email, browse the web, watch videos. The secret sauce is under the removable wireless keyboard, though: a pretty comprehensive electronics learning lab. It reminds us of the Radio Shack “150-in-One” kits that so many of us cut our teeth on, but on steroids. Having a complete suite of modules and a breadboarding area built right into the laptop needed to program it is brilliant, and we look forward to seeing how the Kickstarter for this does.

Exciting news from Hackaday Superfriend Chris Gammell — he has launched a new podcast to go along with his Contextual Electronics training courses. Unsurprisingly dubbed the Contextual Electronics Podcast, he already has three episodes in the can. They’re available as both video and straight audio, and from the few minutes we’ve had to spend on them so far, Chris has done a great job in terms of production values and guests with Sophy Wong, Stephen Hawes, and Erik Larson leading off the series. We wish him luck with this new venture, and we’re looking forward to future episodes.

One of the best things about GoPro and similar sports cameras is their ability to go just about anywhere and show things we normally don’t get to see. We’re thinking of those gorgeous slo-mo selfies of surfers inside a curling wave, or those cool shots of a skier powder blasting down a mountain slope. But this is the first time we’ve seen a GoPro mounted inside a car’s tire. The video by the aptly named YouTuber [Warped Perception] shows how he removed the tire from the wheel and mounted the camera, a battery pack, and an LED light in the rim, then remounted the tire. The footage of the tire deforming as it contacts the ground is fascinating but oddly creepy. It sort of reminds us a little of the footage from cameras inside the Saturn V fuel tanks — valuable engineering information to be sure, but forbidden in some way.

source https://hackaday.com/2020/08/09/hackaday-links-august-9-2020/