Learn To Loop The Python Way: Iterators And Generators Explained

If you’ve ever written any Python at all, the chances are you’ve used iterators without even realising it. Writing your own and using them in your programs can provide significant performance improvements, particularly when handling large datasets or running in an environment with limited resources. They can also make your code more elegant and give you “Pythonic” bragging rights.

Here we’ll walk through the details and show you how to roll your own, illustrating along the way just why they’re useful.

Continue reading “Learn To Loop The Python Way: Iterators And Generators Explained”

A $1, Linux-Capable, Hand-Solderable Processor

Over on the EEVblog, someone noticed an interesting chip that’s been apparently flying under our radar for a while. This is an ARM processor capable of running Linux. It’s hand-solderable in a TQFP package, has a built-in Mali GPU, support for a touch panel, and has support for 512MB of DDR3. If you do it right, this will get you into the territory of a BeagleBone or a Raspberry Pi Zero, on a board that’s whatever form factor you can imagine. Here’s the best part: you can get this part for $1 USD in large-ish quantities. A cursory glance at the usual online retailers tells me you can get this part in quantity one for under $3. This is interesting, to say the least.

The chip in question, the Allwinner A13, is a 1GHz ARM Cortex-A8 processor. While it’s not much, it is a chip that can run Linux in a hand-solderable package. There is no HDMI support, you’ll need to add some more chips (that are probably in a BGA package), but, hey, it’s only a dollar.

If you’d like to prototype with this chip, the best options right now are a few boards from Olimex, and a System on Module from the same company. That SoM is an interesting bit of kit, allowing anyone to connect a power supply, load an SD card, and get this chip doing something.

Currently, there aren’t really any good solutions for a cheap Linux system you can build at home, with hand-solderable chips. Yes, you could put Linux on an ATMega, but that’s the worst PC ever. A better option is the Octavo OSD335x SoC, better known as ‘the BeagleBone on a Chip’. This is a BGA chip, but the layout isn’t too bad, and it can be assembled using a $12 toaster oven. The problem with this chip is the price; at quantity 1000, it’s a $25 chip. At quantity one, it’s a $40 chip. NXP’s i.MX6 chips have great software support, but they’re $30 chips, and you’ll need some DDR to make it do something useful, and that doesn’t even touch the fiddlyness of a 600-ball package

While the Allwinner A13 beats all the other options on price and solderability, it should be noted that like all of these random Linux-capable SoCs, the software is a mess. There is a reason those ‘Raspberry Pi killers’ haven’t yet killed the Raspberry Pi, and it’s because the Allwinner chips don’t have documentation and let’s repeat that for emphasis: the software is a mess.

Still, if you’re looking for a cheap chip you can solder at home, this one seems to be the only game in town. We’re really looking forward to seeing what you make with it!

3D Printing In Metal: The Laser And Metal Powder Printers We Saw At IMTS

Last week I went to the International Manufacturing Technology Show (IMTS) and it was incredible. This is a toy store for machinists and showcases the best of industrial automation. But one of the coolest trends I found at the show are all the techniques used to 3D print in metal. The best part is that many of the huge machines on display are actually running!

It’s probably better to refer to this as additive manufacturing, because the actual methods can be significantly different from your 3D printer. Below you’ll find examples of three different approaches to this process. I had a great interview with a company doing actual 3D printing in metal using a nozzle-based delivery often called cladding. There’s a demo video of powder layer printing using lasers. And a technique that uses binders as an intermediary step toward the final metal part. Let’s take a look!

Continue reading “3D Printing In Metal: The Laser And Metal Powder Printers We Saw At IMTS”

Exploring An Abandoned Toys “R” Us

If someone asked me to make a list of things I didn’t expect to ever hear again, the question “Do you want to go to a Toys “R” Us?” would be pretty near the top spot. After all of their stores (at least in the United States) closed at the end of June 2018, the House of Geoffrey seemed destined to join Radio Shack as being little more than a memory for those past a certain age. A relic from the days when people had to leave their house to purchase goods.

But much to my surprise, a friend of mine recently invited me to join him on a trip to the now defunct toy store. His wife’s company purchased one of the buildings for its ideal location near a main highway, and before the scrappers came through to clean everything out, he thought I might like a chance to see what was left. Apparently his wife reported there was still “Computers and stuff” still in the building, and as I’m the member of our friend group who gets called in when tangles of wires and sufficiently blinking LEDs are involved, he thought I’d want to check it out. He wasn’t wrong.

Readers may recall that Toys “R” Us, like Radio Shack before it, had a massive liquidation sale in the final months of operations. After the inventory was taken care of, there was an auction where the store’s furnishings and equipment were up for grabs. I was told that this location was no different, and yet a good deal of material remained. In some cases there were no bidders, and in others, the people who won the auction never came back to pick the stuff up.

So on a rainy Sunday evening in September, armed with flashlight, camera, and curiosity, I entered a Toys “R” Us for last time in my life. I found not only a stark example of what the changing times have done to retail in general, but a very surprising look at what get’s left behind when the money runs out and the employees simply give up.

Continue reading “Exploring An Abandoned Toys “R” Us”

This Xbox 360 Is Powered By Steam

Now that we’re far enough into the next generation of home video game consoles that we can’t really keep calling them that anymore, yard sales are sure to be full of lonely Xbox 360s and PS3s that have been put out to pasture. You’ll probably even find a Wii U or two out there that somebody accidentally purchased. This is great for hackers who like cramming new electronics into outdated consumer gear, and accordingly, we’re starting to see the fruits of that generational shift.

Case in point, this Xbox 360 which has been transformed into a “Steam Box” by [Pedro Mateus]. He figured the Xbox 360 was the proper size to fit a full PC plus PSU, while still looking contemporary enough that it won’t seem out of place in the entertainment center. Running SteamOS on Fedora 28, it even offers a traditional game console experience and user interface, despite the decidedly PC internals.

On the outside, the only thing that really gives away this particular Xbox’s new lease on life (when the purple LEDs are off, anyway) is the laser cut acrylic Steam logo on the top that serves as a grill for the internal CPU cooler. Ironically, [Pedro] did spray the Xbox white instead of just starting with a black one, but otherwise, there wasn’t much external modification necessary. Inside, of course, is a very different story.

It’s packing an AMD Ryzen 5 2400G processor with Radeon RX Vega 11GPU and 8GB of Corsair Vengeance LPX DDR4 3200MHz RAM. Power is provided by a Seasonic SS-300TFX 300W, and a Noctua NH-L9a-AM4 keeps the system cool. Even with all that gear in there, the thing is probably still quieter than the stock Xbox 360.

[Pedro] helpfully provides quite a few benchmarks for those wondering how this hacked-up Xbox fares against a more traditional gaming setup, though peak performance was obviously not the goal here. If you’ve got 45 minutes or so to spare, you should check out the video he’s put together after the break, which goes over the machine’s construction.

We’ve seen it done with the original Xbox, and now the Xbox 360. Who will be the first to send in their build that guts a current-generation Xbox and turns it into a PC for Internet fame?

[Thanks to Mike for the tip.]

Continue reading “This Xbox 360 Is Powered By Steam”

AI Finds More Space Chatter

Scientists don’t know exactly what fast radio bursts (FRBs) are. What they do know is that they come from a long way away. In fact, one that occurs regularly comes from a galaxy 3 billion light years away. They could form from neutron stars or they could be extraterrestrials phoning home. The other thing is — thanks to machine learning — we now know about a lot more of them. You can see a video from Berkeley, below. and find more technical information, raw data, and [Danielle Futselaar’s] killer project graphic seen above from at their site.

The first FRB came to the attention of [Duncan Lorimer] and [David Narkevic] in 2007 while sifting through data from 2001. These broadband bursts are hard to identify since they last a matter of milliseconds. Researchers at Berkeley trained software using previously known FRBs. They then gave the software 5 hours of recordings of activity from one part of the sky and found 72 previously unknown FRBs.

Continue reading “AI Finds More Space Chatter”

The DIN Rail And How It Got That Way

Unless you’ve spent some time in the industrial electrical field, you might be surprised at the degree of integration involved in the various control panels needed to run factories and the like. Look inside any cabinet almost anywhere in the world, and you’ll be greeted by rows of neat plastic terminal blocks, circuit breakers, signal conditioners, and all manner of computing hardware from programmable logic controllers right on to Raspberry Pis and Arduinos.

A well-crafted industrial control panel can truly be a thing of beauty. But behind all the electrical bits in the cabinet, underneath all the neatly routed and clearly labeled wires, there’s a humble strip of metal that stitches it all together: the DIN rail. How did it come to be, and why is it so ubiquitous?

Continue reading “The DIN Rail And How It Got That Way”