A Better Spice

The daddy of all circuit analysis software is SPICE, which has its origins in research performed at the University of California, Berkeley, in the early 1970s. If you’re old enough to have run SPICE on a minicomputer terminal you’ll probably know its text-file-based interface and those ASCII graphs it used to make, but for most engineers in the 2020s it comes as the engine behind a much nicer GUI. There are plenty of SPICE derivatives and SPICE-like or compatible packages out there in this style, and a new one to us is BetterSpice, from [Arwidcool]. It’s an AGPL 3,0 licensed circuit simulator in Rust, that comes either as an in-browser tool or as standalone software.

Starting it up you can drop straight into a tutorial which takes you through the basics of creating a circuit, placing passives, changing values, and inserting probes. It’s got the ‘scope interface you’d expect, and you can tweak parameters on the fly while your circuit is running. The learning curve isn’t steep at all, and we had a simple circuit up and running in no time during our quick run-through.  If you’re curious, everything can be found in a GitHub repository.

Meanwhile, the circuit simulator we’ve probably seen most of here over the years is LTspice.

Meshtastic Pager Rebuild Gets Phone Pairing, Product Launch

A while back we featured a project that converted a Motorola T900 pager into an ESP32 Meshtastic node, and it’s since turned into a product for people who miss their beepers — the EST900. Far beyond cramming a module into a case, creator [Ed Zarick] has designed a replacement PCB that will pair with your phone and accept arbitrary daughter boards.

His new mainboard still has an ESP32 as its heart, and makes use of its existing LCD and keyboard. This thing is so stock it even runs on a AA-lookalike 3.7 V lithium battery in the original compartment. It can connect to a nearby Android phone via Bluetooth for text messaging, or act as a Meshtastic device to reach out over the mesh. If that’s not enough messaging, he’s got his own pager-to-pager messaging he calls ESTNet that goes over WiFi. There’s also weather, calendars, and of course the ubiquitous game of snake.

There’s even room in the case — and pads on the EST900 boards — to create add-on daughter boards if you want to try and add more connectivity or other unique functions, limited only by the available space, power budget, and your imagination. With the right sensors, you could perhaps turn this pager into a teeny tiny tricorder. Since he’s opening up the firmware, the community can build on this project as they like. A fully-populated PCB will set you back 99 USD, or [Ed] will put a pager together for you for 229 greenbacks.

[Ed Zarick] was already no stranger to Hackaday before we covered his worth with the T900. He’s previously put together everything from robot replicas to his hacked out Jeep Wrangler and a chonky dual-console laptop.

Optimizing An EPaper-based Device’s Software

In his quest to make an efficient, 30 FPS-capable ePaper handheld console, [Bo Made It] found that although power usage dropped after having replaced a power-hungry backlit TFT screen with an ePaper screen, this still left a lot of room for power optimization.

The core of this handheld console is an ESP32-S3 based Waveshare ePaper board that comes with an ES8311 audio chip, a microphone and even an onboard temperature sensor in addition to the ESP32-S3. Of these even just the audio chip during idle consumed a lot of power, some of which was due to the (unused) microphone input and headphone amplifier being turned on.

As can be expected, after these early easy gains things got somewhat harder. Both cores of the MCU had to be considered when changing the core clock, also when it came to idling. While changing the amount of data being pushed to the screen this also uncovered a bug in the greyscale algorithm, as it relied on the default transfer speed for its timing. With all of that addressed, the most impressive change is probably in the idle power usage, which dropped from 72 mA to a mere 2.2 mA.

We previously covered [Bo]’s quest into figuring out how long an ePaper display will last when running it at 30 FPS. Fortunately no real degradation was found so far, which makes us cautiously optimistic that ePaper displays could be a pretty solid option for low-power devices like this when even an OLED screen is pushing idle usage.

Continue reading “Optimizing An EPaper-based Device’s Software” →

Hackaday Podcast Episode 397: Polymaths, Packets, And Pocketwatches

It’s a chilly December night on the rainy edge of Western Europe, as Elliot is joined by Jenny List for a look at the week in Hackaday. We consider the final demise of the floppy disk in US air traffic control, and in the mailbag, among others, we had [Torin] write in about EPROM programmers. Anyone have any good DIY solutions?

Too many wires! Elliot’s DIY EPROM programmer.

In hacks, we’re awestruck by a pneumatic display and a prototype Mac that Apple never made, while home made Nixie tubes and an all-3D-printed pocket watch have us fascinated by the work that went into them.

Then among the quick hacks we look at Nintendo’s questionable tactics with respect to the EU battery requirements, and a modern web browser for the terminal that comes with a catch. Finally we consider lab grown meat and thus meat alternatives in general, before learning about a polymath medieval nun. A typically varied Hackaday week!

Check out the links below to follow along, and as always, tell us what you think about this episode in the comments! Or drop us a note at mailbag@hackaday.com.

Downloading the podcast is only one click away!

Continue reading “Hackaday Podcast Episode 397: Polymaths, Packets, And Pocketwatches” →

A Look At The TMC2208 Stepper Driver Die

The TMC2208 from 2018 was a pretty big leap forward for stepper drivers, bringing nice features such as silent operation. When [electronupdate] recently killed one of them due to an over-voltage accident he figured that he might as well use the opportunity to decap it to ogle its die and see all the shiny metal-and-silicon bits inside.

On the initial metal layer shot a lot of its organization is already quite obvious, with the four big MOSFET structures at the top, followed by the driver logic blocks below it. Following that there is a programmable section and finally the analog section with power management and clocks.

Removing the metal layer shows the four MOSFET drivers in their full glory, as well as various details in the analog section. This die is then compared to that of an older A4988A stepper driver, with the difference in the sheer real estate spent on MOSFET driving logic obvious.

This difference translates among other things in the ‘buzzing’ noise heard when operating a stepper motor – as demonstrated at the end of the video – which is what made these drivers such a great upgrade as you could actually occupy the same room as e.g. a 3D printer without going batty from the constant noise.

This Week In Security: Air Force Cloud Breach, 1Password Hacked, Usb2shell, Crypto Bombshells

Last week we wrapped up a bad month for federal networks, and the holiday weekend didn’t slow things down. Reuters reports that attackers have breached Cloud One, the Air Force’s flagship cloud platform. Cloud One was started in 2017 as a one-stop shop for Air Force IT, built on top of Microsoft, Amazon, Oracle, and Google’s clouds, and it hosts everything from personnel and pay systems to Cloud-Based Command and Control, which collects air defense radar feeds across North America, and the system that tracks bombs and missiles across more than 200 Air Force locations. According to Reuters’ sources, the intrusion was discovered within the past month during upgrade work, and one source says the attackers exploited a software vulnerability to reach the control plane, which they compared to “a universal remote” for the platform. Reuters couldn’t establish who did it or whether any data was taken, and the Air Force isn’t commenting. Not everyone thinks it’s serious: an anonymous source told the AP it was a “minor nuisance” that didn’t affect mission-critical or classified systems.

Cyber Command has been called in, migrations of back-office applications to Cloud One are paused, some users lost their admin rights, and updates to applications already on the platform are blocked, so nobody can apply patches in the middle of the current flood of serious vulnerabilities. In 2023, Cloud One’s leadership boasted of a “100% success rate” against intrusion attempts. I guess nobody bats a thousand forever.

Outside the government, the College Board, which runs the SAT and AP exams, says attackers got into the systems used to create accounts and to submit the CSS Profile, the financial aid application many colleges use, and could see basic account information and trigger password resets for some users. A spokesperson told NPR the incident “has the markings of being facilitated by ARTEX,” the AI attack framework we covered two weeks ago, though CyberScoop notes the FBI hasn’t confirmed the link. The College Board says it has seen no access to test scores, but both new account creation and the CSS Profile are offline in the last weeks of college application season, and every user now gets a one-time code at login. Active sessions have been signed out and users have to reset their passwords, but the December 5th SAT is going ahead on schedule.

In Chicago, the Circuit Court of Cook County has been forced back to paper. A cyber incident over Thanksgiving took down the clerk’s Enterprise Justice case management system and its online portal, and the chief judge has ordered the clerk to accept filings in person and by certified mail until further notice. CBS Chicago reports the clerk’s office has found no sign that personal information was compromised. There’s no restoration date yet. I’m surprised there’s still a procedural fallback to a paper process, and while it’s surely going to slow the process down to a crawl, at least the process can continue.

Continue reading “This Week In Security: Air Force Cloud Breach, 1Password Hacked, Usb2shell, Crypto Bombshells” →

Examining Counterfeit Micro SD Cards In Linux

As the cost of storage climbs, so to do does the likelihood that you’ll come across counterfeit hardware in the wild. Unfortunately these fake storage devices are also becoming increasingly convincing, so it will take more than a cursory examination to figure out if you’ve got the real deal.

The good news is, figuring out if that new micro SD card you just bought can actually hold as much data as it claims is relatively straightforward if you’re on Linux. [Jason Andress] has written an an article on how you can use various tools to not only verify the legitimacy of a micro SD card, but even “fix” some types of fake cards.

As a first step, [Jason] shows how the output of dmesg can give you a hint about what’s actually inside a micro SD card. Modern high-capacity cards should show up in the kernel logs as UHS (Ultra High-Speed), and despite how it might sound, a device that’s detected as “high-speed” is likely to be a disappointment. One can then look in the /sys filesystem to glean more information about the device, and even start poking at its registers. This can uncover discrepancies such as an incorrect manufacturer ID code.

Ultimately, on a fake card you’re likely to find that the actual capacity of the device is far less than what’s advertised. In such cases, it’s possible to fiddle with the partitions so the OS sees a usable volume that actually matches the capacity of the hardware. [Jason] recommends a software suite called “Fight Flash Fraud” — or f3 that can automate the process and perform other various diagnostic tests. Of course, there’s a case to be made that any card which needs this sort of intervention to work properly is probably better off in the trash than in any of your devices anyway.

On the other hand, if you have a legitimate SD card that’s physically damaged, you might be able to repair it if you’re willing to put the effort in.