Hands On With Python 3.7: What’s New In The Latest Release

Used for general purpose programming, data science, website backends, GUIs, and pretty much everything else; the first programming language for many, and claimed to be the fastest growing in the world, is of course Python. The newest version 3.7.0 has just recently been released.
Naturally any release of Python, no matter how small, undergoes meticulous planning and design before any development is started at all. In fact, you can read the PEP (Python Enhancement Proposal) for Python 3.7, which was created back in 2016.

What’s new in 3.7? Why should you upgrade? Is there anything new that’s actually useful? I’ll answer these questions for you by walking through some examples of the new features. Whilst there’s not much in this release that will make a difference to the Python beginner, there’s plenty of small changes for seasoned coders and a few headline features you’ll want to know about.

Continue reading “Hands On With Python 3.7: What’s New In The Latest Release”

Fail Of The Week: ESP Walkie, Not-So-Talkie

The ESP8266 has become such a staple of projects in our community since it burst onto the scene a few years ago. The combination of a super-fast processor and wireless networking all on the same chip and sold in retail quantities for relative pennies has been irresistible. So when [Petteri Aimonen] needed to make a wireless intercom system for cycling trips it seemed an obvious choice. Push its internal ADC to sample at a high enogh rate for audio, and stream the result over an ad-hoc wi-fi network.

The result was far from satisfactory, as while early results with a signal generator seemed good, in practice it was unusable. Significant amounts of noise were entering the pathway such that the resulting audio was unintelligible. It seems that running a wireless network causes abrupt and very short spikes of power supply current that play havoc with audio ADCs.

He’s submitted it to us as a Fail Of The Week and he’s right, it is a fail. But in a way that’s an unfair description, because we can see there is the germ of a seriously good idea in there. Perhaps with an external ADC, or maybe with some as-yet-to-be-determined filtering scheme, an ESP8266 walkie-talkie is one of those ideas that should be taken to its conclusion. We hope he perseveres.

The Return Of RadioShack?

We’ve been following the ups and downs of Radio Shack for a while now, and it looks like another chapter is about to be penned in the storied retailer’s biography – and not Chapter 11 bankruptcy this time.

According to the ARRL website and major media reports, up to 50 of the 147 US locations of HobbyTown, the brick-and-mortar retailer of RC and other hobby supplies, will soon host a “RadioShack Express” outlet. Each outlet will be up to 500 square feet of retail space devoted to electronic components that would be of use to HobbyTown’s core customer base, as well as other merchandise and services.

HobbyTown locations in Mooresville, North Carolina, and Ontario, Ohio, will be among the first stores to get the RadioShack Express treatment. Current employees of the franchisees will staff the store-within-a-store, which will be stocked with RadioShack merchandise purchased by the store. Stores with Express outlets will have special RadioShack branding inside and out to attract customers. There’s talk of the deal being extended chain-wide if the pilot program goes well.

Back from the Ashes?

This is obviously great news for the beleaguered electronics retailer that was once a neighborhood fixture. True, its parts selection was often less than complete, more so in recent years than in the chain’s heyday in the mid-1970s and early 1980s. And it’s true that prices were often astronomical compared to buying online. But on a Sunday afternoon, The Shack was a lifesaver for that last minute part needed to finish a project, and the premium was well worth the convenience. Watching the decline of the chain and seeing stores disappear one by one was a slow, sad process, so that makes this seems like an unqualified positive development.

But is it? On the face of it, there’s a lot of synergy between the HobbyTown offerings and what could be stocked in a RadioShack Express. I’ve never actually visited a HobbyTown myself — I plan to fix that now that I know I’ve got an outlet nearby, even if it doesn’t appear to be on the list of 50 early Express locations — so I can only go by what I see listed online for merchandise. But a store that sells every conceivable part for RC cars and planes, drones, model rockets, and STEM-related toys and kits seems a likely place to find customers for RadioShack’s offerings.

It won’t be clear until someone sees one of these Express kiosks first hand and reports back, but it seems like we might see something like the old “cabinet o’ components” that was found in the back of the most recent incarnation of RadioShack retail stores, along with a few shelves full of things like solder, wire, and tools. There may also be some items in the Arduino-Pi space, which would be really exciting, although that might run afoul of existing HobbyTown offerings. Still, one-stop shopping of everything from servos to MOSFETs would be a huge win for electronics hobbyists.

Not the Cell Phones Again!

But there may be cause for concern. Reports are that RadioShack Express locations will also offer services such as cell phone repairs. Dipping a toe into the cell phone market seemed to be the beginning of the end for RadioShack the first time through, and by the time it was clear to everyone that the chain was on death’s door, it was hard to go into a RadioShack store without being bombarded by cell phone sales pitches. To be brutally frank, I don’t take the early inclusion of cell phone repairs as an encouraging sign of the long-term viability of the RadioShack Express concept. Do we really need another place that fixes cell phones? The areas that HobbyTown stores tend to locate are rife with places that fix phones already, so I just don’t see the point. And it just smacks of the bad old days of RadioShack.

Still, I’m cautiously optimistic that this is a positive development for RadioShack, and I think it’s a win for electronics hobbyists overall. I’ll be keeping my eye on my local HobbyTown for the return of that iconic RadioShack logo, and looking forward to the day that I can pay a buck for a resistor again. Until then, if any readers happen to be near one of the combined locations when they open next week, we’d love a boots-on-the-ground report. Post your observations in the comments below, and pix or it didn’t happen.

[via r/amateurradio]

IHC Badge: It’s Not (Quite) A Nokia

Electronic conference badges are an integral part of our culture, and have featured many times here. The norm for a badge is an exquisitely designed printed circuit board with some kind of microcontroller circuit on it, often a display, and some LEDs.

This is not enough though for [Mastro Gippo], for he has given us an interesting alternative, the shell of a Nokia 3310 mobile phone fitted with a new motherboard holding an ESP32 module, and of course that classic display. It is to be the badge for IHC Camp, which initialism if you hadn’t guessed stands for Italian Hacker Camp, and which will run from the 2nd to the 5th of August 2018 in Padova, Italy. It’s worth reminding readers, at the time of writing IHC tickets are still available, so get ’em while they’re hot!

The board itself is a beautiful piece of work, and aside from the Nokia’s keyboard and display it holds the ESP module and an STM32F103 microcontroller that handles all the peripherals. There is no microphone, after all this is a badge rather than a phone, but there is space for a LoRa module. He’s done another fascinating post about the PCB design, including the on-board wireless antenna.

We have seen a lot about badges from the #BadgeLife scene surrounding the USA’s DEFCON courtesy of our colleague [Brian Benchoff], so it is particularly interesting to see badges from the opposite side of the Atlantic. This is an artform whose journey still has a way to go, and we’ll be along for the ride!

DIY Tiny Dyno

The geared DC motor has become the bread-and-butter of the modern-day beginner project. Unfortunately, with the advent of vast online catalogs peddling a wide assortment of these mechanical marvels, validating the claim that one DC motor will outperform the others is a challenge.

Such is the dilemma that our own [Gerrit Coetzee] faced as he set out to buy these geared motors in bulk. In his initial teardown, he quickly compares the change in design, from the original which possess the two-part clutch that extends on overloading, to the clones with the feature disabled altogether.

He then goes on to research methods of measuring the motor’s output where he discovers the Prony Brake which leads to the Rope Brake Dynamometer. This is where things get interesting and [Gerrit Coetzee] goes on to hack his own version of the machine. The idea is to have a rope wound to the wheel that is powered by the motor. With one end of the cord attached to a spring scale and the other end to a suspended weight, the motor speed affects the force on the spring scale. This change in force measured by the scale can be used to calculate the power output by the motor.

[Gerrit Coetzee] goes on to replace the weight with springs and the scale with an electronic load cell while using a stepper motor to stretch the cord thereby adding the requisite tension to the string. We thought this was a very elegant solution where the entire experiment could be controlled electronically.

This is a work in progress through the writeup is an excellent example of how to tailor a traditional experiment to the modern times. We have seen similar investigations for larger salvaged motors and dynamometers with lots of sensors.

Hackaday Links Column Banner

Hackaday Links: July 22, 2018

KiCad Version 5 has been released! Footprints are going to be installed locally, and the Github plugin for library management is no longer the default. You now have the ability to import Eagle projects directly, Eeschema has a better configuration dialog, better wire dragging, and Pcbnew now has complex pad shapes. The changelog also says they’ve gone from pronouncing it as ‘Kai-CAD’ to ‘Qai-CAD’.

Kids can’t use computers because of those darn smartphones. Finally, the world is ending not because of Millennials, but because of whatever generation we’re calling 12-year-olds. (I’m partial to Generation Next, but that’s only because my mind is polluted with Pepsi commercials from the mid-90s.)

Need a NAS? The Helios4 is built around the Marvell Armada 388 SoC and has four SATA ports, making it a great way to connect a bunch of hard drives to a network. This is the second run from the team behind the Helios, and now they’re looking to take it into production.

A while ago, [Dan Macnish] built Draw This, a camera that takes an image, sends it through artificial intelligence, and outputs a cartoon on a receipt printer. It’s a camera that prints pictures of cartoons. Of course, some people would want to play with this tech without having to build a camera from scratch, so [Eric Lu] built Cartoonify, a web-based service that turns pictures into cartoons.

Grafitti is fun to spell and fun to do, and for all the proto-Banskys out there, it’s all about stencils. [Jeremy Cook] did a quick experiment with a 3D-printed spray paint stencil. It works surprisingly well, and this is due to leveraging the bridging capability of his printer. He’s putting supports for loose parts of the stencil above where they would normally be. The test sprays came out great, and this is a viable technique if you’re looking for a high-quality spray paint stencil relatively easily.

HOPE XII: Chelsea Manning

Saturday’s talk schedule at the HOPE conference was centered around one thing: the on-stage interview with Chelsea Manning. Not only was a two-hour session blocked out (almost every other talk has been one hour) but all three stages were reserved with live telecast between the three rooms.

I was lucky enough to get a seat very close to the stage in the main hall. The room was packed front to back. Even the standing room — mapped out on the carpet in tape and closely policed by conference “fire marshals” — was packed with people standing shoulder to shoulder. The audience was alive with energy, and I think everyone lucky enough to be here today shares my feeling that moments like these tie our community together and help us all focus on what is important in life, as individuals and as a society.

Chelsea was very recently released from prison. So recently, that the last time this conference was held back in 2016, she and her close circle of friends were under the impression that she was very far from the end of her sentence. One such friend, Yan Zhu, joined Chelsea on stage in a comfortable armchair-setting to guide the interview.

Chelsea Manning was sentenced to serve 35 years in Leavenworth maximum-security prison, having been convicted in 2013 of violating the Espionage Act. This talk (and the article I’m writing now) was not about the events leading up to that conviction, but rather about Chelsea’s life since being released, with a bit of background on the experience of being incarcerated. Her early release came as the result of a commutation of sentence by President Barack Obama that returned her freedom just over one year ago.

Continue reading “HOPE XII: Chelsea Manning”