19-03-2016, 01:53 PM
(This post was last modified: 19-03-2016, 01:56 PM by Jet Badger.)
Now that I've started doing with it something that could be mildly interesting, I'd thought I'll make a thread.
So I've bought this thing almost two months ago for 290 euros. I wasn't really looking for a 306 but it just so happened that I checked out a couple and this one seemed the least beaten into the ground. Pretty bad idea considering that for the combined sum of money it already owes me I could've gotten something that would be a much less of a headache and a money pit. Can't win all the time, eh?
The little things so far:
Bought and painted a new driver's door handle. Painted the mirror covers at the same time too.
New windscreen washer motor as the old one was seized
New used rack u-joint as the old one had unacceptable amount of play in it. What a scarce part that is.
Oil, coolant, fuel filter, spark plugs.
Tie rod end. Two of them on the same side as I managed to strip the threads on the first replacement.
Got another turn signal stalk. It's from a ph2 though so I need to get around to fixing the old one as I'd like them to match...
Replaced the fuel feed line under the bonnet.
Also, the not so little thing - the result of me not being a thorough used car buyer I overlooked the little fact that the underside in the front is all gone. Had it all rewelded including new chunks of sills on both sides. 180eur for that.
Pretty nice interior though for what it is.
Now for the money shots:
A previous patch attempt just fell off when I poked it after lifting the carpet...
It's all fixed now though. I'll have to make another pass or two with some coating as I've just noticed little iron oxide bastard spots are starting to peek through there. I'll also paint the sills body color once the weather is warm enough and I have the time for it.
Now for the in-car entertainment. When I bought the car it came with some circa 1999 Pioneer headunit and the CD player didn't seem to work so it was limited to radio only, which is pretty crap tbh. So I made an audio amp using a TDA1552 chip, it's 2x22W, feeds off 12V and needs very few extra components. Also it was from an old project of mine so I just had it laying around. Plug in my phone as the sound source and bingo!
Why I don't just buy a 50 buck headunit? Because I'm trying to save money and keep it as unappealing for potential thieves as possible, even though those days seem to have long passed, you never know.
The next step is to make the little OEM steering wheel radio control lever work with this contraption. For Android phones you need to have a resistor of several kiloohms between the 4th(mic) pin and the ground pin in order for the phone to see it as a headset with a mic and thus a 4-pin TRRS jack. Then have the 4th(mic) pin go to ground through different resistors for volume control, so that's no big deal. To skip/back songs, though, you need to double and triple click those two contacts together. I considered doing that with the lever would be a great inconvenience, so we need something to do that for us - a microcontroller! I used an Arduino loaded ATTiny85 and a transistor to control the contacts.
Android reference for audio remote: https://source.android.com/devices/acces...electrical
Programming an ATTiny using Arduino: http://highlowtech.org/?p=1695
Breadboard stage, using the Arduino Nano as a programmer, and in this case a power supply.
The code for it is very simple, basically just the blink sketch several times over. Through trial and error I figured that the minimal ime between the clicks is 100ms for it to be reliable, any shorter than that and it may just play/pause or skip the wrong way etc. 100ms must be what's programmed into the phone, as it's a nice round number. I put a little safety feature that it has to go to neutral position between clicks, so if you hold the lever it doesn't do the routine for as long as you're holding it. You have to release and press it again if you want to skip through more than once.
I might make the whole thing a bit fancier with short click for play/pause, long click for skip back and the like. It seems enough for me atm as it is though so I'm not really bothered.
Circuit:
I really didn't spend a lot of effort on this. The transistor is just random one I had laying around. The 4.7k base resistor is also random. But hey, it works!
I could've put more effort into transferring the toner onto the board aswell as it didn't turn out too great. Etching PCBs at home is too fine of an art for me... Next time maybe.
Putting everything into a case
Bench testing with a computer PSU and a mock up speaker - all working! Not with the phone in the pic though. It's too old and doesn't have the functions for the thing, but I was taking the pic with mine so I couldn't get it in the shot.
I could've put a proper ISO connector for it but figured it'd be just extra wire. The screw terminal job was already there so I just went with that for now. It all tucks behind the dash nicely and snugly and I patched the HU-hole with a piece of plastic but that's a tad too ghetto. I'll have to figure out something nicer in the future.
Notice the AUX cable coming from under the ashtray.
With the blank space that I now have I'd like to do maybe something similar to what ronj did - a small screen to show various real time parameters like ECT, MAP sensor data and all. Sigh, the extents you have to go to in a pre-OBDII car... The car has bigger issues atm though, so that will have to get sorted first. Since MOT is next week and all...
So I've bought this thing almost two months ago for 290 euros. I wasn't really looking for a 306 but it just so happened that I checked out a couple and this one seemed the least beaten into the ground. Pretty bad idea considering that for the combined sum of money it already owes me I could've gotten something that would be a much less of a headache and a money pit. Can't win all the time, eh?
The little things so far:
Bought and painted a new driver's door handle. Painted the mirror covers at the same time too.
New windscreen washer motor as the old one was seized
New used rack u-joint as the old one had unacceptable amount of play in it. What a scarce part that is.
Oil, coolant, fuel filter, spark plugs.
Tie rod end. Two of them on the same side as I managed to strip the threads on the first replacement.
Got another turn signal stalk. It's from a ph2 though so I need to get around to fixing the old one as I'd like them to match...
Replaced the fuel feed line under the bonnet.
Also, the not so little thing - the result of me not being a thorough used car buyer I overlooked the little fact that the underside in the front is all gone. Had it all rewelded including new chunks of sills on both sides. 180eur for that.
Pretty nice interior though for what it is.
Now for the money shots:
A previous patch attempt just fell off when I poked it after lifting the carpet...
It's all fixed now though. I'll have to make another pass or two with some coating as I've just noticed little iron oxide bastard spots are starting to peek through there. I'll also paint the sills body color once the weather is warm enough and I have the time for it.
Now for the in-car entertainment. When I bought the car it came with some circa 1999 Pioneer headunit and the CD player didn't seem to work so it was limited to radio only, which is pretty crap tbh. So I made an audio amp using a TDA1552 chip, it's 2x22W, feeds off 12V and needs very few extra components. Also it was from an old project of mine so I just had it laying around. Plug in my phone as the sound source and bingo!
Why I don't just buy a 50 buck headunit? Because I'm trying to save money and keep it as unappealing for potential thieves as possible, even though those days seem to have long passed, you never know.
The next step is to make the little OEM steering wheel radio control lever work with this contraption. For Android phones you need to have a resistor of several kiloohms between the 4th(mic) pin and the ground pin in order for the phone to see it as a headset with a mic and thus a 4-pin TRRS jack. Then have the 4th(mic) pin go to ground through different resistors for volume control, so that's no big deal. To skip/back songs, though, you need to double and triple click those two contacts together. I considered doing that with the lever would be a great inconvenience, so we need something to do that for us - a microcontroller! I used an Arduino loaded ATTiny85 and a transistor to control the contacts.
Android reference for audio remote: https://source.android.com/devices/acces...electrical
Programming an ATTiny using Arduino: http://highlowtech.org/?p=1695
Breadboard stage, using the Arduino Nano as a programmer, and in this case a power supply.
The code for it is very simple, basically just the blink sketch several times over. Through trial and error I figured that the minimal ime between the clicks is 100ms for it to be reliable, any shorter than that and it may just play/pause or skip the wrong way etc. 100ms must be what's programmed into the phone, as it's a nice round number. I put a little safety feature that it has to go to neutral position between clicks, so if you hold the lever it doesn't do the routine for as long as you're holding it. You have to release and press it again if you want to skip through more than once.
I might make the whole thing a bit fancier with short click for play/pause, long click for skip back and the like. It seems enough for me atm as it is though so I'm not really bothered.
Code:
int laststate1 = 0;
int laststate2 = 0;
int delaylenght = 100;
void setup() {
pinMode(0, OUTPUT);
pinMode(1, INPUT_PULLUP);
pinMode(2, INPUT_PULLUP);
digitalWrite(0, LOW);
}
void loop() {
//double-click song forward
if(digitalRead(1) == LOW) {
if (laststate1 == 0) {
digitalWrite(0, HIGH);
delay(delaylenght);
digitalWrite(0, LOW);
delay(delaylenght);
digitalWrite(0, HIGH);
delay(delaylenght);
digitalWrite(0, LOW);
}
laststate1 = 1;
} else laststate1 = 0;
//triple-click song back
if(digitalRead(2) == LOW) {
if (laststate2 == 0) {
digitalWrite(0, HIGH);
delay(delaylenght);
digitalWrite(0, LOW);
delay(delaylenght);
digitalWrite(0, HIGH);
delay(delaylenght);
digitalWrite(0, LOW);
delay(delaylenght);
digitalWrite(0, HIGH);
delay(delaylenght);
digitalWrite(0, LOW);
}
laststate2 = 1;
} else laststate2 = 0;
}
Circuit:
I really didn't spend a lot of effort on this. The transistor is just random one I had laying around. The 4.7k base resistor is also random. But hey, it works!
I could've put more effort into transferring the toner onto the board aswell as it didn't turn out too great. Etching PCBs at home is too fine of an art for me... Next time maybe.
Putting everything into a case
Bench testing with a computer PSU and a mock up speaker - all working! Not with the phone in the pic though. It's too old and doesn't have the functions for the thing, but I was taking the pic with mine so I couldn't get it in the shot.
I could've put a proper ISO connector for it but figured it'd be just extra wire. The screw terminal job was already there so I just went with that for now. It all tucks behind the dash nicely and snugly and I patched the HU-hole with a piece of plastic but that's a tad too ghetto. I'll have to figure out something nicer in the future.
Notice the AUX cable coming from under the ashtray.
With the blank space that I now have I'd like to do maybe something similar to what ronj did - a small screen to show various real time parameters like ECT, MAP sensor data and all. Sigh, the extents you have to go to in a pre-OBDII car... The car has bigger issues atm though, so that will have to get sorted first. Since MOT is next week and all...