Álvaro Prieto Profile
Álvaro Prieto

@alvaroprieto

Followers
3,791
Following
645
Media
1,047
Statuses
7,559

Electrical/Firmware Engineer, maker, traveler. @unnamed_show co-host.

San Francisco, CA
Joined November 2009
Don't wanna be here? Send us removal request.
Explore trending content on Musk Viewer
Pinned Tweet
@alvaroprieto
Álvaro Prieto
4 years
Latest project: 7400 Series digital clock! Based on my dad’s college project from a long time ago
Tweet media one
22
72
509
@alvaroprieto
Álvaro Prieto
2 years
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!
Tweet media one
Tweet media two
Tweet media three
69
442
3K
@alvaroprieto
Álvaro Prieto
3 years
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: 🧵
Tweet media one
21
159
804
@alvaroprieto
Álvaro Prieto
5 years
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
Tweet media one
Tweet media two
22
81
513
@alvaroprieto
Álvaro Prieto
3 years
Two weeks to re-watch seasons 1-3 :D
@NetflixGeeked
Netflix Geeked
3 years
Back to where we started. Castlevania Season 4 streams May 13th
682
11K
32K
4
33
309
@alvaroprieto
Álvaro Prieto
2 years
Best part of all? It’s open hardware! If you want to make your own, here’s the kicad project: I made a few, so if you know me and want one, let me know :)
10
25
287
@alvaroprieto
Álvaro Prieto
2 years
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.
Tweet media one
Tweet media two
4
8
184
@alvaroprieto
Álvaro Prieto
2 years
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.
8
37
168
@alvaroprieto
Álvaro Prieto
2 years
But….What if my cable is too short!? We have that covered too 😂
Tweet media one
Tweet media two
2
2
166
@alvaroprieto
Álvaro Prieto
3 years
Weather station assembly time :D
Tweet media one
Tweet media two
Tweet media three
Tweet media four
8
12
165
@alvaroprieto
Álvaro Prieto
2 years
Here’s what a the dreaded charge-only cables look like. I had to make my own since I had previously banished them from my lab!
Tweet media one
Tweet media two
3
2
150
@alvaroprieto
Álvaro Prieto
2 years
Want to test a USBA to C cable? How about a USBA to MicroB? USBC to B? MiniB? You’ve got it!
Tweet media one
Tweet media two
Tweet media three
1
6
132
@alvaroprieto
Álvaro Prieto
3 years
Checked @digikey at the right time 😅 Hobby projects may resume now!
Tweet media one
7
0
107
@alvaroprieto
Álvaro Prieto
7 years
Got my first @oshpark flex PCBs :D
Tweet media one
7
8
93
@alvaroprieto
Álvaro Prieto
3 years
Ever needed to measure a device's low power states (µA or nA level) while being able to flash/debug over SWD? Ok, probably not... If you had, you would have probably noticed the extra 30-300µA (or more!) drawn by just having a debugger connected (even when not active!) 🧵
3
16
100
@alvaroprieto
Álvaro Prieto
5 years
Today was my last day at work. I’ve decided to take a long break to focus on catching up with friends and family, working on personal projects, and traveling. I don’t have any specific plans just yet, but looking forward to the time off :D
Tweet media one
14
2
96
@alvaroprieto
Álvaro Prieto
4 years
Inspired by @sophywong 's #31DaysofFusion360 (and @GregDavill 's KiCad advent calendar of making!). I'm going to try the same but with @FreeCADNews :D We'll see if I can actually stick to it... Today's model is a LoRa module that's in one of my projects. #31DaysofFreeCAD
Tweet media one
Tweet media two
Tweet media three
5
8
81
@alvaroprieto
Álvaro Prieto
5 years
New board to power most of my devices using USB-C PD power supplies :D This way I’ll only need to carry one power supply to charge my phone, laptops, etc... Voltage/current settings are set by the resistors on the back. 5-20V 0-5A. It’s using a Cypress CYPD3177 for the PD stuff
Tweet media one
Tweet media two
Tweet media three
Tweet media four
6
10
87
@alvaroprieto
Álvaro Prieto
4 years
Time to make the first batch of Brie of 2021!
Tweet media one
9
0
79
@alvaroprieto
Álvaro Prieto
3 years
AAAAAAAAAAHHHHH. Why must they do this 🤦‍♂️
Tweet media one
10
5
68
@alvaroprieto
Álvaro Prieto
4 years
So @Chris_Gammell mentioned my home storage/inventory system on @TheAmpHour a few weeks ago hoping I'd make a video about it... Finally got around to it this week. Doesn't cover everything, but hopefully can give you some ideas about your own lab!
4
13
73
@alvaroprieto
Álvaro Prieto
5 years
Happy new year from New Zealand!
7
2
66
@alvaroprieto
Álvaro Prieto
6 years
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....
Tweet media one
Tweet media two
Tweet media three
Tweet media four
8
5
67
@alvaroprieto
Álvaro Prieto
7 years
Circuit board shadow box #1 complete!
Tweet media one
Tweet media two
5
8
63
@alvaroprieto
Álvaro Prieto
3 years
When it’s late and things aren’t working 😬 (They’re working now)
Tweet media one
4
2
64
@alvaroprieto
Álvaro Prieto
1 year
I’ll be at #opensauce all weekend. Stop by and say hello if you’re around! (Or if you need something fixed!)
Tweet media one
2
4
69
@alvaroprieto
Álvaro Prieto
7 years
I made some coasters from old circuit boards.
Tweet media one
Tweet media two
Tweet media three
Tweet media four
3
6
58
@alvaroprieto
Álvaro Prieto
5 years
Latest homemade (ashed) Brie actually tastes like Brie!
Tweet media one
5
1
66
@alvaroprieto
Álvaro Prieto
3 years
The USB-C specification() 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:
Tweet media one
1
7
60
@alvaroprieto
Álvaro Prieto
5 years
Got a chance to stop by @GSGlabs today :D Expect another great @unnamed_show episode about USB RE with @ktemkin and @Qyriad in the near future! (Once I get around to editing it...)
Tweet media one
1
6
60
@alvaroprieto
Álvaro Prieto
5 years
Playing with LIDAR :D
8
1
57
@alvaroprieto
Álvaro Prieto
7 years
Latest cheese cave controller PCBs have arrived. Now in yellow!
Tweet media one
4
12
55
@alvaroprieto
Álvaro Prieto
3 years
New SWD over USB-C board! ✅ 1.6mm PCB ✅ Slightly wider board for easier assembly (and hopefully some sort of case/enclosure) ✅ New USB-C plug that’s (slightly) easier to hand assemble ✅ Flipped pinout on plug, making it completely useless 🤦‍♂️ 🤦‍♂️ 🤦‍♂️ Check your footprints!
Tweet media one
Tweet media two
0
6
55
@alvaroprieto
Álvaro Prieto
1 year
New batch of USB cable testers arrived! After terrible yield issues with the last batch, I changed to use 0.8mm PCB instead of the standard 1.6mm. 95% yield! (100% after a small rework) If you want to get your own, check out the release and ordering info:
Tweet media one
Tweet media two
6
7
58
@alvaroprieto
Álvaro Prieto
5 years
Had a blast at #ccccamp19 this week! Here’s a few of us on our extremely well planned and definitely not winged train ride home :D Looking forward to the next one!
Tweet media one
2
2
56
@alvaroprieto
Álvaro Prieto
5 years
First double sided reflow at home. Connectors lined up! :D
Tweet media one
Tweet media two
Tweet media three
Tweet media four
3
0
48
@alvaroprieto
Álvaro Prieto
3 years
If we chose to go this direction, the footprint/component requirements to do this are zero! You'll still need an adapter board to connect your debugger, but that's it! (Maaaaybe I'll start selling these soon if there's any interest) Hope this was useful! :D
8
1
49
@alvaroprieto
Álvaro Prieto
5 years
New cheese boards have arrived!
Tweet media one
8
1
50
@alvaroprieto
Álvaro Prieto
7 years
@MalwareTechBlog @Fox0x01 has a great ARM assembly series: No need to re-invent the wheel :D (Unless you’re not trying to do ARM of course)
0
11
45
@alvaroprieto
Álvaro Prieto
6 years
Just recorded another @unnamed_show podcast in the ferry with @joegrand and @gareth__ ! I have two others from @Toorcamp that should go out in the next few weeks :D
Tweet media one
5
6
47
@alvaroprieto
Álvaro Prieto
5 years
Put together my latest weather station board! Now more integrated!
Tweet media one
Tweet media two
Tweet media three
Tweet media four
5
4
43
@alvaroprieto
Álvaro Prieto
4 years
Any Bay Area friends want to try some homemade Brie? (Assuming I can get it to you) There’s a few extra wheels that were meant to share with friends, so I figure I can distribute some of them around so folks can enjoy(hopefully) them at home!
Tweet media one
Tweet media two
14
2
46
@alvaroprieto
Álvaro Prieto
7 years
Apparently TDI International is too cool to sell me their tweezers. (I’ve used them at work) Anyone have good recommendations for alternatives? Mostly for smd work at home (0201s and up!)
Tweet media one
Tweet media two
17
13
44
@alvaroprieto
Álvaro Prieto
5 years
@szeloof I keep one of these handy just in case:
1
3
42
@alvaroprieto
Álvaro Prieto
2 years
New toy arrived yesterday! I’m a huge fan of the original @joulescope . Looking forward to trying out the new one :D
Tweet media one
Tweet media two
Tweet media three
Tweet media four
3
3
46
@alvaroprieto
Álvaro Prieto
5 years
Measure twice cut once? Whoops!
Tweet media one
3
0
42
@alvaroprieto
Álvaro Prieto
7 years
Finally put together the SMD Challenge kit I got from @oshpark at the @hackaday supercon! Didn’t think I could do it with my home gear, but luckily, I was wrong :D
6
4
42
@alvaroprieto
Álvaro Prieto
3 years
TIL my cheap digital calipers measure about half the distance when the battery is low 🤦‍♂️
7
0
40
@alvaroprieto
Álvaro Prieto
6 years
I turned off my soldering iron this morning and noticed something strange...
16
3
38
@alvaroprieto
Álvaro Prieto
4 years
@pdp7 Finally finish this project I’d been thinking about for over a decade:
@alvaroprieto
Álvaro Prieto
4 years
Latest project: 7400 Series digital clock! Based on my dad’s college project from a long time ago
Tweet media one
22
72
509
2
3
38
@alvaroprieto
Álvaro Prieto
5 years
Current batch of Brie in progress :D
Tweet media one
Tweet media two
Tweet media three
Tweet media four
4
0
38
@alvaroprieto
Álvaro Prieto
4 years
Made some bread and brought it to work so folks could try the homemade Brie :D
Tweet media one
Tweet media two
Tweet media three
4
0
40
@alvaroprieto
Álvaro Prieto
3 years
DAM doesn't specify any standard pinout. It's up to the designer to figure that out. Here's what I came up with: RX1- - SWDCLK RX1+ - SWDIO RX2- - SWO RX2+ - NRST SBU1 - VCC(target) SBU2 - GND USB D+/D- stay connected the usual way.
2
5
41
@alvaroprieto
Álvaro Prieto
2 years
I've added some detailed instructions on ordering from @JLCPCB (with pictures!) here:
4
3
40
@alvaroprieto
Álvaro Prieto
6 years
First actual weather station install :D We’ll see how long it works for...
Tweet media one
Tweet media two
Tweet media three
Tweet media four
2
1
38
@alvaroprieto
Álvaro Prieto
5 years
Had to run to the airport before the @hackaday #superconference finished. Awesome seeing everyone! Can’t wait for the next one :D
1
1
39
@alvaroprieto
Álvaro Prieto
4 years
Made a simple calculator for my usb-c-power project to figure out which resistors to use for what settings. Looks awful on mobile... which is why I'm going to stick to doing easy things like firmware/hardware instead of HTML/CSS. :/
Tweet media one
2
9
36
@alvaroprieto
Álvaro Prieto
3 years
I decided to make a test target with all these features. It's just an STM32L4 😎 with USB and a couple of LEDS (along with all the CCx detection fun). You can see how the LED is red when it's plugged in backwards. After much pain soldering on those USB-C connectors, it all works!
Tweet media one
Tweet media two
Tweet media three
Tweet media four
1
1
36
@alvaroprieto
Álvaro Prieto
3 years
Cheese making time! Going to try the sous vide instead of stove heating to see how it goes…
Tweet media one
Tweet media two
Tweet media three
2
0
38
@alvaroprieto
Álvaro Prieto
3 years
New year, new cheese! Going to try and make a Mont d’Or this time. 😬😬😬
Tweet media one
2
0
32
@alvaroprieto
Álvaro Prieto
6 years
Got the #KiCon2019 badge up and running. NOTE: The white USB cables that came with the battery pack seems to be charge-only, so it won’t work for programming. @Chris_Gammell dropped off a bunch of micro-usb cables by the @digikey area
Tweet media one
Tweet media two
1
7
34
@alvaroprieto
Álvaro Prieto
9 years
@psxdev No more cutting AUX cables! http://t.co/7t7LCfLOap
Tweet media one
Tweet media two
Tweet media three
14
9
37
@alvaroprieto
Álvaro Prieto
6 years
New weather station board is now outside and working! It’s overcast today, but the battery is already charging :D
Tweet media one
Tweet media two
Tweet media three
3
1
35
@alvaroprieto
Álvaro Prieto
3 years
I decided to make a board that passes through power and USB, but hijacks the CC1/CC2 lines to enable DAM. I used an attiny24a(in stock!) to read in the input CCx lines to determine the input charge currents and set the appropriate downstream CC1/CC2. I used the wrong footprint 🤦‍♂️
Tweet media one
Tweet media two
2
1
33
@alvaroprieto
Álvaro Prieto
4 years
Made my first 3d part model for KiCad using FreeCAD! I should have picked a simpler one to start with, but got it working eventually :D (Source drawing for reference!)
Tweet media one
Tweet media two
Tweet media three
0
4
32
@alvaroprieto
Álvaro Prieto
4 years
First attempt at making carnitas today :D
Tweet media one
Tweet media two
Tweet media three
Tweet media four
4
1
35
@alvaroprieto
Álvaro Prieto
3 years
Normally, CC1/CC2 are used to determine orientation as well as power delivery information. For this thread, I'll just focus on "dumb" PD with termination resistors. Depending on the source's pull up resistor (Rp) value, the source can advertise various charge currents.
Tweet media one
1
1
34
@alvaroprieto
Álvaro Prieto
5 years
Before I continue, a quick shoutout to decoupling capacitors. They do wonders minimizing electrical noise (random glitches!) on your circuit. It’s easy to forget to add them while prototyping, but just compare the first two scope captures to the last one, which had them.
Tweet media one
Tweet media two
Tweet media three
Tweet media four
2
4
33
@alvaroprieto
Álvaro Prieto
5 years
Three generations of @GSGlabs GreatFET! I hear the should be on sale soon!
Tweet media one
2
2
29
@alvaroprieto
Álvaro Prieto
5 years
The project starts with a 555 timer to generate a 10kHz clock source using two resistors and a capacitor.
Tweet media one
Tweet media two
Tweet media three
1
0
29
@alvaroprieto
Álvaro Prieto
3 years
Just spent an hour debugging an issue caused by the voltage drop because of cheap cables. Fixed by changing to nice ones. HiLetgo ??? - $7.49 for 3 pairs. ~1.67 Ohms through both. Pomona 3782-24 - $15 a pair. Total resistance through both ~0.12 Ohms You get what you pay for🤦‍♂️
Tweet media one
Tweet media two
Tweet media three
8
0
32
@alvaroprieto
Álvaro Prieto
3 years
In order to do this "properly", we can use a two comparators(op-amps in my case), an AND gate, and a switch (TMUX1511, in this case). The comparators detect when both CC1/CC2 are pulled up. If both are, the AND gate enables the switches to connect all the signals.
Tweet media one
2
1
31
@alvaroprieto
Álvaro Prieto
4 years
Latest rev of my weather station board. Going to try out LoRa this time. Also split temp/humidity from pressure sensors since I’ve had issues with the BME280 and condensation. The SHT31 has a special membrane to protect it from that. I’ll have to protect BMP280 some other way.
Tweet media one
Tweet media two
1
0
31
@alvaroprieto
Álvaro Prieto
5 years
🤦I should probably show the block diagram first. In summary, we start with a 10kHz clock and divide it down by 10 until we have a 1Hz clock. From there, we have second, minute, and hour counters, display drivers, and 7-segment LED displays.
Tweet media one
2
1
27
@alvaroprieto
Álvaro Prieto
5 years
One day until I fly to Germany for CCCamp! :D Who else is going?! I should start packing...
10
1
32
@alvaroprieto
Álvaro Prieto
3 years
In order to test all this, I first used a USB-C plug breakout board with a few wires 😬 On the other side, I hooked up the circuit mentioned above. (I can't show the main circuit, unfortunately). The setup worked though! Time to make some custom boards :D
Tweet media one
Tweet media two
1
1
30
@alvaroprieto
Álvaro Prieto
6 years
Looks like I will be going to @defcon after all! I’ll bring my recording gear for some @unnamed_show episodes :D
2
3
28
@alvaroprieto
Álvaro Prieto
3 years
USB-C cables only pass through CC1. In order to use DAM, we need to have a USB-C plug (or custom cable) to connect both CC1 and CC2. If the device is in DAM, how do you know the charge current? There's another table for that :D
Tweet media one
1
1
28
@alvaroprieto
Álvaro Prieto
6 years
New weather station prototype is working! Finally got wireless boot loader working so I can program the unit outside :D Still have plenty of testing to do and a lot more mechanical/weatherproofing work.
Tweet media one
Tweet media two
Tweet media three
Tweet media four
2
1
28
@alvaroprieto
Álvaro Prieto
5 years
Finished my t-shirt quilt/blanket today! Took way too long but learned a ton about sewing! I used a fleece blanket for the back.
Tweet media one
Tweet media two
4
0
27
@alvaroprieto
Álvaro Prieto
3 years
So I made another programmer over USB-C 😂 This one uses SPI instead of SWD. I also got the MISO/MOSI lines flipped, so had to use some jumper wires to program.
Tweet media one
Tweet media two
1
1
27
@alvaroprieto
Álvaro Prieto
3 years
Ok, so back to why I didn't want to make the pinout reversible. Following the USB spec is nice and all, but for hobby projects... 🤷 What if we ignore all of the CCx detection stuff and just permanently wire the SWD lines to the USB port? Saves us several components and space!
3
1
26
@alvaroprieto
Álvaro Prieto
6 years
Finally made it to @kiwicon and look who I found already! It’s @dominicgs !
Tweet media one
5
3
28
@alvaroprieto
Álvaro Prieto
4 years
Started another batch of cheese yesterday! This one should be closer to a triple cream Brie if everything goes to plan...
Tweet media one
Tweet media two
Tweet media three
Tweet media four
2
0
29
@alvaroprieto
Álvaro Prieto
4 years
Let’s try and make some raw milk brie today!
Tweet media one
Tweet media two
2
0
29
@alvaroprieto
Álvaro Prieto
3 years
I don’t usually post my bread photos on here, but I’m pretty happy with how this porridge loaf turned out :D
Tweet media one
Tweet media two
Tweet media three
4
0
28
@alvaroprieto
Álvaro Prieto
6 years
Finally got my badge. What’s everyone up to?
Tweet media one
4
2
27
@alvaroprieto
Álvaro Prieto
3 years
I hard-wired the CC resistors and it worked :D Here's the fixed version. It uses the SBU1/SBU2 signals (VCC/GND) to light up a green or red LED to let you know if it's plugged in wrong. It has standard SWD pins for debugger. The only problem is... I have to program the attiny24!
Tweet media one
Tweet media two
1
1
25
@alvaroprieto
Álvaro Prieto
5 years
Weather station progress: It all fits and seems to work :D ~110uA average current (1 min sampling period) isn’t too bad either :D Next step is to leave it outside for a while and hope it stays alive. (And future out where/how to mount the solar panel...)
Tweet media one
Tweet media two
Tweet media three
1
1
26
@alvaroprieto
Álvaro Prieto
6 years
Backing up old files and running into wonderful directory structures like this one: "old/backup-12-2-07/backup2/ooold/NewBackup/OldBackup/"
5
7
25
@alvaroprieto
Álvaro Prieto
4 years
🧀 update!
4
1
27
@alvaroprieto
Álvaro Prieto
4 years
For some context see
@alvaroprieto
Álvaro Prieto
5 years
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
Tweet media one
Tweet media two
22
81
513
0
0
26
@alvaroprieto
Álvaro Prieto
6 years
Car hacking village at @toorcamp !O
2
5
27
@alvaroprieto
Álvaro Prieto
5 years
Here’s a quick video of the clock working. I change the clock source from 1Hz up to 10kHz to speed things up a bit :P
2
1
21
@alvaroprieto
Álvaro Prieto
7 years
New blog post! Nui (IR Volume Controller)
Tweet media one
0
7
20
@alvaroprieto
Álvaro Prieto
2 years
Tweet media one
Tweet media two
0
4
27
@alvaroprieto
Álvaro Prieto
3 years
This pinout means that the connector is not reversible. Using the TX and RX lines in a particular way would allow for that, but I chose not to do that (I'll explain why later.) Technically speaking, a device should not enter DAM unless CC1/CC2 are both pulled up.
1
1
25
@alvaroprieto
Álvaro Prieto
6 years
Early prototype of weather station project box. Oversized battery, case, off the shelf regulator and solar charger, and wiring mess. Goal for the break is get fw/sw/hw working and make smaller, better, and more integrated system after that.
Tweet media one
Tweet media two
Tweet media three
3
0
25