CategoryThar Be Pictures

µC Prototype JFET Vp/Idss Tester Part 5: Designing a slightly better tester

So I decided a few things since etching the last PCB:

  1. I’d design a new board that used a high quality ADC (16+ bits), preferably Sigma-Delta and not SAR
  2. Since the ADC was on the board, may as well throw an AVR on there too!
  3. SMT was necessary
  4. Some type of USB connectivity was necessary (RS-232 wouldn’t be so bad since I have plenty of RS-232<->USB adapter cables for my networking stuff)

So I came up with my board layouts (I should really do schematics first, very bad practice), and it looked pretty good. I tried to etch it and each side came out fine, but I was about 0.004″ off on my alignment which made my vias unusable. Also I couldn’t do a via for through-hole stuff (but I could solder each side). I quickly decided I was going to have boards printed up.

In design I chose an ATTiny1634 as it was fairly small and had more than 512b of RAM.

I use ExpressPCB. It’s pretty lame, but it was doing the job for me with single sided stuff.. and I’m used to it, I’ve done layouts in it before although I’ve never etched a board from those layouts until recently. They offer a proto-board service at 3 boards for $59 with exactly 3.8″x2.5″ dimensions. That’s just over $6 per square inch, which isn’t bad — but then they don’t include soldermasks or silkscreens and they charge you like $25 to ship the things. I found some software that could actually read ExpressPCB files so I didn’t have to do my layout over again and could work with a simple tool in familiarity (even if I loathe it). It’s called Copper Connection and has a free version which properly translates the printed images (ExpressPCB does not) so you could theoretically do double sided boards — and your single side bottoms don’t come out flipped. Oh hey, it’s picture time so you don’t get too bored!



As you can see, the bottom transfer failed in one spot, but it’s not critical. The small traces all came out great, and it looks kind of pretty.

JFET 7.0.8-TOP

JFET 7.0.8-TOP


It can ALSO export Gerbers if you pay for it, perfect! It even has some settings for OSHPark exports, among a couple other PCB houses. OSHPark does 3 boards @ $5/in^2 of your board dimensions and a more reasonable ~$5 in shipping. So I paid under $46 for 3 boards. Score. I also paid for the most expensive version of Copper Connection so I could have the freely readable text version which can be stored along with the code in Git.

I know I wrote a wall of text. I apologize! But I digress.. getting back to the board, it was pretty great. It was going to be awesome to do things this way. I ordered a USB to TTL cable with an FTDI chip in it so I just had to bring out the USART pins and grab power from USB.

I used one of my LTC2439 chips (pin compatible with LTC2418), which is 16 bit.. just in case there was something wrong with the board layout. And god was there. But it looked a hell of a lot better than my etches, everything lined up, it had vias, a soldermask, a silk screen (where I didn’t bother with component labeling), and I made a few revisions to the board before it went out:



As you can see I have a few components already soldered — and there’s a solder bridge. You’ll find out why after the next picture which has the towering totally uncalled for MOSFET and some headers in. This is my first attempt at SMD soldering, so don’t be too harsh!

JFET 7.0.8a-TOP

JFET 7.0.8a-TOP

Total board errata (I did some of the tracing late at night..):

  • ATTiny1634 is SOIC-20, board has SOIC-24!
  • ICSP header holes are too small (drill size)
  • FTDI header holes are too small (drill size)
  • J1 AREF holes are too small (drill size)
  • Increase distance between resistors and JFET receptacles
  • MOSFET Silk is reversed
  • MOSFET Drain grounded — WTF?
  • No decoupling caps are on the uC/ADC
  • Minor trace issues to ADC (not lining up perfectly — clearance could be increased)
  • Missing pull-up resistor for !CS on ADC
  • MOSFET for Idss/Vp mode (SOT23-6) incorrect (pins 5/6 swapped & connected to G instead of S on DUT)


Some of these were easily overcome. The SOIC-24 pads I was able to just bridge the last few pins since I used very few pins on the ATTiny1634 as I counted pins from each end of the chip, so I just laid it down where most of the pins already lined up.

The incorrectly sized vias for through-hole stuff was rectified with a dremel and a sanding drum so I could get my headers on the board. The MOSFET that the uC was going to switch was just a complete disaster, I had to cut traces with a razor and just let the uC directly switch the MOSFET on each JFET.

No decoupling caps is pretty much inexcusable, but doesn’t seem to be an issue thus far. My Fluke 175 agrees with the ADC insofar as the resolution that the Fluke has.

The missing pull up resistor was a problem as I was using the same SPI lines that ICSP (In Circuit System Programming) uses, the second I soldered the ADC on (which being TSSOP-28 you’d think would be the hardest chip on the board.. nope, easily the easiest) I could no longer program the ATTiny. So I soldered a resistor right on top of the chip between Vdd and the uC pin connected to !CS on the ADC. With !CS being (weakly) high during reset, the ADC no longer interfered with programming the device.

Ultimately I didn’t like the way the USI module of the ATTiny did SPI so I just decided to bit bang it anyway, making all of these issues moot as in the future I can just connect it to any pins I want.

Speaking of, you know how I did a poor job of soldering SMD before? Here’s where I makeup for that with perfect alignment and a good solder finish. 0.5mm pitch is fun!

TSSOP Soldering Up Close

TSSOP Soldering Up Close

I also should’ve put some LEDs on the board to use as status indicators, and pulled up spare IO pins onto a header.

Nearly un-correctable errata: The SOT23-6 MOSFET (I’m just using the N-side for now, it’s an N/P pair) was traced to the JFET completely incorrectly making it useless, I can’t measure Vp and Idss since it can’t switch what it needs to. I might overcome this before the next board revision/print by cutting the traces and wiring the Source and Drain where they need to go, but that’s a huge pain and I kind of just want new boards.

In the future I’m going to keep the uC board separate from the JFET/ADC board, for the next couple of revisions I’m keeping the same basic hardware layout, correcting errata and cleaning up the layout a bit.

And finally.. here’s the semi-functional board with the ICSP and USB cable hooked up and actually reading Vp for each JFET (the MOSFET is actually removed now, traces cut, and a solder bridge is there between two of the vias)

JFET-7.0.8a-Partially Assembled-Top

JFET-7.0.8a-Partially Assembled-Top

Code is up on GitHub for all to see. Make your own, I dare you.. because it’s totally not worth it unless you’re really into JFETs or you’re a masochist.  I actually might make the ADC board card-edge and have a base board with the uC, hmm!

Me vs my 2006 Audi A4 Quattro 2.0T Part III: The S3 K04 Installed!

So the S3 K04 needed some modifications to fit on my 2006 A4, including:

  • Diverter valve relocation since the turbo was not machined for it
  • Drilling and tapping the turbo for the diverter valve to have a place to inject air into when active
  • A custom charge tube, which now connects to the top of the intercooler instead of the bottom
  • The bottom intercooler transfer line being clocked at a different angle so it can now connect to the bottom of the intercooler
  • K04 exhaust flange is larger than the K03, so weld holes and drill+tap new ones (in stainless!)


Custom Turbo Charge Pipe

Custom Turbo Charge Pipe

This is the mostly finished product, you can see the custom diverter valve mount with a rubber tube that hits a 3/4″ NPT nipple that was added to the turbo before the compressor wheel.

Divert Valve Relocate Body 1

Divert Valve Relocate Body 1

The diverter valve relocate was made entirely from Schedule-80 tube, from the 1″ tube connecting at the bottom flange and and side flange (for the re-circulation tube) to the 2.5″ tube that brings it all together. Everything has been opened up mildly on the lathe, you can see the lip left over from the original thickness.


Divert Valve Relocate Body 2

Divert Valve Relocate Body 2

The top view shows the lip a little better, along with a slight angle cut to make welding the top flange for the diverter valve easier. The 1″ pipe entering this pipe was cut on a ~$45 end tubing cutter from Harbor Freight which worked better than expected.

Divert Valve Relocate Assembly 1

Divert Valve Relocate Assembly 1

Here’s a quick mockup of the assembly. I did mockups in PVC before machining anything.. partially because I was bored, partially to make sure my ideas would work correctly. The plate on the “top” of the relocate will have the small hole drilled out to 1″ to fit a coupling into the intake charge tube. The other long 1″ pipe actually seen in the picture will be cut short to allow for the recirculation hose to connect to the turbo.

K04 Modified Flange

K04 Modified Flange

The flange, modified. The outer bolt hole you can see in the lower left is the original K04 size. The other side needed to be cut off to avoid hitting the motor mount. Unfortunately I had some issues drilling the new top two holes after welding it, probably due to the type of rod used. The studs wound up getting welded in, but the important part was we now have a flange that fits the stock catalytic converter or 2006 A4 downpipe!

The car runs, at first it ran FAST and would pick up >15psi of boost with spikes above 20psi. It was pretty great, even if it was running lean. APR K04 tune incoming along with bigger injectors.

Keep in mind lots of stock parts needed tweaking, some of the oil/water lines needed to be bent slightly although they happily bolted up to the turbo.


Audi A4 K04 Installed

Audi A4 K04 Installed

The charge tube is a tight fit, it just about touches the radiator, AC lines, and the frame. I should’ve used 2″ pipe here instead of 2.5″ and tried to find some with tighter radii, but it worked out. Not the 2.5″->2.0″ reducer on the intercooler. I just welded some exhaust pipe on the core support to point it as well as I could at the intercooler, the silicone hose I used isn’t kinked so it appears everything turned out pretty good.

So my water pump replacement turned into replacing a water pump, timing belt, thermostat, and adding a bigger turbo. It also made me buy shiny new tools, like an Ingersoll Rand 2235Ti Max 1/2″ impact gun (WHICH KICKS ASS! 1350ft lbs of reverse torque — really?!), and of course “triple square,” tools and a few sets of security bit sets for Torx bits which I’d constantly drop and find later — and smaller triple square bits (like M5).

So Audi A4, I win today. Though I’m sure you’ll break some other way. But for now I don’t have a noisy turbo, and hopefully I’ll have lots of horsepower soon.

µC Prototype JFET Vpp/Idss Tester — scalable to 20-50+ at a time Phase 3: The 8 Little JFETs That Could, my Second Etched PCB And FAILURE!

So I decided to setup a new PCB with 3 pins to connect to, otherwise I had to hook the ADCs into the relays. Now they can have their own run straight to the board, and the relays can have their NO or NC contact hooked up to the same trace. The JFET gate is COM. This was a pretty good improvement although I didn’t really have female 0.1″ pitch headers — I had some cheap 6 pin “Arduino” headers that are NOT the breakable kind. That left me with a few 2 pin headers until I wised up and heated a razor up with a propane torch in order to split them.

One 3 pin header holds the JFET (rather loosely in these, unfortunately) while the other 3 pin is for the relay/ADC connections viagra ohne rezept aus deutschland. If you look closely you’ll note the toner transfer wasn’t perfect and my freehand quick drilling job is even less so, but I knew this was a prototype and I wasn’t too concerned with it so long as I had enough copper to solder to. I’ll probably try a smaller bit next time and I’ll fill the pads in completely.

I switched from an Arduino Due to an AtMega2560 board since they had them for $10 at MicroCenter. It actually has a 16 channel muxer to the ADC so I can measure 16 JFETs at a time without adding any ADCs. I did order some ADCs as samples, hopefully they’ll be approved and sent to me so I get some freebies. I went with mostly surface mount so I can do a two layer PCB and leave the ADC signal traces on top, I did a couple quick designs of such a PCB and it wound up being extremely easy to get what looks like good routing to me.

The board supports 2 rows of 9, I left an extra one in each row for redundancy in case I had bad traces on any of the cells. Fortunately they all turned out fine. You’ll also note I only filled in one row, as I figured I’d run into a bit of a problem testing the 2N5638 JFETs which can exceed a 50ma Idss and thus exceed 5.0v


Arduiino JFET Tester 16

Arduiino JFET Tester Mini-x16 v1.0 (3×5 PCB)

So I decided to change the sense resistor from 100Ω to 47Ω and did some minor revamping of the Arduino sketch. The program is still pretty poor, but it does its job for the time being. I ran out of 1MΩ resistors so I used 10MΩ, which shouldn’t affect Idss or Vpp readings. Unfortunately it seems like going with the 47/10M combo causes some serious heat in the devices. Almost immediately after I hooked power up (12V) I smelled hot plastic. My initial thought was that I got the polarity incorrect and I even feared that I might have blown the muxer or ADC in the AVR chip.

Now I’m really not that familiar with transistors at all, nevermind JFETs (this is a learning experience for me), but I’m assuming I’m getting too much voltage with the 47Ω sense resistor in place. I didn’t want to use a straight voltage divider, I may have to go back to 100Ω and use a JFET or op-amp buffer with an attenuator after it.

The measurements on the other hand seemed OK (I had 2SK170s in every other socket), but I shouldn’t be nearly melting devices or measuring with die/case temperatures anywhere near that high. Touching one of the devices extremely briefly nearly gave me a burn, at which point I immediately pulled the power.

At this point I’m going to consider my options and re-design, a TL072 (has a JFET LTP on the input, so very high input impedance) might be smaller than TO92 JFETs for a buffer, and would certainly be linear. I’m not sure I want to use any SMD stuff, and I really don’t want to deal with making vias in prototype PCBs.


Update: Also the 1M resistors that were supposed to be in place were apparently 1K. Apparently I’m awesome at reading DMMs and color bands. I redesigned the board for an opamp buffer before discovering that.

µC Prototype JFET Vpp/Idss Tester — scalable to 20-50+ at a time Phase 2: The 12 Little JFETs That Could and my First Etched PCB

I’ve been experimenting with making PCBs. I’ve always wanted to, but it’s something that I’ve never actually had the chance to do. I went through many a lot of iterations trying to get the toner transfer method to work.

In retrospect my big mistake was grabbing Kodak’s Ultra High Quality inkjet glossy photo paper. Photo paper can work well, but not this 10.7mm thick stuff with a plastic back. I didn’t actually have an iron, so I tried everything I could think of and only wound up going from almost no toner transfer to getting around 80% of the toner transferred with lots of broken traces. I started with a ‘hobby iron,’ which didn’t have enough contact area or enough heat. I was going to use a hobby heat gun, but I couldn’t locate it. I went through probably around 20 sheets of the stuff. I tried heating the paper from the back lightly with a propane torch, which actually gave me some results but only near the center. I heated the copper layer with the torch first, and actually destroyed a couple boards that way by applying too much heat from the torch. I did wind up getting vastly improved transfer this way as I rolled a piece of ~1.5″ aluminum pipe over it and VERY gently heated the paper with a torch.. but I was still left with an unusable amount of transfer.

So I was going to buy baking sheets today (aka cooking parchment, apparently) as I read that had excellent qualities for laserjet toner transfer. But before I ran to Walmart I was in Walgreens which is much closer to me. I picked up their glossy ink jet photo paper thinking I couldn’t do much worse than what I had already done. I learned that there were many thicknesses of glossy photo paper (The More You Know..) and this material actually had a paper back so it should fall apart in water and require less work for removal. I bought a cheap $18 iron while I was there. I’m not sure if it was the iron or the paper (but I’m betting it was mostly the paper with the iron not exactly hurting matters) but I got usable transfer on my first try. There was one little area where a large power trace was broken. I had the foresight in Walgreens to pick up fine-tipped Sharpies, so I scribbled in the broken trace and dumped the board in some Ferric Chloride.

<img class="wp-image-233" src=" viagra 50 oder 100.jpg” alt=”First JFET PCB” width=”281″ height=”500″ />

First JFET PCB (theoretically 36 at a time)

This was a pretty good choice for a first etched PCB, I went through a bunch of layout iterations for each module that would be duplicated over the board, and I finally got something that I liked — the trace layout looked better to me than some of the other options and it was efficient in terms in space usage from left to right. I couldn’t fit a 5th row on the PCB without significantly reducing how many columns I had. I intended on using PCB terminals from Radio Shack (hence the 0.3″ spacing next to the resistors), but they were too bulky so I just soldered some Male-Male jumper wire to hook into the Arduino and the 8-way relay boards I ordered before I decided to start making PCBs. I’ll probably wind up integrating the relay board onto the JFET tester with an ADC and a header to connect directly to the Arduino. At least making PCBs is a cheap hobby, and I’ve always wanted to make SO many PCBs — I’ve always resorted to wiring on standard perfboard with thin wire and a decent amount of solder to work as ‘traces’ for audio amplifiers. PCBs would make things SO much easier — if only I had a small CNC mill to drill all the holes for me!

JFET DUT Cell Evolution -- From Really Bad to Kinda Bad!

JFET DUT Cell Evolution — From Really Bad to Kinda Bad!


As you can see, each DUT Cell has gotten smaller with time. The last one got slightly larger to accommodate the RS PCB Terminals, but they’d need even more space to properly fit. They hit the resistor on the cell it’s in and on the one before it.. then there’s little clearance even between the terminals so it’d be hard to insert wires.

I actually picked up an AVR ATMega2560 based board cheap at MicroCenter. I’ve been using AVRs forever, the Arduino IDE just makes things a little easier  in some respects, even if it is a bit more limiting than I’d like. I’m used to using Atmel’s stuff, I’ve been using AVRs since the first ATMegas came out and there was a long lead time on the 16MHz variants, so at least I’m fairly familiar with them and their inner workings. I couldn’t resist buying the ATMega2560 board as it has *16* ADC inputs without using an external multiplexer or ADC. I have a few ADCs laying around, but the only one I could find is a TLC1543IN which wouldn’t work with the Arduino Due without a level shifter as this particular model of the 1543 (IN) is a 5v part, so it would blow up the Due’s 3.3v IO without bi-directional level shifters which I don’t have.. nor do I have signal MOSFETs, and IRF510s in a TO-220 would look ridiculous even in the interim. 🙂

I’ve only physically populated a single row, and I used 1% metal film resistors (again from Radio Shack since they’re right there and I don’t have to wait for things even if I pay through the nose and out the other side of it).  Clearly I’m not an electronics engineer, and my circuit design is probably poor overall for some reason, but the JFETs will (hopefully) not oscillate and we’re only testing two parameters so it should suffice. I measured the resistors to make sure I was reading the bands correctly (it’s been a while and I don’t have a magnifying glass — and damn they’re harder to read than I remember), and my little Fluke thought they were all within +/- 1%. I didn’t want reading variations with 5% resistors.

The process is the same as before. The relays are flipped to measure IDSS or Vpp, and we use a single pin to flip the relays. We’ve just scaled it up some by taking it off of a breadboard. You can see the PCB I printed this time only does 36 FETs at a time. I was trying to minimize the area outside of the center of the board and these are just prototypes so there was no reason to not do so.

Speaking of, I have design decisions to make for my prototypes — either use ATTiny828s that have 4 ADCs and mux them out to 28 for a mere $2.24 each (in TQFP from DigiKey) and put them on board (say with 112 JFETs on a larger board) with serial uplinks or to a control processor either on or off the board. With only 512B of RAM they’d need a separate processor to offload readings as quickly as possible. At least it’s cheaper than a halfway decent ADC and leaves me room to update their firmware and possibly do things a bit differently.

Here’s an example of *90* JFETs in the same board space (4.5″x6.375″), up from 36. They’re packed in tight, but there’s enough clearance everywhere. This one uses 2 pin male headers for each JFET.. routing them to a central place for a ribbon cable would be nice, but would require a two sided layout which I’m not quite ready for yet..

90 JFETs on a 28 in^2 board

90 JFETs on a 28 in^2 board

So I’m going to wire the 12 JFETs up to a couple 8-relay boards and see what happens. Hopefully I didn’t screw up the circuit design from my breadboard layout and there’s nothing seriously wrong with the design..

Part 3 incoming, it’s either going to detail a massive failure and/or another upgrade.. hooray?


µC Prototype JFET Vpp/Idss Tester — scalable to 20-50+ at a time Phase I: The 4 Little JFETs That Could

I previously tested all my 2SK170 and 2SJ74 JFETs by hand with a simple circuit, it’s illustrated well at the Fetzer Valve page, which is a great resource on making a very simple JFET amplifier that somewhat mimics a tube sound. The schematic is near the bottom of the page. I used a DPDT switch and tested two JFETs at a time, then logged the results in a spreadsheet and put the JFETs on a roll of tape with a start number and end number corresponding to the ID in the spreadsheet.

Clearly I needed a way to automate this as some projects will need to many matched JFETs, or I’ll at least need to know their basic characteristics since they have a ridiculously wide manufacturing tolerance. This was a bit of a pain when I went to build my Discrete Class-A all JFET opamp on a breadboard. Side note: Sounds awesome as the initial input for my modular guitar amplifier project and drives the Fetzer Valve circuits into crunchy distortion, especially when the presence caps are engaged!

So I took the schematic and scaled it up. I used a Seeed relay shield attached to an ARM Cortex M3 based Arduino Due. An Arduino Uno would’ve also worked, but the Due has more ADCs and higher precision. This is just a prototype for a larger version, and a proof of concept. It tests 4 JFETs at a time since there are only 4 relays.

The relay shield acts the same as the SPDT switch shown to switch between Vpp and Idss measurement. Sending “R” to the Arduino over serial changes modes, and it just consistently prints out the measured values. I had tried to use the SPDT switch to trigger an interrupt, but I didn’t have any hardware debounce and the interrupt triggers were actually causing the µC to freeze up for some reason. I didn’t look into it and just figured it’d be easier to read the serial input.

The code is very simple and available on GitHub at I set the relay pin low or high to measure Vpp or Idss then perform a few measurements and average them. The Due has a bunch of on-chip SRAM so storing 16 samples from 12 ADCs with 16 bit precision (12 bit with 4 bits of padding) doesn’t hurt in the least at 384 bytes of RAM of our 96kB total.


arduino JFET tester Phase I_rotated

Arduino JFET Tester Prototype

(Not shown: 9v battery source)


I used 1% metal film resistors so I could basically ignore calibration, though you could easily use 10% and measure them then set a calibration factor FOR EACH ADC. I’d rather spend a few extra bucks and deal with a maximum ~2% error factor.

The relays make a satisfying click as they all switch in synchronization. The JFETs are driven with what ever voltage I need, if you expect your values to exceed 3.3v on a Due you’ll have to add a voltage divider to your sampling line, and they’ll have to be very high resistance to not interfere with the JFET — which can also reduce sampling accuracy, ironically. You could also adjust the sense resistor in the circuit. I’ll post schematics with higher power JFETs to illustrate different tactics for dealing with high current JFETs or ones with a high Vgs(off)/Vpp.

The source voltage for the JFETs doesn’t affect Vpp/Idss to such a degree that I had to modify anything, Vpp never exceeds ~1.3v, and Idss never exceeds ~1.5v (which equates to 15mA) with my 2SK170s. You can also test P channel JFETs, but you have to modify a few things to do so. Again, I’ll be posting complete schematics for each type and what to do with high Vpp/Idss devices. The second version is going to use 24 relays and an extra 8 channel 10 bit ADC so I can measure 20 JFETs at a time.

I like to let them sit in each mode for a few minutes to stabilize temperature (as they’re rather) before actually recording the readings. All of these things are going to go into the software, and support for the Seeed boards will remain for a simpler JFET tester (even up to 3 boards if you’re up to wiring them) — however I really recommend the 8 relay boards with optocouplers that you can buy on eBay. The optocouplers protect your precious µC pins from anything as you trigger the relays.

Feeding the JFETs with 3.3v gave me wonky readings, and 5v wasn’t much better. 9v gives me pretty much the same readings as 30v with some small variance, so I’d recommend a 9v feed. You should protect your ADC inputs with at least Zeners (I didn’t).. or some type of break switch (ie any transistor).

So Phase 1: 4 Relays, Using 4/12 onboard 12 bit ADCs
Phase 2: 16 Relays, using 12/12 onboard 12 bit ADCs
Phase 3: 24 Relays, using 12/12 onboard 12 bit ADCs + external chip with 8 10 bit ADCs
Phase 4: Use RadioShack 276-170 boards with JFET sockets installed instead of breadboards (Two sections of 47 columns, 5 rows). That will easily give me 22 JFETs per board
Phase 5: Add more I2C ADCs and relays to test ~50 JFETs at a time for easy cataloging
Phase 7: Switch to STM32F429, test 100 JFETs at a time with many I2C ADCs (or use a hilarious amount of relays as a huge multiplexer instead of a massive ADC array — which also has the advantage of sounding really cool)

Since the Arduino Due is basically a monster as far as micros go, we won’t run into any issues with lack of RAM or PROM storage. Do you know how insane 96kB is when you came from 8kB and less of RAM? Granted it’s not as much as an improvement as the processor itself.. but still very nice! Of course I cheated back in those days and hooked up 64kB SRAM.. in banks.. and bank switches happened between task switches, so each process/task had its own bank of 32kB of RAM for the heap. But that’s a story for another day, and I digress!

I may also port the project to my STM32F429 Discovery board. It has 256kB of RAM with another 8MB on the PCB accessible and addressable through the external bus, along with a 320×240 touch-screen LCD. That would be an entirely new program, of course as unfortunately the STM32F boards are not really supported under Arduino (though apparently some work is being done for some of them.. the F429 is not one of those devices).

Between that and maybe an easier navigation device (track ball off a Blackberry? Joystick?) it’d certainly be a more impressive looking and easier to use tester. I know I don’t need that much RAM for this application, but I can’t argue with more specs 🙂 It also has a trio of I2C busses for hooking up LOTS of ADCs! It also sports I2S.. which means.. more ADCs!

And my secret end goal? To make a single ended JFET output stage to drive a small guitar amp. rezeptfrei viagra bestellen. shh! I’m gonna need lots of these things to drive a few amps into a speaker!

Me vs my 2006 Audi A4 Quattro 2.0T Part II: The Tale of Stuck Bolts, and the S3 K04 Turbo That Doesn’t Really Fit On An Audi B7 A4

DISCLAIMER: This is mostly a rant, not a how-to. I’ll post a “how I did it,” later — you know, once I actually do it. A good resource for the S3 K04 turbo on a B7 A4 and the parts you will need is available at Audizine Thread: S3 turbo on A4 2.0 Tfsi DIY:ish, there’s some good information on that post and of course throughout Audizine’s forums.

So, the Audi saga continues. After finding out I needed a water pump I ordered a timing set with the pump as it’s driven off of the timing belt on the VW/Audi 2.0T. I realized I had to take the nose of the car off, that’s everything forward of the fenders — core support, bumper, bumper support, headlights. I wasn’t fully prepared for how much of a pain that would be on a 2006 Audi with some stuck bolts.. but I did get it off, and I actually had access to the engine.

Changing the thermostat was now a possibility, so I decided to do that at the same time. As you may have read from Me vs my 2006 Audi A4 Quattro 2.0T Part I, Audi likes to make everything out of plastic. I actually couldn’t get one of the hoses free from the thermostat without possible damaging it, so I simply grabbed a pair of channel locks and crushed the thermostat. The pieces came easily out of the hose, and I didn’t have to buy yet another $110 hose (this one is semi-accessible without massive disassembly so I didn’t replace it for peace of mind).

After a few hours in the heat taking the car apart I decided to do something a little less intensive — I looked at my turbo caked in heavy oil deposits, and decided to match the S3 K04 turbo up to it. I had read that you needed a diverter valve relocation kit, but I could easily fabricate that. I wanted to make sure all the outlets were in the right spot.

They were not.

Of course they weren’t.


So here’s what APR offers as a K04 conversion package, with the outlets in all the same spots so you can reuse your factory hoses. I have a feeling they machine the K03 housing to accept the K04 compressor impeller.


APR K04 Turbo Upgrade for 2.0T Longitudal

APR K04 Turbo Upgrade for 2.0T Longitudal

Note how the turbo outlet (the pipe exiting the bottom of the turbo) points basically downward. The S3’s K04.. faces FORWARD! I didn’t do that much research, so I had no idea that I was getting myself into some fabrication.


Audi S3 K04 to A4 Overview

Audi S3 K04 to A4 Overview

Now take a look at the S3 turbo — you can see the long squiggly compressor outlet tube that they’ve fabricated and welded directly into the bolt-on turbo flange. You have to do that AND relocate the diverter valve. That tube is actually a good place to put the valve.

But I digress.


Further research after the fact showed what I should have known in the first place. Now my car will be apart longer since I’m not going to take the entire front end off again to change the turbo when that decides to bite the bullet next month. Of course now that I’m doing the turbo, my Tiptronic transmission will die. Mark my words. I bet it’s because of something made out of plastic, too.

Thankfully the inlet is in roughly the right spot and the exhaust manifold is actually part of the turbo, so I know it bolts up to the engine. The exhaust outlet is in the right spot, but I later found out the outlet flange bolt pattern is larger. That will necessitate some modification either to the turbo or the catalytic converter’s flange.

If fabrication scares you, if you don’t have a TIG welder, or access to a small machine shop — stay far away from the actual S3 turbo. The coolant and oil lines will bolt up easy enough, and obviously it’ll go right on the engine. But there’s no readily available turbo to intercooler charge pipe for putting an S3 K04 on an A4. Which means you have to cut up some pipe and do some welding (directly to the turbo’s outlet flange).

But the title says something about bolts, you say? Right. Audi had this great idea where they would put Allen-head bolts through the crank pulley into the crank, all the different types of bolts on this car befuddles me. They go from Allen to “Triple-Square” (12 point extrusion, similar to Allen) to Torx to good old fashioned hex head and 12 point bolts. Go figure.

Anyway, as my luck would have it I stripped two of those Allen head bolts. Considering the tight confines of the crank pulley and the fact that there were no edges to hit with an impact hammer or other tool I simply welded a 3/8″ bolt on to the first bolt and used a 9/16″ socket and the impact gun to drive it. It broke the weld at first, I couldn’t get good weld penetration due to the area constrictions. I ran it again and did my best to get a good weld around the circumference of the bolt.

I heard you like threads.. so we put bolts on your bolts.

I heard you like threads.. so we put bolts on your bolts.

It zipped right out. Bingo! The next one should be even easier, right?


It worked great for the first bolt, the second one was not so happy. I tried a 1/4″ bolt this time so I could actually sit it inside the existing stripped bolt. Sounds like a good idea, right? I was able to get a much better weld this way.. unfortunately this bolt I was welding it to was also a little more stuck than the last one, so the 1/4″ shank  simply snapped. I had more of a problem now since I also had to deal with the 1/4″ stub with a weld around most of it.

I welded a nut to what was left of the bolt. That weld snapped.

Then I remembered something great (and that I rarely have to resort to). I had recently bought a set of cheapo sockets that were basically junk – they broke easily. They were on sale for like $4, but even junk tools can have a purpose. This one was about to find out what its was.. because being a regular socket was certainly not it.

I cut three deep V grooves into the cracked socket with the bench grinder so I now had 3 prongs attached to the 3/8″ drive base. It fit fairly well over the existing weld material.

Three Prong Sacrificial Socket

I welded it up as good as I could and popped the impact driver on it, and out it came viagra 200.

Three Prong Socket Saves The Day

I still have to figure out how I’m going to get the large crankshaft bolt out which doesn’t want to seem to budge with my impact driver. Of course nothing about this car is easy!

But hey, now I can’t forget why I hated Audi.

Disclaimer #2: I actually kind of like the car, I just hate working on it as it was apparently engineered by people on massive doses of hallucinogens.

Disclaimer #3: Excuse my writing and rants, I’m running on little sleep.

Me vs my 2006 Audi A4 Quattro 2.0T Part I

The last month has been trying with this vehicle.. I hated Audis earlier in life, to which most people for some reason thought I was jealous. I wasn’t. There was a reason.

And this is the month that I’m reminded of it.

Quick background: I bought the car about 10 months ago and have had no problems with it aside from a miniscule coolant leak and some squealing from the turbo. Those things I was willing to put up with until it was warmer out. I ordered an S3 turbo which is a K04, I believe slightly smaller than the one on my 2007 Solstice GXP — but much bigger than the stock K03 and the same price as the puny stock one. And who could argue with more power, right? And I really don’t mind working on my own cars so long as I’m not fixing them. If I’m UPGRADING them, that’s a different story, right? So it got warm out.

So it all started when I went to put UV dye in my coolant system to track down this little leak that left no puddles or obvious signs, it was extremely slow. I hop in the car and go to drive it to get it good and hot and try to see if I can get my UV light and find some signs of the leak. Can you guess what happened within the next 15 minutes?

The car overheated. Quickly. I put the heat on, and that wasn’t working which told me I had just lost a massive amount of water. I was very close to home and decided to risk the 1/4 mile trip with as little throttle as possible. Audi likes to do this cool thing where they make everything out of plastic. Like coolant flanges on that bolt on to the back of the engine in a nigh-unreachable spot and connect the motor’s coolant passages to the heater hose and upper radiator hose and god knows what else.

Plastic is awesome.

Plastic is awesome.


This little piece of plastic took hours. And they break. All the time. Awesome design, Audi! It’s a cheap part, I think I paid around $20. Then I paid $100 for a new heater hose that connects to it just for peace of mind, and about $15 on another hose that’s about 4″ long (it’s probably one of the more expensive 4″ pieces of black hose you’ll run into).

So I somehow get the coolant flange in there and manage to get the hoses on it, I bolt the cam-driven vacuum pump back on and the high pressure fuel pump — I buy another emissions related hose and that sets me back $75 as the clips on mine broke. The PCV valve which is plastic, of course (and no it’s not a Positive Crankcase pressure Valve, it’s Audi’s ridiculous idea of Crankcase regulation) has nice hot oil fumes coming up into it — which make the plastic very brittle. I’ve already replaced it, but it seems to break with minimal pressure. Guess it’s getting changed again. I find out my valve cover is made of plastic and there’s a screw with the head broken off in it that holds the PCV valve..

I remember why I hate Audi.

I start the car, take it for a drive, everything seems to be OK until I get about 10 miles out.. the car slowly starts overheating. I try to bleed the outrageous coolant system. It doesn’t help. I notice there’s no water flow unless you rev the engine.. with a bled system a sure sign of a bad water pump. Which means you get to take the entire nose of the car off so you can change the TIMING BELT DRIVEN WATER PUMP!


Did I mention the OE water pump impeller is made of plastic and all the replacements are cast iron? Gee, I wonder why.

Thanks Audi. Clearly I was just jealous all these years. The cuts all over my hands are a testament to that. I’m so glad I finally own some kind of Audi.

In all seriousness though, it seemed to be very reasonably priced for a comfortable “AWD” (It’s not really AWD, don’t let that Quattro stuff fool you — the rear diff is open!) vehicle, and I couldn’t drive my daughter around in snowy weather in a rear wheel drive car with large tires — because they just act like big sleds and you don’t get to go anywhere.

This story continues with a horrible tale of a timing belt replacement.

And I ask myself — why did my 1979 Firebird need less maintenance and why was it literally over one hundred times faster to fix mechanical issues on it?

© 2017 Musings

Theme by Anders NorenUp ↑