Álvaro Prieto Profile picture
Electrical/Firmware Engineer, maker, traveler. @unnamed_show co-host. https://t.co/E8DRB4f3uB
Nov 19, 2022 8 tweets 5 min read
Ever wonder if your USB C cable is USB2 or USB3? Do you have some charge-only cables hiding in a box just waiting for the right moment to spoil your project plans?!
Fear no more!

I’ve made a simple board to test most of the things! Connect your cable to both sides and the signal LEDs will light up if they are connected. Here’s an example of a USB2 cable and a thunderbolt 3 cable.
Jun 19, 2022 8 tweets 4 min read
Wanted to make your own game controller that works on iOS? You probably ran into issues since Apple requires them to be MFi certified. There is a way though! No jailbreak required ;)

Here it is running on my iPad with IPadOS 15.5. I’m using a Teensy LC for it. How does it work?
I read somewhere that they’ve added DualShock 4 controller support (from the PS4). I assumed that Sony did not include an MFi chip internally, so they must have an exception for it! Here it is working over USB
Feb 21, 2022 16 tweets 7 min read
Ever wanted to debug your microcontroller over USB-C?
(I'm talking JTAG/SWD, not just USB!) If you already have a USB-C connector, there's no need to have an additional connector to program (or tag-connect pads, which are super nice)

Here's one way to do it: 🧵 Image The USB-C specification(usb.org/sites/default/…) has a section B - Debug Accessory Mode. It explains how to "support" DAM. In short, if both CC1 and CC2 are pulled up (usually, only a single one is) a device can enter DAM. While in DAM, the following signals can be repurposed: Image
Mar 17, 2020 18 tweets 12 min read
A few days ago, I found my dad’s college Digital Systems project notes. The task was to build a clock with 7400 series logic.
I decided to try and re-create the project with components we bought together many years ago.
I’ll do a quick thread explaining how it all works The project starts with a 555 timer to generate a 10kHz clock source using two resistors and a capacitor.
May 30, 2018 14 tweets 8 min read
Fridge not working.
Step 1: open fridge.
Step 2: Remove controller board.
Step 3: Solder programming header and figure out pinout.
Step 4: Dump firmware using avrdude and buspirate
Step 5: Start questioning myself
Ste.... ImageImageImageImage They seem to have used the most brittle plastic possible. Tried re-attaching the board and the posts broke off.
Had to improvise with zip ties until I can come up with a better solution ImageImageImageImage