PICAXE & Pi

I now have a working programme for the PICAXE which monitors the logic level of GPIO14 (TXD0, physical pin 8) on the Raspberry Pi, amongst other things. Building a test model up on breadboard with a PICAXE 14M2, I included a power-off button (this works alongside the previously mentioned Python script), a reset button, and the control circuit for the relay. And the AA-cell-eating relay! There are of course solid-state relays available, but I’m switching UK mains which is around 240 V rms (should be 230, but it isn’t) and I want it to be OFF off. Completely and absolutely switched the chuff off, with a nice big air-gap between the contacts!
I also like the old-fashioned click of the relay 🙂

Advertisements

The Clever Python Code (not mine!)

I have no intention of trying to reinvent a perfectly good wheel.
Also, I haven’t yet learned to code in Python — and I don’t class myself as much of a coder anyway!

This is the code with excellent tutorial that I plan to put into my Raspberry Pi:

http://raspi.tv/2013/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio

Skoda Octavia Door Courtesy Light Switch

Dscf2470
01a – Pop the mirror control console out.

Dscf2471

01b

Dscf2525

02a – Remove the door panel retaining screw from behind the interior door-release handle.

Dscf2473

02b – The door panel retaining screw from behind the interior door-release handle.

Dscf2468

04a – Remove this piece from under the handle before attempting to remove the window control console. The protrusions lock the console into the frame.

Dscf2467

04b – Window control console removed by brute force and ignorance…

Dscf2469

04c – Broken component due to previous procedure!

Dscf2465

04d – Broken frame (right hand side) due to the previous procedure.

Dscf2531

04e – Overview of driver’s door handle and window control console location. You can see the green clips that hold the console in place, along with the (broken) bar where the handle is. The black electrical tape is attached to the wiring to aid retrieval during reassembly.

Dscf2474

20 – Overview of driver’s door with panel removed. Note that the window is partially opened, and secured (just in case) with gaffer tape.

Dscf2475

21

Dscf2478

23 – Note the lock button and rod.

Dscf2480

24b – The end of the lock-button rod being unclipped from the lock mechanism.

Dscf2485

25 – Removing the (key-operated) barrel lock was a pig. The metal peg you can see at the bottom of the aperture rotates round on a cam, holding the barrel in place.

Dscf2482

26a – One of these screws operates the cam which holds the barrel in place. I ended up drilling a larger access hole to this screw as my bit driver was just too broad..!

Dscf2491

26c – The end of the cable that the exterior door handle pulls to operate the door-lock mechanism

Dscf2524

27a – The door-handle cable preventing the lock assembly from being removed.

Dscf2522

27b – The mechanism-end of the cable to the external door-release handle.

Dscf2521

27c – The connector which you probably can’t see yet, looks like this.

Dscf2518

27d – Removing the assembly now that the cable is free.

Dscf2507

28 – To undo the assmebly requires holding one of the sprung levers out of the way.

Dscf2514

29 – Separating the two assemblies.

Dscf2492

30a – Note where all the parts sit — Take photos!!

Dscf2493

30b

Dscf2495

30c – The offending solder-joints (by the connector) causing the problem.

Dscf2499

30d – That bush on the back-end of the motor had me foxed for ages when it fell off. Fortunately, I had taken a photograph..!

Dscf2508

31a – When re-assembling, watch out that this fork meets up with the corresponding lever in the next photo.

Dscf2509

31b – This lever needs to marry-up with the fork in the previous photo. This caused me to have to repeat EVERYTHING up to this stage again when the door wouldn’t lock!!!

Dscf2516

32a – Checking the whole system works correctly.

Dscf2517

32b – Push the latch (as if the door is closed) then pull the door-handle cable to test the lock.

Dscf2527

33 – Electrical tape used for retrieval of cables etc. Do this before presenting the panel back up to the door.

Skoda Octavia Door Courtesy Light Switch

01a – Pop the mirror control console out.

Skoda door courtesy switch

Dscf2471

01b
Skoda door courtesy switch

Dscf2525

02a – Remove the door panel retaining screw from behind the interior door-release handle.

Skoda door courtesy switch

Dscf2473

02b – The door panel retaining screw from behind the interior door-release handle.
Skoda door courtesy switch

Dscf2468

04a – Remove this piece from under the handle before attempting to remove the window control console. The protrusions lock the console into the frame.
Skoda door courtesy switch

Dscf2467

04b – Window control console removed by brute force and ignorance…
Skoda door courtesy switch

Dscf2469

04c – Broken component due to previous procedure!
Skoda door courtesy switch

Dscf2465

04d – Broken frame (right hand side) due to the previous procedure.
Skoda door courtesy switch

Dscf2531

04e – Overview of driver’s door handle and window control console location. You can see the green clips that hold the console in place, along with the (broken) bar where the handle is. The black electrical tape is attached to the wiring to aid retrieval during reassembly.
Skoda door courtesy switch

Dscf2474

20 – Overview of driver’s door with panel removed. Note that the window is partially opened, and secured (just in case) with gaffer tape.
Skoda door courtesy switch

Dscf2475

21
Skoda door courtesy switch

Dscf2478

23 – Note the lock button and rod.
Skoda door courtesy switch

Dscf2480

24b – The end of the lock-button rod being unclipped from the lock mechanism.
Skoda door courtesy switch

Dscf2485

25 – Removing the (key-operated) barrel lock was a pig. The metal peg you can see at the bottom of the aperture rotates round on a cam, holding the barrel in place.
Skoda door courtesy switch

Dscf2482

26a – One of these screws operates the cam which holds the barrel in place. I ended up drilling a larger access hole to this screw as my bit driver was just too broad..!
Skoda door courtesy switch

Dscf2491

26c – The end of the cable that the exterior door handle pulls to operate the door-lock mechanism
Skoda door courtesy switch

Dscf2524

27a – The door-handle cable preventing the lock assembly from being removed.
Skoda door courtesy switch

Dscf2522

27b – The mechanism-end of the cable to the external door-release handle.
Skoda door courtesy switch

Dscf2521

27c – The connector which you probably can’t see yet, looks like this.
Skoda door courtesy switch

Dscf2518

27d – Removing the assembly now that the cable is free.
Skoda door courtesy switch

Dscf2507

28 – To undo the assmebly requires holding one of the sprung levers out of the way.
Skoda door courtesy switch

Dscf2514

29 – Separating the two assemblies.
Skoda door courtesy switch

Dscf2492

30a – Note where all the parts sit — Take photos!!
Skoda door courtesy switch

Dscf2493

30b
Skoda door courtesy switch

Dscf2495

30c – The offending solder-joints (by the connector) causing the problem.
Skoda door courtesy switch

Dscf2499

30d – That bush on the back-end of the motor had me foxed for ages when it fell off. Fortunately, I had taken a photograph..!
Skoda door courtesy switch

Dscf2508

31a – When re-assembling, watch out that this fork meets up with the corresponding lever in the next photo.
Skoda door courtesy switch

Dscf2509

31b – This lever needs to marry-up with the fork in the previous photo. This caused me to have to repeat EVERYTHING up to this stage again when the door wouldn’t lock!!!
Skoda door courtesy switch

Dscf2516

32a – Checking the whole system works correctly.
Skoda door courtesy switch

Dscf2517

32b – Push the latch (as if the door is closed) then pull the door-handle cable to test the lock.
Skoda door courtesy switch

Dscf2527

33 – Electrical tape used for retrieval of cables etc. Do this before presenting the panel back up to the door.
Skoda door courtesy switch

Dscf2494

DSCF2494
Skoda door courtesy switch

Dscf2497

DSCF2497
Skoda door courtesy switch

Dscf2498

DSCF2498
Skoda door courtesy switch

Dscf2500

DSCF2500
Skoda door courtesy switch

Dscf2501

DSCF2501
Skoda door courtesy switch

Dscf2512

DSCF2512
Skoda door courtesy switch

Dscf2513

DSCF2513
Skoda door courtesy switch

Dscf2519

DSCF2519
Skoda door courtesy switch

Dscf2520

DSCF2520
Skoda door courtesy switch

Dscf2523

DSCF2523
Skoda door courtesy switch