Multi-Band Receiver On A Chip Controlled By Arduino

The Silicon Labs Si4735 is a single-chip solution for receiving AM, FM, and shortwave radio. With a bit of hacking, it even supports single sideband (SSB). All you’ve got to do is provide it with a suitable control interface, which [Ricardo Lima Caratti] has done with his recent project.

Using an Arduino Pro Mini, a handful of buttons, and a standard TFT display, [Ricardo] has put together a serviceable little receiver with a fairly impressive user interface. We especially like the horizontal bars indicating the signal to noise ratio and received signal strength. The next evolution would be to put this whole rig into some kind of enclosure, but for now he seems content to control the action with a handful of unlabeled buttons on a piece of perfboard.

Of course, the presentation of this receiver isn’t really the point; it’s more of a proof of concept. You see, [Ricardo] is the person who’s actually developed the library that allows you to control the Si4735 from your microcontroller of choice over I2C. He’s currently tested it with several members of the official (and not so official) Arduino family, as well as the ESP32.

The documentation [Ricardo] has put together for his MIT licensed Arduino Si4735 library is nothing short of phenomenal. Seriously, if all open source projects were documented even half as well as this one is, we’d all be a few notches closer to world peace. Even if you aren’t terribly interested in adding shortwave radio reception to your next project, you’ve got to browse his documentation just to see where the high water mark is.

We actually first heard about this library a few days ago when we covered another receiver using the Si4735 and [Ricardo] popped into the comments to share some of the work he’d been doing to push the state-of-the-art forward for this promising chip.

Continue reading “Multi-Band Receiver On A Chip Controlled By Arduino”

This DIY Dynamometer Shows Just What A Motor Can Do

Back in high school, all the serious gearheads used to brag about two things: their drag strip tickets, and their dynamometer reports. The former showed how fast their muscle car could cover a quarter-mile, while the latter was documentation on how much power their carefully crafted machine could deliver. What can I say; gas was cheap and we didn’t have the Internet to distract us.

Bragging rights are not exactly what [Jeremy Fielding] has in mind for his DIY dynamometer, nor is getting the particulars on a big Detroit V8 engine. Rather, he wants to characterize small- to medium-sized electric motors, with an eye toward repurposing them for different projects. To do this, he built a simple jig to measure the two parameters needed to calculate the power output of a motor: speed and torque. A magnetic tachometer does the job of measuring the motor’s speed, but torque proved a bit more challenging. The motor under test is coupled to a separate electric braking motor, which spins free when it’s not powered. A lever arm of known length connects to the braking motor on one end while bearing on a digital scale on the other. With the motor under test spun up, the braking motor is gradually powered, which rotates its housing and produces a force on the scale through the lever arm. A little math is all it takes for the mystery motor to reveal its secrets.

[Jeremy]’s videos are always instructional, and the joy he obviously feels at discovery is infectious, so we’re surprised to see that we haven’t featured any of his stuff before. We’ve seen our share of dynos before, though, from the tiny to the computerized to the kind that sometimes blows up.

Continue reading “This DIY Dynamometer Shows Just What A Motor Can Do”

Scott Shawcroft Is Programming Game Boys With CircuitPython

Some people like to do things the hard way. Maybe they drive a manual transmission, or they bust out the wire wrap tool instead of a soldering iron, or they code in assembly to stay close to the machine. Doing things the hard way certainly has its merits, and we are not here to argue about that. Scott Shawcroft — project lead for CircuitPython — on the other hand, makes a great case for doing things the easy way in his talk at the 2019 Hackaday Superconference.

In fact, he proved how easy it is right off the bat. There he stood at the podium, presenting in front of a room full of people, poised at an unfamiliar laptop with only the stock text editor. Yet with a single keystroke and a file save operation, Scott was able make the LEDs on his Adafruit Edge Badge — one of the other pieces of hackable hardware in the Supercon swag bag — go from off to battery-draining bright.

Code + Community

As Scott explains, CircuitPython prides itself on being equal parts code and community. In other words, it’s friendly and inviting all the way around. Developing in CircuitPython is easy because the entire environment — the code, toolchain, and the devices — are all extremely portable. Interacting with sensors and other doodads is easy because of the import and library mechanics Python is known for, both of which are growing within the CircuitPython ecosystem all the time.

CircuitPython is so friendly that it can even talk to old hardware relatively easily without devolving into a generational battle. To demonstrate this point, Scott whipped out an original Nintendo Game Boy and a custom cartridge, which he can use to play fun sounds via the Game Boy’s CPU.

Now You’re Playing With Python

It’s interesting to see the platforms on which Scott has used the power of CircuitPython. The Game Boy brings the hardware for sound and pixel generation along with some logic, but he says it’s the code on the cartridge that does the interesting stuff.

The CPU communicates with carts at a rate of 1MHz. As long as you can keep this rate up and the CPU understands your instructions, you can get it to do anything you want.

Scott’s custom cart has a 120MHz SAMD51. He spends a second explaining how he gets from Python libraries down to the wire that goes to the Game Boy’s brain — basically, the C code underneath CircuitPython accesses direct structs defined within the SAMD to do Direct Memory Access (DMA), which allows for jitter-free communication at 1MHz.

He’s using the chip’s lookup tables to generate a 1MHz signal out of clock, read, and A15 in order to send music-playing instructions to the sound register of the Game Boy’s CPU. It sounds like a lot of work, but CircuitPython helps to smooth over the dirty details, leaving behind a simpler interface.

If you want easy access to hardware no matter how new or nostalgic, the message is clear: snake your way in there with CircuitPython.

Continue reading “Scott Shawcroft Is Programming Game Boys With CircuitPython”

The Last Scientific Calculator?

There was a time when being an engineering student meant you had a sword. Well, really it was a slide rule hanging from your belt, but it sounds cooler to call it a sword. The slide rule sword gave way to calculators hanging from your belt loop, and for many engineers that calculator was from HP. Today’s students are more likely to have a TI or Casio calculator, but HP is still in there with the HP Prime. It is hard to call it a calculator since the latest variant has a 528 MHz ARM Cortex A7, 256 MB of RAM, and 512 MB of ROM. But if you can’t justify a $150 calculator, there are some cheap and even free options out there to get the experience. To start with, HP has a free app that runs on Windows or Mac that works just like the calculator. Of course, that’s free as in no charge, not free as in open source. But still, it will run under Wine with no more than the usual amount of coaxing.

You might wonder why you need a calculator on your computer, and perhaps you don’t. However, the HP Prime isn’t just your 1980s vintage calculator. It also has an amazing number of applications including a complete symbolic math system based on xCAS/Giac. It is also programmable using a special HP language that is sort of like Basic or Pascal. Other applications include plotting, statistics, solvers, and even a spreadsheet that can hold up to 10,000 rows and 676 columns.

Portability

It is easy to think that HP provides the free PC software so you’ll go out and buy the real calculator, and that may be part of it. However, you can also get official apps for Android and iOS. They aren’t free, but they are relatively inexpensive. On iOS the cost right now is $25 and on Android it is $20. There are also “lite” versions that are free.

Continue reading “The Last Scientific Calculator?”

On-Demand Manufacturing Hack Chat

Join us on Wednesday, March 4 at noon Pacific for the On-Demand Manufacturing Hack Chat with Dan Emery!

The classical recipe for starting a manufacturing enterprise is pretty straightforward: get an idea, attract investors, hire works, buy machines, put it all in a factory, and profit. Things have been this way since the earliest days of the Industrial Revolution, and it’s a recipe that has largely given us the world we have today, for better and for worse.

One of the downsides of this model is the need for initial capital to buy the machines and build the factory. Not every idea will attract the kind of money needed to get off the ground, which means that a lot of good ideas never see the light of day. Luckily, though, we live in an age where manufacturing is no longer a monolithic process. You can literally design a product and have it tested, manufactured, and sold without ever taking one shipment of raw materials or buying a single machine other than the computer that makes this magic possible.

As co-founder of Ponoko, Dan Emery is in the thick of this manufacturing revolution. His company capitalizes on the need for laser cutting, whether it be for parts used in rapid prototyping or complete production runs of cut and engraved pieces. Their service is part of a wider ecosystem that covers almost every additive and subtractive manufacturing process, including 3D-printing, CNC machining, PCB manufacturing, and even final assembly and testing, providing new entrepreneur access to tools and processes that would have once required buckets of cash to acquire and put under one roof.

Join us as we sit down with Derek and discuss the current state of on-demand manufacturing and what the future holds for it. We’ll talk about Ponoko’s specific place in this ecosystem, and what role outsourced laser cutting could play in getting your widget to market. We’ll also take a look at how Ponoko got started and how it got where it is today, as well as anything else that comes up.

join-hack-chatOur Hack Chats are live community events in the Hackaday.io Hack Chat group messaging. This week we’ll be sitting down on Wednesday, March 4 at 12:00 PM Pacific time. If time zones have got you down, we have a handy time zone converter.

Click that speech bubble to the right, and you’ll be taken directly to the Hack Chat group on Hackaday.io. You don’t have to wait until Wednesday; join whenever you want and you can see what the community is talking about.

Giant Clock Made In The Nick Of Time

When [tnjyoung] was asked to build a huge lighted clock for a high school theater’s production of Cinderella with only two weeks before opening night, he probably wished for a fairy godmother of his own to show up and do it for him. But he and his team pulled it off, and it looks amazing. That medallion in the middle? It was laid out painstakingly by hand, using electrical tape.

This thing is 12 feet wide and weighs more than 500 pounds. Even so, it isn’t a permanent set piece, so it has to move up and down throughout the show on airplane cables. Now for the minutiae: there’s an Arduino Uno with built-in Wi-Fi that receives UDP commands from a phone to raise and lower the clock at the appropriate times. The ‘duino is also controlling two stepper motors, one for the hour hand and one for the minute hand.

Time is almost a minor character in the story of Cinderella, since she has to get back by midnight. Because of this, [tnjyoung] programmed a dozen or so time cues that move the steppers at various speeds to achieve different effects, like time flying by as she dances the night away with the Prince. Hour you still just sitting there? Sweep past the break to watch the build process fly by in a matter of minutes.

Got all the time in the world? Make a clock out of clocks. Clocks all the way down.

Continue reading “Giant Clock Made In The Nick Of Time”

Project Rubicon: The NSA Secretly Sold Flawed Encryption For Decades

There have been a few moments in the past few years, when a conspiracy theory is suddenly demonstrated to be based in fact. Once upon a time, it was an absurd suggestion that the NSA had data taps in AT&T buildings across the country. Just like Snowden’s revelations confirmed those conspiracy theories, a news in February confirmed some theories about Crypto AG, a Swiss cryptography vendor.

The whole story reads like a cold-war era spy thriller, and like many of those novels, it all starts with World War II. As a result of a family investment, Boris Hagelin found himself at the helm of Aktiebolaget Cryptograph, later renamed to Crypto AG (1952), a Swedish company that built and sold cipher machines that competed with the famous Enigma machine. At the start of the war, Hagelin decided that Sweden was not the place to be, and moved to the United States. This was a fortuitous move, as it allowed Hagelin to market his company’s C-38 cipher machine to the US military. That device was designated the M-209 by the army, and became the standard in-the-field encryption machine.

Continue reading “Project Rubicon: The NSA Secretly Sold Flawed Encryption For Decades”