New Part Day: Sonoff USB Smart Adaptor Taps A New WiFi Chip

For decades, we dreamt of a future where all of our electronics used a standardized power connector. Most of us probably didn’t expect that USB would ultimately fill that role, but we’ll take what we can get if it means a future without getting a new wall wart for every piece of tech we buy. From soldering irons to laptops, the number of things you can power with a lowly USB cable these days is pretty incredible.

Which makes it all the more surprising it took so long for somebody to come up with a way to toggle USB devices off and on over the network. The Sonoff “USB Smart Adaptor”, which the company says will start shipping before the end of the year, is the logical evolution of their exceptionally popular mains voltage smart switches. The Smart Adapter is designed to go between the device and its existing power supply, allowing the user to drag any USB powered device kicking and screaming into their existing smart home setup. All for the princely sum of $6.50 USD.

In the video after the break, Sonoff gives a few potential uses of the Smart Adapter: from controlling a string of LEDs to limiting how long a smartphone is allowed to charge for. But really, there’s a nearly limitless number of devices which could be easily and cheaply integrated into your home automation routines thanks to this gadget.

On the other end of the spectrum, those who are looking to keep a tighter control on the ears and eyes that are active in their home could use the Smart Adapter to make sure their Google and Amazon listening devices assistants are only powered up during certain hours of the day.

Unfortunately, there’s a catch. Sonoff smart switches are best known, at least among the type of folks who read Hackaday, for the fact that they’re based on the eminently hackable ESP8266 microcontroller. Given the size of this product and its intended use, it would seem logical enough to assume this device also utilizes the insanely popular chip. But according to a Sonoff representative, the USB Smart Adapter won’t be using an ESP at all; leaving its hackability an open question until people can actually get their hands on them and start poking around.

Continue reading “New Part Day: Sonoff USB Smart Adaptor Taps A New WiFi Chip”

Hackaday Links Column Banner

Hackaday Links: November 24, 2019

It barely seems like it, but it’s been a week since the 2019 Hackaday Superconference wrapped up in sunny Pasadena. It was an amazing weekend, filled with fun, food, camaraderie, and hacks galore. For all who were there, it’ll likely take quite some time before spinning down to Earth again from the post-con high. For those who couldn’t make it, or for those who did but couldn’t squeeze in time for all those talks with everything else going on, luckily we’ve got a ton of content for you to review. Start on the Hackaday YouTube channel, where we’ve got videos already posted from most of the main stage talks. Can’t-miss talks include Chris Gammell’s RF deep-dive, Kelly Heaton’s natural electronic art, and Mohit Bhoite’s circuit sculpture overview. You’ll also want to watch The State of the Hackaday address by Editor-in-Chief Mike Szczys. More talks will be added as they’re edited, so watch that space for developments.

One of the talks we missed – and video of which appears not to be posted yet – was Adam Zeloof’s talk on thermodynamic design for your circuits. While we wait for that, here’s an interesting part that might prove useful for your next high-power design. It’s a Thermal Jumper Chip, which is essentially a ceramic SMD component that can conduct heat but not electricity. It’s intended to be used where a TO-220 case needs to be electrically isolated but thermally connected to a heatsink. Manufacturer TT Electronics has a whole line of the chips in various sizes and specs, plus a lot of other cool components like percussive igniters.

We got an interesting tip this week about a new development in the world of 3D-printing. A group from Harvard demonstrated a multinozzle extruder that can print multimaterial objects in a single pass. The work is written up in a Nature article entitled “Voxelated soft matter via multimaterial multinozzle 3D printing”, which is unfortunately paywalled, but the abstract and supplementary videos are really interesting. This appears not to be a standard hot plastic extrusion process; rather, the extruder uses elastomeric inks that cure after they’re extruded. They manage some clever tricks, including a millipede-like, vacuum-powered soft robot extruded in one pass from both soft and rigid silicone elastomers. It’s genuinely interesting stuff, and watching the multimaterial extruder head switch materials at up to 50 times per second is mesmerizing.

People really seemed to get worked up over the transit of Mercury across the face of the Sun last week, and for good reason – astronomical alignments such as these which can be seen from Earth are rare indeed, and worth taking time to see. Not everyone was in the right place at the right time with the right gear to view the transit directly, though, which is why we were glad that Justin over at The Thought Emporium did a video on leveraging online assets for space-based observations. We’ve featured a ton of hacks using SDRs and the like to intercept data from weather satellites, and while those hacks are fun and you should totally try them, Justin points out that most of these streams are readily available for free over the Internet. Clouds, lightning, forest fires and Earth changes, and yes, even the state of the Sun can all be monitored from the web.

Speaking of changes, do you know what has changed in Unix over the last 50 years? For that matter, did you know that Unix turned 50 recently? Sean Haas did after reading this article in Advent of Computing, which he shared on the tipline. The article compares a modern Debian distro to documentation from 1971 that pre-dates Unix version 1; we assume the “Dennis_v1” folder in the doc’s URL refers to none other than Dennis Ritchie himself. It turns out that Unix is remarkably well-conserved over 50 years, at least in the userspace. File system navigation and shell commands are much the same, while programming was much different. C didn’t yet exist – Dennis was busy – but there were assemblers and linkers, plus a FORTRAN compiler and an interpreter for BASIC. It’s comforting to know that if you drop into a wormhole and end up sitting in front of a PDP-11 with Three Dog Night singing “Joy to the World” on the radio in the background, you’ll at least be able to look like you belong there.

And finally, it’s nearly Sparklecon time again. Sparklecon VII will be held on January 25 and 26, 2020, at the 23b Shop hackspace in Fullerton, California. We’ve covered previous Sparkelcons and we’ve even sponsored the meetup in the past, and it looks like a blast. The organizers have put out a Call for Proposals for talks and workshops, so if you’re in the mood for some mischief, get your application going. And be quick about it – the CFP closes on December 8.

New Part Day: A 64-Bit RISC-V CPU In Raspberry Pi Hat Form

Over the last few years the open-source RISC-V microprocessor has moved from existing only on FPGAs into real silicon, and right now you can buy a RISC-V microcontroller with all the bells and whistles you would ever want. There’s an interesting chip from China called the Sipeed M1 that features a dual-core RISC-V core running at 600MHz, a bunch of I/Os, and because it’s 2019, a neural network processor. We’ve seen this chip before, but now Seeed Studios is selling it as a Raspberry Pi Hat. Is it an add-on board for a Pi, or is it its own standalone thing? Who knows.

The Grove AI Hat for Edge Computing, as this board is called, is built around the Sipeed MAix M1 AI Module with a Kendryte K210 processor. This is a dual-core 64-bit RISC-V chip and it is obviously the star of the show here. In addition to this chip you’ve also got a few Grove headers for digital I/O, I2C, PWM, and a UART. There’s a a USB Type C for power (finally we’re getting away from USB micro power plugs), and of course a 40-pin Raspberry Pi-style header.

This board is essentially a breakout board for the Sipeed M1 chip, which is one of the most interesting new microcontrollers we’ve seen since it launched late last year. There’s a lot of power here, and already people are emulating the Nintendo Entertainment System on this chip with great success. The problem with this chip is that apart from making your own breakout board, there aren’t many options to get it up and running quickly. This is the solution to that; at the very least it’s a Sipeed chip on a board with a power supply, and it’s also a co-processor that can be accessed with Linux and a Raspberry Pi.

New Part Day: Espressif Announces ESP32-S2 With USB

Espressif, the company behind the extremely popular ESP8266 and ESP32 microcontrollers has just announced their latest chip. It’s the ESP32-S2. It’s a powerful WiFi-enabled microcontroller, and this one has support for USB OTG.

Compared to the ESP32 we know and love, there are a few differences. The ESP32-S2 uses a single core Xtensa LX7 core running at up to 240 MHz, where the current ESP32 uses either a single or dual core LX6. The differences between these cores is hidden away in marketing speak and press releases, but it appears the LX7 core is capable of many more floating point operations per cycle: apparently 2 FLOPS / cycle for the LX6, but 64 FLOPS / cycle for the LX7. This is fantastic for DSP and other computationally heavy applications. Other features on the chip include 320 kB SRAM, 128 kB ROM, and 16 kB of RTC memory.

Connectivity for the ESP32-S2 is plain WiFi; Bluetooth is not supported. I/O includes 42 GPIOs, 14 capacitive touch sensing IOs, the regular SPI, I2C, I2S, UART, and PWM compliment, support for parallel LCDs, a camera interface, and interestingly full-speed USB OTG support. Yes, the ESP32-S2 is getting USB, let us all rejoice.

Other features include an automatic power-down of the RF circuitry when it isn’t needed, support for RSA and AES256, and plenty of support for additional Flash and SRAMs should you need more memory. The packaging is a 7 mm x 7 mm QFN, so get out the microscope, enhance your calm, and bust out the flux for this one. Engineering samples will be available in June, and if Espressif’s past performance in supplying chips to the community holds true, we should see some projects using this chip by September or thereabouts.

(Banner image is of a plain-old ESP32, because we don’t have any of the new ones yet, naturally.)

Google Launches AI Platform That Looks Remarkably Like A Raspberry Pi

Google has promised us new hardware products for machine learning at the edge, and now it’s finally out. The thing you’re going to take away from this is that Google built a Raspberry Pi with machine learning. This is Google’s Coral, with an Edge TPU platform, a custom-made ASIC that is designed to run machine learning algorithms ‘at the edge’. Here is the link to the board that looks like a Raspberry Pi.

This new hardware was launched ahead of the TensorFlow Dev Summit, revolving around machine learning and ‘AI’ in embedded applications, specifically power- and computationally-limited environments. This is ‘the edge’ in marketing speak, and already we’ve seen a few products designed from the ground up to run ML algorithms and inference in embedded applications. There are RISC-V microcontrollers with machine learning accelerators available now, and Nvidia has been working on this for years. Now Google is throwing their hat into the ring with a custom-designed ASIC that accelerates TensorFlow. It just so happens that the board looks like a Raspberry Pi.

Continue reading “Google Launches AI Platform That Looks Remarkably Like A Raspberry Pi”

New Part Day : A Sensor Chip For 3D Color X-Ray Imaging

We all know CERN as that cool place where physicists play with massive, superconducting rings to smash atoms and subatomic particles to uncover secrets of matter in the Universe. To achieve this aim, they need to do a ton of research in other areas, such as development of special particle detectors.

While such developments are essential to the core research needs of the Centre, they also lead to spinoff applications for the benefit of society at large. One such outcome has been the Medipix Collaborations – a family of read-out chips for particle imaging and detection that can count single photons, allowing X-rays and gamma rays to be converted to electrical signals. It may not be possible for us hackers to get our hands on these esoteric sensors, but these devices are pretty interesting and deserve a closer look. Medipix sensors work like a camera, detecting and counting each individual particle hitting the pixels when its electronic shutter is open. This enables high-resolution, high-contrast, noise hit free images – making it unique for imaging applications.

Some months back, CERN announced the first 3D color X-ray of a human made possible using the Medipix devices. The result is a high-resolution, 3D, color image of not just living structures like bones, muscular tissues and vessels, but metal objects too like the wrist watch, seen in the accompanying photograph. The Medipix sensors have been in development since the 1990’s and are presently in their 4th “generation”. Each chip consists of a top semiconducting sensor array, made from gallium arsenide or cadmium telluride. The charge collected by each pixel is transported to the CMOS ASIC electronics via “bump bonds”. The integration is vertical, with each sensing pixel connected via the bump bond to an analog section followed by a digital processing layer. Earlier versions were limited, by technology, in their tiling ability for creating larger matrices of multiple sensors. They could be abutted on three sides only, with the fourth being used for on-chip peripheral logic and wire-bond pads that permit electronic read-out. The latest Medipix4 Collaboration, still under some development, eliminates this short coming. Through-silicon-via (TSV) technology provides the possibility of reading the chips through copper-filled holes that bring the signals from the front side of the chip to its rear. All communication with the pixel matrix flows through the rear of the chip – the peripheral logic and control elements are integrated inside the pixel matrix.

The Analog front end consists of a pre-amplifier followed by a window discriminator which has upper and lower threshold levels. The discriminator has four bits for threshold adjustment as well as polarity sensing. This allows the capture window to be precisely set. The rest of the digital electronics – multiplexers, shift registers, shutter and logic control – helps extract the data.

Further development of the Medipix (Tech Brief, PDF) devices led to a separate version called Timepix (Tech Brief, PDF). These new devices, besides being able to count photons, are capable of two additional modes. The first mode records “Time-Over-Threshold”, providing rough analog information about the energy of the photon. It does this by counting clock pulses for the duration when the signal stays above the discrimination levels. The other mode, “Time of Arrival”, measures arrival time of the first particle to impinge on the pixel. The counters record time between a trigger and detection of radiation quanta with energy above the discrimination level, allowing time-of-flight applications in imaging.

Besides medical imaging, the devices have applications in space, material analysis, education and of course, high energy physics. Hopefully, in a few years, hackers will lay their hands on these interesting devices and we can get to know them better. At the moment, the Medipix website has some more details and data sheets if you would like to dig deeper. For an overview on the development of such single photon detectors, check out this presentation from CERN – “Single X-Ray Photon Counting Systems: Existing Systems, Systems Under Development And Future Trends” (PDF).

New Part Day: Small, Cheap, And Good LIDAR Modules

Fully autonomous cars might never pan out, but in the meantime we’re getting some really cool hardware designed for robotic taxicab prototypes. This is the Livox Mid-40 Lidar, a LIDAR module you can put on your car or drone. The best part? It only costs $600 USD.

The Livox Mid-40 and Mid-100 are two modules released by Livox, and the specs are impressive: the Mid-40 is able to scan 100,000 points per second at a detection range of 90 m with objects of 10% reflectivity. The Mid-40 sensor weighs 710 grams and comes in a package that is only 88 mm x 69 mm x 76 mm. The Mid-100 is basically the guts of three Mid-40 sensors stuffed into a larger enclosure, capable of 300,000 points per second, with a FOV of 98.4° by 38.4°.

The use case for these sensors is autonomous cars, (large) drones, search and rescue, and high-precision mapping. These units are a bit too large for a skateboard-sized DIY Robot Car, but a single Livox Mid-40 sensor, pointed downward on a reasonably sized drone could perform aerial mapping

There is one downside to the Livox Mid sensors — while you can buy them direct from the DJI web site, they’re not in production. These sensors are only, ‘Mass-Production ready’. This might be just Livox testing the market before ramping up production, a thinly-veiled press release, or something else entirely. That said, you can now buy a relatively cheap LIDAR module that’s actually really good.