How To Program A Really Cheap Microcontroller

There are rumors of a cheap chip that does USB natively, has an Open Source toolchain, and costs a quarter. These aren’t rumors: you can buy the CH552 microcontroller right now. Surprisingly, there aren’t many people picking up this cheap chip for their next project. If there’s no original projects using this chip, no one is going to use this chip. Catch 22, and all that.

Like a generous god, [Aaron Christophel] has got your back with a working example of programming this cheap chip, and doing something useful with it. It blinks LEDs, it writes to an I2C display, and it does everything you would want from a microcontroller that costs a few dimes.

The CH552, and its friends the small CH551 all the way up to the CH559, contain an 8051 core, somewhere around 16 kB of flash, the high-end chips have a USB controller, there’s SPI, PWM, I2C, and it costs pennies. Unlike so many other chips out there, you can find SDKs and toolchains. You can program the chip over USB. Clearly, we’re looking at something really cool if someone writes an Arduino wrapper for it. We’re not there yet, but we’re close.

To program these chips, [Aaron] first had to wire up the microcontroller into a circuit. This was just a bit of perf board, a resistor, a few caps, and a USB A plug. That’s it, that’s all that’s needed. This is a fairly standard 8051 core, so writing the code is relatively easy. Uploading is done with the WCHISPTool software, with options available for your favorite flavor of *nix.

But it gets better. One of the big features of the CH552 is USB. That means no expensive or weird programmers, yes, but it also means the CH552 can emulate a USB HID device. The CH552 can become a USB keyboard. To demo this, [Aaron] programmed a CH552 board (DE, here’s the Google translatrix) loaded up with touch pads and LEDs to become a USB keyboard.

If you don’t feel like soldering up one of these yourself, there are some suppliers of CH554 dev boards, and the files for [Aaron]’s projects are available here. Check out the videos below, because this is the best tutorial yet on programming and using some very interesting chips that just appeared on the market.

Continue reading “How To Program A Really Cheap Microcontroller”

Build Your Own Dial-up ISP With A Raspberry Pi

The bing-bongs, screeches, and whiirings of a diai-up modem are long forgotten now. For good reason. Dial up was slow, and if you’re one of those unlucky people reading this and waiting for the animated gif above this paragraph to load, you have our condolences. But still, nostalgia. It bit [Doge Microsystems] hard, and now there’s a dial-up ISP on [Doge]’s desk.  Why? For fun, probably, and if you’re going to retrocompute, you might as well go the whole way.

The setup for this astonishing feat of dial-up networking is an ISA modem inside a ‘lunchbox’ computer running what is probably Windows 98. The ‘homebrew POTS’ system is a SIP ATA (which is most certainly obsolete and out of stock, but this one will get you close), and a Raspberry Pi clone running Asterisk.  There’s a serial modem and a USB to serial adapter involved, and a PPP daemon running on the Pi clone answers the incoming call, negotiates authentication, and does the NAT. It’s a networking geek’s dream.

As for what good this is, anyone who asks the question is missing the point entirely. Dial up is slow, horrible, and there’s a reason we don’t use it anymore. However, and there’s always a however, if you’re developing your own serial modem hardware for some weird project, I guess this setup would come in handy. If you’d like to test out a wooden modem, this is the setup for you. Yes, it’s ancient technology no one wants anymore, but that’s how you do it if you want.

Airbus To Halt Production Of The A380; Goodbye To An Engineering Triumph

Eleven years ago, the Airbus A380 entered commercial service with Singapore Airlines. In the time since then it has become the queen of the skies. It’s a double-decker airliner, capable of flying 550 passengers eight thousand nautical miles. Some configurations of the A380 included private suites. Some had a shower. This is the epitome of luxury, a dream of flying with long-stemmed glasses, a movie, and a pleasant dream in mid-air.

Now, after the cancellation of A380 orders by Emirates, Airbus has announced it will end production of this massive, massive plane. No, it’s not the last flight of the Concorde, but it is the beginning of the end of an era. The biggest and most impressive planes just aren’t economical; it’s possible to fly three 787s across the globe for a single flight of an A380. The skies won’t fall silent, but soon the A380 will be no more.

Continue reading “Airbus To Halt Production Of The A380; Goodbye To An Engineering Triumph”

New Part Day: A RISC-V CPU For Eight Dollars

RISC-V is the new hotness, and companies are churning out code and announcements, but little actual hardware. Eventually, we’re going to get to the point where RISC-V microcontrollers and SoCs cost just a few bucks. This day might be here, with Seeed’s Sipeed MAix modules. it’s a RISC-V chip you can buy right now, the bare module costs eight US dollars, there are several modules, and it has ‘AI’.

Those of you following the developments in the RISC-V world may say this chip looks familiar. You’re right; last October, a seller on Taobao opened up preorders for the Sipeed M1 K210 chip, a chip with neural networks. Cool, we can ignore some buzzwords if it means new chips. Seeed has been busy these last few months, and they’re now selling modules, dev boards, and peripherals that include a camera, mic array, and displays. It’s here now, and you can buy one. If it seems a little weird for Seeed Studios to get their hands on this, remember: the ESP8266 just showed up on their web site one day a few years ago. Look where we are with that now.

The big deal here is the Sipeed MAix-I module with WiFi, sold out because it costs nine bucks. Inside this module is a Kendryte K210 RISC-V CPU with 8MB of on-chip SRAM and a 400MHz clock. This chip is also loaded up with a Neural Network Processor, an Audio Processor with support for eight microphones, and a ‘Field Programmable IO array’, which sounds like it’s a crossbar on the 48 GPIOs on the chip. Details and documentation are obviously lacking.

In addition to a chip that’s currently out of stock, we also have the same chip as above, without WiFi, for a dollar less. It’ll probably be out of stock by the time you read this. There’s a ‘Go Suit’ that puts one of these chips in an enclosure with a camera and display, and there’s a microphone array add-on. There’s a binocular camera module if you want to play around with depth sensing.

The first time we heard of this chip, it was just a preorder on Taobao. It told us two things: RISC-V chips are coming sooner than we expected, and you can do preorders on Taobao. Seeed has a history of bringing interesting chips to the wider world, and if you want a RISC-V chip right now, here you go. Just be sure to tell us what you did with it.

The Problem With Self-Driving Cars: The Name

In 1899, you might have been forgiven for thinking the automobile was only a rich-man’s toy. A horseless carriage was for flat garden pathways. The auto was far less reliable than a horse. This was new technology, and rich people are always into their gadgets, but the automobile is a technology that isn’t going to go anywhere. The roads are too terrible, they don’t have the range of a horse, and the world just isn’t set up for mechanized machines rolling everywhere.

This changed. It changed very quickly. By 1920, cars had taken over. Industrialized cities were no longer in the shadow of a mountain of horse manure. A highway, built specifically for automobiles, stretched from New York City to San Francisco. The age of the automobile had come.

And here we are today, in the same situation, with a technology as revolutionary as the automobile. People say self-driving cars are toys for rich people. Teslas on the road aren’t for the common man because the economy model costs fifty thousand dollars. They only work on highways anyway. The reliability just isn’t there for level-5 automation. You’ll never have a self-driving car that can drive over mountain roads in the snow, or navigate a ball bouncing into the street of a residential neighborhood chased by a child. But history proves time and time again that people are wrong. Self-driving cars are the future, and the world will be unrecognizable in thirty years. There’s only one problem: we’re not calling them the right thing. Self-driving cars should be called ‘cryptocybers’.

Continue reading “The Problem With Self-Driving Cars: The Name”

The Future Of Fritzing Is Murky At Best

Fritzing is a very nice Open Source design tool for PCBs, electrical sketches, and schematics for designers and artists to move from a prototype to real hardware. Over the years, we’ve seen fantastic projects built with Fritzing. Fritzing has been the subject of books, lectures, and educational courses, and the impact of Fritzing has been huge. Open up a book on electronics from O’Reilly, and you’ll probably see a schematic or drawing created in Fritzing.

However, and there’s always a however, Fritzing is in trouble. The project is giving every appearance of having died. You can’t register on the site, you can’t update parts, the official site lacks HTTPS, the Twitter account has been inactive for 1,200 days, there have been no blog posts for a year, and the last commit to GitHub was on March 13th. There are problems, but there is hope: [Patrick Franken], one of the developers of Fritzing and the president of the PCB firm Aisler which runs the Fritzing Fab, recently gave a talk at FOSDEM concerning the future of Fritzing. (That’s a direct FTP download, so have fun).

Continue reading “The Future Of Fritzing Is Murky At Best”

Western Digital Releases Their RISC-V Cores To The World

What grew out of a university research project is finally becoming real silicon. RISC-V, the ISA that’s completely Big-O Open, is making inroads in dev boards, Arduino-ish things, and some light Internet of Things things. That’s great and all, but it doesn’t mean anything until you can find RISC-V cores in actual products. The great hope for RISC-V in this regard looks to be Western Digital, manufacturers of storage. They’re going to put RISC-V in all their drives, and they’ve just released their own version of the core, the SweRV.

Last year, Western Digital made the amazing claim that they will transition their consumption of silicon over to RISC-V, putting one Billion RISC-V cores per year into the marketplace. This is huge news, akin to Apple saying they’re not going to bother with ARM anymore. Sure, these cores won’t necessarily be user-facing but at least we’re getting something.

As far as technical specs for the Western Digital SweRV core go, it’s a 32-bit in-order core, with a target implementation process of 28nm, running at 1.8GHz. Performance per MHz is good, and if you want a chip or device to compare the SweRV core to (this is an inexact comparison, because we’re just talking about a core here and not an entire CPU or device), we’re looking at something between a decade-old iPhone or a very early version of the Raspberry Pi and a modern-ish tablet. Again, an inexact comparison, but no direct comparison can be made at this point.

Since Western Digital put the entire design for the SweRV core on Github, you too can download and simulate the core. It’s just slightly less than useless right now, but the design is proven in Verilator; running this on a cheap off-the-shelf FPGA dev board is almost a fool’s errand. However, this does mean there’s progress in bringing RISC-V to the masses, and putting Open cores in a Billion devices a year.