Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)D
DIY Electronics and Hardware

Members
0
Posts
48
Created
2 yr. ago

Those cheap USB case screens: how to tell the picture data apart from the commands in a USB capture

The little 3.5" and 5" USB screens people put in PC cases (and on desks as stat displays) are fun to hack on, but most of them only ship a Windows app. If you capture what that app sends, 99% of the bytes are picture data, and the handful of real commands (brightness, orientation, "start frame") are easy to miss in between.

I wrote up what helped me separate them: JPEG frames give themselves away with FF D8 at the start and FF D9 at the end, raw RGB565 frames are exactly width x height x 2 bytes and look like slowly changing 16-bit values, and the commands are the short transfers that sit right before each frame or show up when you move a slider. Once you know the frame size, the short header in front of it (size, coordinates, a counter) usually falls out quickly.

The write-up uses examples from usb-rea, an open-source tool I made that does this split on a capture automatically and drafts a small Python driver, but the checks work just as well by hand in Wireshark.

If you have one of these screens that nothing on Linux supports yet, I am curious which ones, there are a lot of rebadged variants out there.

dev.to

I hit the Street-Lithium Motherlode today

Yesterday, I'm building a DIY battery pack out of cells harvested from old laptops, thinking "Man, I wish I knew someone with an old broken e-bike or something". Very next day. I go for my daily walk. 1 block from my house, e-scooter on the curb, with a sign that says "FREE". "Sold!" I said out loud, and carried the thing one-handed quickly back home (okay I only made it a few houses before I switched to two hands). The escooter itself was held upright with zipties, rear wheel was present but not attached, rear tire was blown, and while it did power on and show something on the screen, the throttle didn't do anything, and it was physically sticky (and thus very dangerous). And e-scooters are banned in my town (my whole province really), and they're pretty dangerous, and I'm stupid enough to ride without a helmet, so I decided to scrap the scooter for batteries. I found 30x DMEGC INR18650-26E, rated at 2600mAh at 0.5C, and rated for up to 3C discharge: https://e-foton.pl/userdata/public/assets/Testy_ogniw/DMEGC-INR18650-26E.pdf I have no use for a 36v series battery pack or its BMS, so I pulled a single cell out of the nickel stripping and threw it in my tester, set for 2A discharge, 2A charge, 5 cycles, 10 minute rest period between: https://i.imgur.com/egbT45Z.png I got just over 2500mAh at 2C. Cell only rose ~3°C at end of discharge curve. Cell dropped from 4.1895v unloaded to 4.0250v under 2A, indicating internal DCIR 82.25mΩ. Datasheet states <25 mΩ(ACIR), but I don't have an ACIR tester, however these DCIR values are very good and well within the expected difference. TLDR: Got free e-scooter batteries. All my testing indicates they are near-new, in perfect health, and quite safe. 280Wh of energy storage, enough to watch old TV episodes on my phone for the first few days of the American Invasion.

Real-Time CO2 Monitoring with Renesas EK-RA4M2 with indication light using BleuIO

cross-posted from: https://programming.dev/post/58622590

This project demonstrates how to integrate the Renesas EK-RA4M2 development board with the Renesas CO2 Sensor (RRH47000) and the BleuIO Dongle (SSD025) by Smart Sensor Devices, built on the Renesas Bluetooth Low Energy SoC DA14695. In this setup, the dongle advertises sensor data from the CO2 sensor, including CO2 concentration, humidity, and temperature. The sensor data is displayed using the RTT Viewer.

MicroTimer - A weather station/clock that runs indefinitely on indoor solar power

https://github.com/yucandu/ClockV3 MCU

 
STM32L412K8T6

Display

 
ST7305 168×384 2.9" MiP LCD ("Memory LCD") @ 0.25hz

Sensors

 
AHT20 — Temperature & Humidity
BMP280 — Barometric Pressure
DS3231SN — Real-Time Clock
MAX17055 — Fuel Gauge

The AHT20, BMP280, and DS3231SN are powered directly from MCU GPIO pins to minimize standby power consumption.

Power System

 
30 mAh LiPo battery (Bluetooth earbud battery)
TP4054 charger configured for 50 mA charge current
DFM8001 energy harvesting module
Two 30 mm × 30 mm × 3 mm amorphous silicon solar panels
    Recycled from dollar-store garden lights

Runs at ~150uA avg, according to INA228 coulomb counter (used as poor man's power profiler). Sitting upside down on a desk in regular indoor lighting at night, solar panels harvest ~200uA. Coded entirely for STM32CubeIDE.

imgur.com

I tried switching from Arduino/ESP32/Platformio to STM32/CubeIDE.

youtube.com

It was not fun. I learned nothing. But I did beat my old low current hiscore, so that was nice.

www.youtube.com

Open source laser engraver sells for just $64 fully assembled — it is small and low power but may be enough for your needs

GitHub Link A tech tinkerer has shared the full plans and resources necessary to build a compact desktop laser engraver. All the resources are available on GitHub, including the components list, 3D printer files, firmware, drivers, and software. Moreover, project creator Elias55745 is selling a fully assembled ‘mini laser printer’ created using these plans for just $64. They also intend to sell everything you need as a kit for self-assembly. However, the store is undergoing maintenance at the time of writing, so the shopping cart isn’t working, and you may see prices in Yen (I did).

www.tomshardware.com

You, too, can install this cute open-source tamagotchi on your ESP32

Remember tamagotchi? Those little digital pets really took the world by storm for a while, and they're still going to this day. However, unlike the early days of the digital pet, we now have the resources and the know-how to make our own tamagotchis. We can even make them open-source so people can tweak them the way they want. If you have an ESP32 sitting around and you think it'd be better served as a cute little creature that you need to take care of, then you can do a lot worse than check out this adorable project. While it's still a work-in-progress, it's already at the point where you can take care of a cute critter in your spare time. And when you're busy. And just about all the time.

www.xda-developers.com