New Part Day: ATMegas With Programmable Logic

Since Microchip acquired Atmel, the fields of battle have fallen silent. The Crusaders have returned home, or have been driven into the sea. The great microcontroller holy war is over.

As with any acquisition, there is bound to be some crossover between two product lines. Both Atmel’s AVR platform and Microchip’s PICs have their adherents, and now we’re beginning to see some crossover in the weird and wonderful circuitry and design that goes into your favorite microcontroller, whatever that might be. The newest part from Microchip is an ATMega with a feature usually found in PICs. This is a Core Independent Peripheral. What is it? Well, it’s kinda like a CPLD stuck in a chip, and it’s going to be in the new Arduino board.

The ATMega4809 is the latest in a long line of ATMegas, and has the features you would usually expect as the latest 8-bit AVR. It runs at 20MHz, has 48 K of Flash, 6 K of SRAM, and comes in a 48-pin QFN and TQFP packages. So far, everything is what you would expect. What’s the new hotness? It’s a Core Independent Peripheral in the form of Configurable Custom Logic (CCL) that offloads simple tasks to hardware instead of mucking around in software.

So, what can you do with Configurable Custom Logic? There’s an application note for that. The CCL is effectively a look-up table with three inputs. These inputs can be connected to I/O pins, driven from the analog comparator, timer, UART, SPI bus, or driven from internal events. The look-up table can be configured as a three-input logic gate, and the output of the gate heads out to the rest of the microcontroller die. Basically, it’s a tiny bit of programmable glue logic. In the application note, Microchip provided an example of debouncing a switch using the CCL. It’s a simple enough example, and it’ll work, but there are a whole host of opportunities and possibilities here.

Additionally, the ATMega4809, “has been selected to be the on-board microcontroller of a next-generation Arduino board” according to the press release I received. We’re looking forward to that new hardware, and of course a few libraries that make use of this tiny bit of custom programmable logic.

Review: NEJE DK-8-KZ Laser Engraver

When I got my first 3D printer I was excited, but now that I’m contemplating adding a forth to my collection, I have to come to the terms with the fact that these machines have all the novelty of a screwdriver at this point. Which is fine; getting the cost down and availability up is the key to turning a niche piece of technology into a mainstream tool, and the more people with 3D printers at home or in their workshop the better, as far as I’m concerned. But still, there’s a certain thrill in exploring the cutting edge, and I’ve been looking for something new to get excited about as of late.

NEJE DK-8-KZ

Lasers seem like an interesting next step in my quest towards complete in-house fabrication capability, so I started researching cheap setups to get my feet wet. In the course of looking up diode-powered laser cutters, I came across the NEJE DK-8-KZ. At only 1W, there’s no question this device isn’t going to be cutting a whole lot. In fact, it’s specifically sold as an engraver. But given the fact that you can get one of these little guys for around $70 USD shipped, it’s hard to complain.

Now I wasn’t 100% sure what I would do with a laser engraver, but I thought it would be a good way to test the waters before putting serious money (and time) into something more powerful. Plus, if I’m being totally honest, I wanted to start on something on the lower end of the power spectrum because I’m terrified of blinding myself.

So what kind of laser do you get for $70? Let’s find out… Continue reading “Review: NEJE DK-8-KZ Laser Engraver”

Quantifying Latency In Cheap RC Transmitters

For those just starting out in the world of RC, a low cost transmitter like the Flysky FS-i6S can be very compelling. But is buying a cheap transmitter setting yourself up for failure down the line? The general feel in the RC community has been that cheaper transmitters have higher latency or “lag” on their inputs, which is precisely the kind of thing you want to avoid when flying along at 40+ MPH. As such, the general wisdom has been that your transmitter is one area where you don’t want to cheap out.

Wanting to put that theory to the test, [Marek Baczynski] set out to compare the response time between the Flysky FS-i6S and the more established Taranis X9D. In the video after the break, he uses his Saleae logic analyzer to time how long it takes movement on the transmitter sticks to get interpreted as servo commands at the receiver.

[Marek] connects the logic analyzer directly to the gimbals of both transmitters, allowing him to see user input before any processing is done by the electronics. It’s particularly interesting to see how the smooth analog curves of the gimbals are converted to a “staircase” digital output.

The final results of the latency test end up being fairly surprising. To put it simply: the cheaper Flysky radio not only more accurately interprets the user’s input, but does it considerably faster than the Taranis. [Marek] says he was so surprised by these results that he re-ran the test three times to verify.

But even taking into account the apparently higher fidelity of the cheap radio, he cautions you shouldn’t swap out your gear just yet. Higher end transmitters have a number of other features which make them worth hanging on to, even if the newer generation of radios is slightly faster. The real takeaway from this video is that if you’re just getting into the RC game, these cheaper transmitters aren’t necessarily the kiss of death the community makes them out to be.

Experiments like this and the recent detailed analysis of common hobby motors show just how seriously people take the world of RC. It’s unlikely this single experiment will quell the debate about “cheap” RC transmitters, but perhaps it’s a start.

Continue reading “Quantifying Latency In Cheap RC Transmitters”

Successful Experiments In Multicolor Circuit Boards

Printed circuit boards have never been cheaper or easier to make. We’re not that far removed from a time where, if you wanted a printed circuit board, your best and cheapest option would be to download some proprietary software from a board house, use their terrible tool, and send your board off to be manufactured. A few copies of a 5x5cm board would cost $200. Now, anyone can use free (as in beer, if not speech) software, whip up a board, and get a beautifully printed circuit board for five dollars. It has never been easier to make a printed circuit board, and with that comes a new medium of artistic expression. Now, we can make art on PCBs.

PCB as Art

For the last year or so, Hackaday has been doing a deep-dive into the state of artistic PCBs. By far our biggest triumph is the Tindie Blinky Badge, an artistic representation of a robot dog with blinking LED eyes. [Andrew Sowa] turned some idiot into PCB coinage, and that same idiot experimented with multicolor silkscreen at last year’s DEF CON.

Others have far surpassed anything we could ever come up with ourselves; [Trammel Hudson] created an amazing blinky board using the standard OSHPark colors, and [Blake Ramsdell] is crafting full panels of PCB art. The work of Boldport and [Saar Drimer] has been featured in Marie Claire. The world of art on printed circuit boards has never been more alive, there has never been more potential, and the artistic output of the community is, simply, amazing. We are witnessing the evolution of a new artistic medium.

Printed circuit boards are a limited medium. Unless you want to shell out big bucks for more colors of silkscreen, weird colors of soldermask, or even multiple colors of soldermask, you will be limited to the standard stackup found in every board house. One color, the fiberglass substrate, will be a pale yellow. The copper layer will be silver or gold, depending on the finish. The soldermask will be green, red, yellow, blue, black, white, and of course purple if you go through OSH Park. The silkscreen will be white (or black if you go with a white soldermask). What I’m getting at is that the palette of colors available for PCB art is limited… or at least it has been.

For a few months now, Hackaday has been experimenting with a new process for adding colors to printed circuit boards. This is a manufacturing process that translates well into mass production. This is a process that could, theoretically, add dozens of colors to any small PCB. It’s just an experiment right now, but we’re happy to report some limited success. It’s now easy — and cheap — to add small amounts of color to any printed circuit board.

Continue reading “Successful Experiments In Multicolor Circuit Boards”

These Small PCBs Are Made For Model Rocketry

Model rocketry hobbyists are familiar with the need to roll their own solutions when putting high-tech features into rockets, and a desire to include a microcontroller in a rocket while still keeping things flexible and modular is what led [concretedog] to design a system using 22 mm diameter stackable PCBs designed to easily fit inside rocket bodies. The system uses a couple of 2 mm threaded rods for robust mounting and provides an ATTiny85 microcontroller, power control, and an optional small prototyping area. Making self-contained modular sleds that fit easily into rocket bodies (or any tube with a roughly one-inch inner diameter) is much easier as a result.

The original goal was to ease the prototyping of microcontroller-driven functions like delayed ignition or altimeter triggers in small Estes rockets, but [concretedog] felt there were probably other uses for the boards as well and made the design files available on GitHub. (Thanks!)

We have seen stackable PCBs for rocketry before with the amazingly polished M3 Avionics project, but [concretedog]’s design is much more accessible to some hobbyist-level tinkering; especially since the ATTiny85 can be programmed using the Arduino IDE and the boards themselves are just an order from OSH Park away.

[via Dangerous Prototypes Blog]

 

You’ve Never Seen A Flipping Eyeball Like This One!

Inspired by some impressive work on textile flip-bit displays, and with creative steampunk outfits to create for Christmas, [Richard Sewell] had the idea for a flippable magnetic eye in the manner of a flip-dot display. These devices are bistable mechanical displays in which a magnet is suspended above a coil of wire, and “flipped” in orientation under the influence of a magnetic field from the coil.

In [Richard]’s case the eyeball was provided by a magnetic bead with a suitable paint job, and the coil was a hand-wound affair with some extremely neat lacing to keep it all in place. The coil requires about 200 mA to ensure the eye flips, and the job of driving it is performed by a Digispark ATTiny85 board with an LM293 dual H-bridge driver upon which the two bridges are wired in parallel. The whole is mounted in the centre of a charity shop brooch that has been heat-treated to give a suitable aesthetic.

You can see the eyeball in all its glory in the two videos below the break, and should you be curious you can also read our write-up of the original pieces from [Irene Posch] that inspired it.

Continue reading “You’ve Never Seen A Flipping Eyeball Like This One!”

Stretched PC Case Turned GPU Cryptominer

We don’t do financial planning here at Hackaday, so we won’t weigh in on the viability of making money mining cryptocurrency in such a volatile market. But we will say that if you’re going to build a machine to hammer away at generating Magical Internet Monies, you might as well make it cool. Even if you don’t turn a profit, at least you’ll have something interesting to look at while you weep over your electricity bill.

Sick of seeing the desktop machine he built a decade ago gathering dust, [plaggle24w5] decided to use it as the base for a cryptocurrency mining rig. Of course, none of the original internals would do him any good, but the case itself ended up being a useful base to expand on. With the addition of some 3D printed components, he stretched out the case and installed an array of video cards.

To start with, all the original plastic was ripped off, leaving just the bare steel case. He then jammed a second power supply into the original optical drive bays to provide the extra power those thirsty GPUs would soon be sucking down. He then designed some 3D printed arms which would push out the side panel of the case far enough that he could mount the video cards vertically alongside the case. Three case fans were then added to the bottom to blow air through the cards.

While [plaggle24w5] mentions this arrangement does work with the case standing up, there’s obviously not a lot of air getting to the fans on the bottom when they’re only an inch or so off the ground. Turning the case on its side, with the motherboard parallel to the floor, allows for much better airflow and results in a measurable dip in operating temperature. Just hope you never drop anything down onto the exposed motherboard…

Mining Bitcoin on desktop computers might be a distant memory, but the latest crop of cryptocurrencies are (for now) giving new players a chance to relive those heady early days.