Author Archives: pappp

Standardizing next-generation narrow precision data formats for AI

Source: Hacker News

Article note: Interesting. I love how after decades of "Doubles required for srs bsns" (even though it's rarely the case that doubles will save you if your operation stack-up breaks on singles) we're getting all these ultra-low-precision formats for approximate bullshitting. Curious that everything except E5M2 has no defined infinities. I think it does cover pretty much all the sane uses of bits in the narrow sizes.
Comments
Posted in News | Leave a comment

Apple Pencil joins the iPad confusion zone

Source: The Verge - All Posts

Article note: I've used a bunch of student's iPads with styluses, and they are broadly the least-shitty stylus experience I've ever had, but ... The Gen1 pencils are ALWAYS missing their cap and/or have connector issues, because that was a terrible design. The double tap to swap tools feature is both necessary for it to not be frustrating to edit things, and annoyingly inconsistent. I can't imagine the experience being half as good without pressure sensitivity or wirelessly charging when docked. The Gen2 pencil is the _only_ one that doesn't have some kind of bewildering design failure to it.
A picture of four iPads and three Apple Pencils — the second-generation one is attached to one, while the other two sit next to iPads.
Three Pencils were given to the iPads. | Image: Apple

A third, cheaper Apple Pencil now sits in Apple’s lineup of styluses, giving iPad owners more choice than ever. And yet, that choice is fraught with compromises and caveats. There’s still not one Apple Pencil to rule them all, and that’s a problem for shoppers.

Let’s run down what was announced today. The new Apple Pencil is $79, can be magnetically attached to the side of your iPad, and no longer needs to be plugged directly into the iPad’s charging port for power, like the 2015 original. On the newest Pro models, it also supports the hover feature that shows where your Pencil is before you actually touch the screen. These are all good things!

But Apple made some strange omissions, too. Pressure sensitivity, a headlining feature of both...

Continue reading…

Posted in News | Leave a comment

A Staggeringly Clever Input Conditioning Circuit

Input conditioning is one of those things that snares novice designers, causes late-process changes that overrun expectations on cost and board area, and traditionally isn’t terribly well taught to EE/CPE students.

It’s on my mind because next week is the point in the semester where I drag UK’s current crop of EE/CPE sophomores through a lab exercise I designed about 5 years ago to drive home gate delays, static hazards, switch bounce, etc.

While I was thinking about it, an upperclassman who regularly digs up neat stuff sent me the cleverest input conditioning circuit I’ve ever encountered.

The circuit comes from the late, great Don Lancaster of TV Typewriter fame, who in addition to his published designs, wrote and self-published a number of instructional/reference books. He had a well-deserved reputation for clever, cheap, robust circuit designs, and this particular trick is the highest wizardry.

Here’s the whole circuit diagram from the text:

The design comes from his CMOS Cookbook (PDF, link to his own hosted copy of the 2nd ED), on p.317 amid a discussion of Flip-Flops and Clocks. It is presented as “An Alternate-Action Push Button” which is entirely correct but really undersells how clever it is, and has apparently been in there since the 1st edition in 1977.

Here’s a link to it pre-built in the CircuitJS simulator so you can manipulate it and see it work. I had to play with it for a few minutes before I really understood the genius.

The fundamental trick is that it’s a master-slave Flip-Flop where the capacitor is the master storage element, and the pair of feedback-coupled inverters is the slave. The cap tanks the next state based on the output of the first inverter when the switch is open, and induces it on the inverters on switch close. This means, in addition to latching/toggling, it de-bounces, because the capacitor sets the time constant for hysteresis. It conditions, because the load sees the output of the second inverter. No race conditions or potential oscillations, because the cap can’t charge/discharge while the switch is held. No charge is moving inside the mechanism at steady state, so it’s not leaking power. It’s brilliant.

It is only suitable for relatively slow human-scale edges, so probably not a good method for encoders or the like. You can manipulate the time constant for the de-bounce by changing the value of the capacitor, but only down to a few 10s of nF (depending on what kind of inverter you use) before it gets marginal because it doesn’t have the charge to reliably throw the input of the first inverter.

Not only is it ridiculously cheap and simple as presented, which I think intends a 4067 or 74HC04, you can built it out of anything. Any inverting CMOS gate will work. Any inverting TTL gate will work. Ridiculous old RTL or DTL inverters work. A pair of N-Channel FETs (another CircuitJS link, has an extra transistor on the output for integrity reasons) with pullups to build your own cruddy NMOS inverters works. As would P-channels with pull-downs, or BJTs with resistors for constructed RTL (though doing it that way is leaky), or various other assemblages of tiny mass produced minimum cost components to make it even more minimal (though maybe not cheaper in a modern context).

I appreciate a clever domain-crossing design, and this is the highest form.

Posted in DIY, Electronics, General | Leave a comment

OpenWrt 23.05

Source: Hacker News

Article note: Such a good project. That weird schism era seems to have settled out fine and they've been making regular high-quality releases.
Comments
Posted in News | Leave a comment

Tiny Linux on a No-MMU RISC-V Microcontroller

Source: Hack a Day

Article note: I went to find documentation about the current state of nommu Linux systems the other day and things are _rough_ documentation-wise and mostly alarmingly out of date. This (and its sister article) actually strings together all the details in a comprehensible way, which is super nice.

In the vast majority of cases, running a Linux-based operating system involves a pretty powerful processor with a lot of memory on hand, and perhaps most importantly, a memory management unit, or MMU. This is a piece of hardware which manages virtual memory, seamlessly giving each process its own memory sandbox in which it shouldn’t be able to rain on its neighbours’ parade. If there’s no MMU all is not lost though, and [Uros Popovic] gives us a complete guide to building the MMU-less μClinux on a RISC-V microcontroller.

The result is something of a Linux-from-scratch for this platform and kernel flavour, but it’s so much more than that aside from its step-by-step explanation. It’s probable that most of us have heard something of μClinux but have little direct knowledge of it, and he leads us through its workings as well as its limitations. As examples, standard ELF binaries aren’t suitable for these systems, and programmers need to use memory-safe techniques.

Whether or not any of you will run with this guide and build a tiny MMU-less Linux system, anything which expands our knowledge on the subject has to be a good thing. it’s not the first time we’ve seen a RISC-V microcontroller turned to this task, with a nifty trick to get round the limitations of a particular architecture.

Posted in News | Leave a comment

Coordinated Disclosure: 1-Click RCE on Gnome (CVE-2023-43641)

Source: Hacker News

Article note: Automated background metadata scanning is a huge source of vulnerabilities in general. It's parsers. Hand-coded in C. That the caller probably didn't look at, because it's in some library from the dark ages. For old poorly structured formats. Running unattended in system processes.
Comments
Posted in News | Leave a comment

I had nothing to do with this but I’m super excited. There has been a long-standing bug in the CPU emulation in Basilisk II (a 68K Macintosh emulator) that could be reliably triggered when *inhales* Bruno the shark killed you … Continue reading

Posted on by pappp | Leave a comment

Judge throws out $32.5M Sonos win against Google

Source: The Verge - All Posts

Article note: I don't usually root for megacorps, but Sonos was trying to pull some bullshit here with a weak submarine patent, and it's good they got smacked down. I always enjoy Alsup's rulings on this kind of thing, he seems to be one of the few high profile judges who has a solid understanding of tech.
Comments
Posted in News | Leave a comment

Another game controller maker is embracing drift-resistant Hall effect joysticks

Source: The Verge - All Posts

Article note: This is one of those staggeringly obvious changes to a basic component that is taking a surprisingly long time to really assert. Hall effect sensors are all over the place in consumer electronics, and hall rotation sensors in particular have kind of eaten the motor feedback market, they're dirt cheap because they're small and simple and made in huge volume, they're easier to interface... and almost everyone is still using resistive joysticks that wear and die.
Black and white controllers standing back to back with rainbow colors surrounding them.
The T4 Cyclone comes in white and the T4 Cyclone Pro in black. | Image: GameSir

GameSir is the latest company to launch wireless controllers featuring magnetic, stick-drift-resistant “Hall effect” joysticks: the new T4 Cyclone and Cyclone Pro gamepads. Currently, standard controllers from companies like Nintendo, Sony, and Microsoft still incorporate potentiometer joysticks that are prone to annoying stick drift over time as they wear down. Third-party accessory makers have started a trend to include Hall effect technology in their controllers, hoping to offer better longevity.

The first of the T4 Cyclone pair has a Nintendo-style face button layout, where the A button is to the east of the cluster. The Cyclone’s joysticks aren’t the only part of it that includes Hall effect tech — GameSir is also using it in the...

Continue reading…

Posted in News | Leave a comment

Bambu Lab X1E

Source: Hacker News

Article note: Man, as much as there are concerning things about Bambu as a company, they are making generations of impressive products that both advance the state of the 3d printer market and directly address criticisms of their previous offerings.
Comments
Posted in News | Leave a comment