Translate

Thursday 18 August 2016

Citroën C1 (Mk 1), Peugeot 107, Toyota Aygo (Mk 1) (2005-2014) - Changing the dash illumination colour.

Many many moons ago I wrote an article on changing the colour of the dash illumination on the very excellent C1,107 and Aygo cars. It's got lost in the mists of time somewhat, so I'm going to re-create it here, by popular demand! I did this some 6 years ago, so please excuse the rather bad photography (like it's ever been great anyway!!)

Best I add a disclaimer, in addition to the usual one on the right.

Don't try this at home. I will not be held responsible, under any circumstances, if you damage your car. This requires accurate soldering to delicate and tiny components. 

Right, having got that out of the way....

We'll start with the binnacle lighting first...

So, open the bonnet and disconnect the NEGATIVE pole of the battery. Done that? Good....

Close the bonnet and arm yourself with a No.1 and No.2 Philips screwdriver, and a 10mm spanner or socket, a good quality soldering iron, some solder, desoldering braid, decent tweezers, 10 off PLCC-2 type SMD LED's and 50 off 1206 SMD LEDs in the colour of your choice.... oh and a sewing needle (yes, really) and a bit of connector block.

Turn the steering wheel to the right, to reveal one of the binnacle cover screws. Remove it.....













Turn the wheel to the left, and remove the other screw...














After a bit of jiggling, remove the cover....

... to expose 2 10mm bolts....












... and remove the two bolts ...















... gently easy the instrument binnacle forward to allow better access to the wiring, and remove the connectors, starting at the top. Each connector has a little catch. Once the catch is pressed, the connector should come out of it's socket easily...

Don't worry about noting where all the connectors came from, as each one is unique and will only fit in one socket.





Now take the binnacle off, and retire to the workshop/kitchen/dining room table!














Cleanliness is the key here, so go and wash you hands, and if you have any of those nitrile or similar gloves, don a pair now. You don't want to be leaving fingerprints on the inside of your speedo once we've got it apart....











Now, gently push in the two clear plastic catches, as shown here....











And there are two similar catches at the rear of the speedo to unlatch too.













Once these are released, you can lift off the clear cover.













Next wrap a piece of wire or string round the pointer, and gently pull it off.













Now release the black plastic catches holding the surround in place, two shown here, and one on each side...













... and gently un-clip the surround....














.. remove the speedo face...














... and lift out the diffuser...















... remove the four philips screws holding the speedo electronics to the brown back & sockets.... one is a different length. Make note of which one it is!











Remove the speedo electronics from the brown back assembly. This will take some gentle prying to get the socket to release.












And place the back safely out of the way....













Now comes the tricky bit. First off, make yourself a DIY hole clearing tool, with a needle mounted in a piece of connector block..












Get yourself some good quality desoldering braid. Don't be tempted to use one of those nasty spring-loaded pump type desoldering tools. They have an unpleasant habit of removing the solder, along with the tracks on the board, which will be difficult and time consuming to repair. I personally rate Chemtronics braid. It's good stuff....






Now, desolder the 21 pins connecting the odometer and fuel gauge LCD to the board. Take your time. Breaking this would not be good news. Once they are all desoldered, check each pin can wiggle a bit in the hole with the needle, and lift off the while plastic front, along with the LCD. Clean up the holes, by warming the DIY hole clearing tool with the iron, and inserting it into the holes, pushing out any remaining solder. Clean up with the braid, and breathe a sigh of relief.




Now we come to change the LED's themselves.

PLCC-2 LEDs have a small cut out in one corner. This marks the cathode. There is a small arrow printed next to each LED and the cut-out must be at the pointed end of the arrow, as shown in the picture...







Using the desoldering braid, desolder the LEDs ringed in the picture. LEDs ringed in red are the backlight LEDS, and the LED ringed in blue is the illumination for the pointer. You can make them different colours if you wish...

Heating the LEDs for too long with the soldering iron will destroy them, which isn't much of an issue when removing the old orange ones, but you want to be careful when soldering the new ones in place.

Once this is done, carefully reunite the LCD display, still on the white surround with the electronics are resolder it in place. Replace the electronics back into the rear cover, making sure the socket seats home, and replace the 4 philips screws, ensuring the long one goes back in the right hole. Replace the diffuser, and fit the face. When pushing the pointer back on, fit it pointing towards 110 MPH, and once seated move it round to 0.
Replace the black cover and the clear cover. Done.

Ignore this bit if you haven't got a tachometer (rev counter).....

Squeeze the tacho slightly, and grip the front surround. It should pop off easily.














Remove the philips screw in the rear of the tacho, allowing it to be pulled out slightly.













Unclip the black plastic surround and remove the surround and plastic lens in one piece...

Remove the pointer with a piece of wire or string in the same manner as we removed the speedo pointer.

Undo the two screws securing the face to the speedo...






Remove the electronics and face in one piece, disconnect the plug, and remove the two screws.













Replace the two LEDs shown, remembering the arrows...











and reassemble.

Take the binnacle back out to the car and re-fit it.

Good eh??

But we're not done yet!









Radio looks awful in orange now doesn't it? ... and that heater illumination ... ugh! ... and the headlight aim switch ... horrendous!

Let's deal with the radio and heater.










Set the heater fan to the II position, and locate the small gap in the knob underneath. Gently prise it off, using a piece of cardboard to cushion the dash so we don't scratch it.

Remove the screw.









Get a credit card or something (I've got strong finger nails!) behind the cowling, and pull it off. It shouldn't put up much of a fight.












4) Remove the pulgs and sockets from the radio (one white, on black (have little release levers on one side) and the aerial plug (just pulls off)) , and the heated rear window switch, hazard warning switch and (if you're lucky) the air con switch (have release buttons on the top or bottom).








These are green white and black respectively. Cart the whole assembly inside to the operating theatre.














Remove the radio from the dash. Two sprags holding the radio in each side. Two on the top and two on the bottom.












This requires use of 14 fingers, or some choice expletives, or both.












Put the cowel to one side, and remove the front from the radio. Two small philips screws each side, and one clip each side, two on the top and bottom.












12 fingers only required this time, also fewer expletives.












Remove 8 screws from the display PCB and remove. It will unplug from the push button sub-panel, leaving that in place.













Remove 4 screws from sub panel and remove.












Right. Here are the LEDs we're going to change. They are 1206 SMD LEDs, you'll need 50 of them (you'll have a few left over)





























1206 LEDs are tiny!










There are 17 on the sub panel and 27 on the display PCB. I know I told you to get 50 , but you will lose some ;) And anyway , it's a minimum order quantity :D

Remove a new diode from it's packaging to examine it. Marked on it somewhere is it's polarity. The mark will indicate the cathode. In the case of my diodes, there was a green mark on the underside. This pointed to the cathode.








The cathode of the diode on the PCB is marked with a continuous line around the end of the diode. In the case of the picture below, it's to the right. All of the diodes we are changing have there cathode to the right, or to the top if they are vertically orientated.









Desolder the first diode (I actually desoldered the whole lot, it saves time, but if you're new to this, take your time). Use the solder wick to suck off the solder, then you should find a slight push with the iron tip, will remove the diode from it's lands. Use a nice fat tip for this job. Clean up with solder wick. Add a touch of fresh solder onto each land. The PCB's in this radio are really well made and will tolerate quite some abuse before the print becomes damaged.





Grab your new diode in some tweezers, making sure you know which end is the cathode. Line the new diode up to it's solder lands, and just melt the solder with the small iron, so as to solder the one end of the diode in place. Remove the tweezers and melt the solder on the other end.





Repeat for the other 16 diodes on this board.


Put the board to one side , it's time to tackle the display board .... "What's so tricky And?" I hear you say .. it looks similar to the other PCB .. unfortunately there are 12 diodes UNDER the LCD crystal display, so it's got to come out.

Twist the 4 tags holding the display screening can to the board, and desolder the two points.













Desolder the two multipin connectors to the display, just underneath the CD slot. TAKE YOUR TIME. The display crystal is very fragile. One crack, and it's game over. I chose to flood the connectors with solder and run the iron up and down the whole length until every joint was wet, the display will then gently come out. Solder wick is another option. Once the display is out , put it somewhere safe.

Using the hole clearing tool (OK , it's a pin and a bit of connector block) and the solder braid, clean up the connectors.

Change the diodes in the same manner as you did on the first board.

CAREFULLY re-fit the display. Don't forget to twist the tags and solder the can.







If you have a bench supply, plug the boards in and power up to check it all lights up nicely. You'll need to connect +12 Permanent, and +12 lights.

Damn, that looks good....








Right. That AUX socket on the front... what a pain. Lead from your phone dangling all over the place looking untidy... Fancy moving it somewhere sensible? Read on.....

Move back to the sub-board, and looking at the aux connector, cut the track as shown...

It's uncut here...











...and after the incision is made. This is to fool the electronics into thinking there is a plug in the socket.












Turn the PCB over, and connect a piece of twin and screen cable to the points as shown.












Right channel is red, left black and the screen is ground.



Replace the sub-panel, and the main display PCB, and carefully route your new cable out of the front... it's tight , but mine fitted.

Refit the radio in the dash, again routing the new cable. I chose to route mine to the rear of the clutter box...  You'll need to solder a 3.5mm stereo jack to the end, tip is left, ring is right, and sleeve is ground.

OK... it's going well... now the heater... You can buy replacement LED lamps for the bulbs in there now. I chose to use a couple of ordinary 5mm blue LEDs, and solder them in.. It's easier if you get the right LED bulbs.

I cut the tops of the LEDs in an attempt to diffuse the light a bit, otherwise you'll end up with two spots. Not a good look. Note the 780 ohm resistors.






Undo the panel mounting screws...













 ...both of them...














...and hinge the panel forward. You will see the old bulbs in there holders, just pull 'em out, and fit the new ones or solder in your LEDs. If they don't light, you may have them in the wrong way round. If the light is still focussing as two spots, just bend the LEDs so they face away from the front. This is easier if you have soldered separate LEDs, as I did. Once it's nice and even, screw the panel back in place, and refit the radio... Give it a try.... Nice....





... except for the headlamp aim switch ... still orange... nope, it'll have to go....




Remove the philips screw holding the outer dash on....













Pull the dash down, and pop the switch out, un-plug it and back to the operating theatre....



























Pull off the cover.....














Cut off the orange LED.













... and solder in a PLCC-2 diode in it's place, with the cut-off corner facing the outside edge.

Push the cover back on, and refit the switch and dash.....








There. It's done. In all it's blueness....

... or pink if you prefer ;)












Thanks to Hanna for the pink pic. White looks good too!

Friday 12 August 2016

Arduino Fast GPS datalogger - with switchable units, configuration of U-blox GPS in runtime, and KML. The International Version !!

Well, here it is folks.

Ryan's Dad lives in Australia, and Ryan wanted to make a version of the fast GPS datalogger that his dad could use on is boat.

After sorting out the problems Ryan had with his U-blox GPS module here, we set about a few mods.

Firstly, was to be able to select the units of speed selectable when the unit first starts up. The sketch now looks for a button, connected between A3 and ground. This allows the unit to be set for KPH (Kilometres per hour), KTS (knots) and MPH (Miles per hour). This is selected by the new void configureUnits. It times out after a couple of seconds. The configureUnits void sets a flag, which selects which type of data is written to the Speed variable, and written to both the display and the card.

 Here's Ryan's version, bread-boarded and tested on the bench.










Here's the new schematic, showing the addition of the "Select units" switch, and the extra connection to the GPS module to allow us to set the Ublox receiver's configuration.



And, of course, the new code:


Thursday 4 August 2016

Automatic configuration of ublox M6 GPS receivers for Arduino during runtime.

My good friend Ryan wants to make a GPS tracker with KML, as detailed on this very website.

He wants to make a couple of revisions, which I'll publish here later...

But, he runs into a problem.

It doesn't work....

After some careful examination of the receiver, and checking the configuration with the U-blox U-center application, it becomes apparent that the receiver isn't storing the new configuration (57,600 baud serial, and 200mS update rate) after a power cycle... It defaults to 9,600 baud and a rate of 1s.

... damn it, a faulty receiver. So another is tried. Same results...

So, presumably the receivers aren't faulty....

This is one of the guilty receivers....

.... notice anything??







Here's one of mine....

... and there's the difference. See where the "faulty" receiver has a white circle marked with a 2??  Mine has a battery fitted. After a quick look at the datasheet for the U-blox chip, this is a RAM back-up battery. The configuration settings are stored in RAM. On Ryan's receiver these are lost as soon as the supply is removed.




Ryan looked into getting the correct battery and fitting it, but it's got one helluva specification, and was about £7... which is a touch expensive considering the GPS module was £9!

How about sending the configuration data from the sketch every time it starts up?

Why not....

I did a few experiments with two FTDI boards connected to a receiver...

In this picture you can see I've connected the lower FTDI to the receiver, RX to TX, TX to RX. This FTDI is used to communicate to the U-Center application. The top FTDI is used to "sniff" the serial data on the TX line on the first FTDI. Only it's ground and the RX pin are connected. This is so I can run a terminal program and grab the configuration data when I click "send" on the u-center application.

After a bit of buggering around with Real term (download from here.) I grabbed the data, in hex, being sent to the receiver from u-center.

This is what it looks like:

Set to 200mS rate

B5 62 06 08 06 00 C8 00 01 00 01 00 DE 6A B5 62 06 08 00 00 0E 30
 
set 57,600 baudrate

B5 62 06 00 14 00 01 00 00 00 D0 08 00 00 00 E1 00 00 07 00 02 00 00 00
00 00 DD C3 B5 62 06 00 01 00 01 08 22

So, now we just need to send that each time we power up...

You'll need to add a wire from the Arduino's TX pin to the receiver's RX pin, so the receiver can receive the configuration commands.

Here's the code snippet, you'll just need to add it in the void setup ()




.... and so on. I'll post up the whole thing , and the modifications we made to Ryan's tracker soon!