2010-08-18

Mending Jeans

I bike to work regularly, even during winter. As a result my jeans wear off often, every time in the same place, let's call it "the saddle area". I used to take the jeans back home and ask mum to do it. She would just go to her "work room" power up her good old sewing machine and get it done in no time.


Since we decided last year to buy a sewing machine, I thought I could try and do it myself. It is very easy and hardly noticeable once the patch is made.
You will need a pair of jeans to fix, a jeans patch a bit bigger than the hole (+2cm, 1 inch) and thread.


There's a trick about the thread (thanks mum), use grey or light grey thread. Using blue thread, even if it's the same colour as the jeans will produce a noticeable patch.


Place the patch on the inside of the jeans and secure it with pins, take care to stretch both the jeans and the patch.


Load the top thread with the grey coloured thread (the under carrier is not so important), select a wide zig-zag stitch (5mm width) and reduce the length (advance) to 1 to 2mm (a bit like the bottom right stitch of figure 2 here).
Lock both fabrics under the zig-zag presser foot starting from 2cm/1 inch outside the hole to cover, sew until 2cm/1 inch the hole end. Repeat in reverse.


When you reach the place where you started, move the needle to the top most position, release the feet, move the fabrics 5mm (about the width of the stitch) to the side, press the feet and repeat until the hole is covered.


Here is the patch finished. The good news are it is hardly noticeable, the bad news are, that usually if you do this in one leg, chances are the other leg's fabric will also fail in a few weeks.

2010-07-06

Prototype PCBs with Toner Transfer

I wanted to redo my old Munny project and build a new versatile PCB that had a minimum ATTiny15L system with in circuit programming (ICP). I planned the RGB LED and the temperature sensor to be soldered on the edge of the board, like having solder tags. The rest would be the CPU, the programming connector and the minimum number of components (a few resistors and a capacitor).
Although I've already managed to use gEDA to design and send a PCB for fabrication, I wanted to try going "DIY" and have a faster "turn around" from project to board. The board would also be very small (about 2cm²) the cost of making a production run wouldn't be cost effective.
Before I've used the UV light transfer with very good results, even for double sided boards. This time I wanted something even more "barebones" only the etchant, no other chemicals (like the extra developer in UV photographic method). I found some sites with the reference to Toner Transfer Method. They used either inkjet glossy photo paper, a specific "Press and Peel" paper ending in common "glossy magazine" paper, there's even a nice page at Make: web discussion . I decided to give it a try!
First I designed the board single side only. I started out with 10mils/10mils/0.8mm (10/10 means 10 mils tracks and 10 mils minimum spacing between copper, a 10 mils is 0.01 inch; the last number is a minimum drill), but soon I had problems connecting the ICP with the defined tolerances. I changed to 6/6/0.8mm and finally managed to connect everything and pass the DRC test. The next step is printing.



My printer is a HP laserjet 4L (its old, 300dpi but it works!), it still has some problems that I didn't quite worked out yet. There is some rendering on the edges of the lines that I didn't managed to "clear out", I think it is the REt setting but I didn't managed to disable it with my linux driver (the printer is network connected), this is something I would like to solve. It might be visually more appealing when printing normal graphics, but for this particular purpose it doesn't work! Here's a picture of the zoomed output.
As you can see the horizontal lines (in the photo above, to the printer they're vertical lines) and edges have a "saw tooth" on both edges. As I said before I think it is a rendering/dithering that the printer "self" does to make the lines more eye appealing or it is a misaligned mirror.
I tried out 3 different types of glossy inkjet photo paper from Dutch shops. Bellow the three different papers ready for cutting and ironing to the board.


I obtained the best toner transfer with the HEMA glossy photo paper, not bad for the cheapest of all the options...

The transfer was clear and sharp... all the rendering artifacts appear in the copper. The paper that doesn't show has peeled off easy, the part that is attached is the one you have to scrape.


The first from the left actually when it transferred to the copper the toner transferred fully but in some areas it got stuck to the paper. It might mean that this paper need more ironing time, temperature or pressure (or all of the above)... I might try it again... the one in the far right is the HEMA paper, needs more scraping but the toner sticks to the copper fully.


This is the view of the most troublesome area, two wires going between two pins of the ICP and one track between pads of a SMD resistor, both around 6/7 mils clearance. I had to puncture the centre of the pins because I forgot to set "drill" in the print out and it helps a lot for drill bit centring.
I actually had to separate the track from the SMD left pad, the etchant didn't go through the little spot of paper (visible on the picture above). The picture bellow I removed the toner and performed an electrical test with the multimeter. I also drilled the connector.

After that stage I soldered the components and had my board running after a couple of minutes. Here's the final result. The power connectors below the board have been soldered for testing and programming, I'll be removing these... I'm also planning some tests and improvements to the board's software.
The connector ICP is a 6 pin female because it has a smaller (in height) footprint than the male connector. I'm quite please with the LM35CZ and RGB LED footprints, for such a small projects edge placement is viable and saves board area.
Getting the 6/8 mils was a bit of an over achievement and it is only viable because the board is small and hasn't got many connections, 10/10 mils should be the standard. I also need to see if I can solve the rendering of the printer problem... maybe (God forbid :-) using a Windows driver?
The soldering was done by hand and normal soldering iron, a "next step" would be an SMD-oven.
Tah Dah!

2010-06-05

SBC6120 - Casing (II) and power supply

I finally got my hands on the power supply of a _DEAD_ External Hard Disk that suited the purpose of powering my SBC6120. Before I was using a Compact Flash to IDE adaptor and I only needed a 5V supply but I wanted a "real deal" IDE drive.
My first try was an old drive I had around, a Seagate 89MB... unfortunately another case of R.T.F.M., disks with CHS addressing (cylinder, head, sector) are not supported, only the (relative) recent LBA (logical block addressing) are. Alex gave me a 3GB drive he had "hanging around" somewhere in a box, probably more than enough to hold all the source code ever produced for the PDP-8... It fit the case, just... probably too "just".
I still need to pack inside the case: a switching power supply (LM2575, two big caps, a diode and a fat inductor), the power connector, the IDE ribbon cable, the serial port connection, the power switch and (if possible) one or two front panel indicators (power on and disk activity).


The Case is a Hammond I bought some time ago for this project, but I never found a suitable power supply. Now with the external 12V supply and (this is a forward reference) the toner transfer PCB method, I can build a middle PCB board holding the hard disk, the CPU board, the switcher power supply (12V to 5V) and a power switch. I'm looking for switches like the one above, but I still haven't found a good right-angle-PCB-mounted... I'm looking at some lever switches from C&K, they look the right "age" for a pdp-8 simile. but will see what I can get my hands on...
Space in the box is tight so I still haven't decided where to put the power switch an a power LED, or if I just make some openings in the front panel and extend the LEDs on the board... I'm also looking for some front and back panel design...
There's a lot of mechanical engineering ahead... I love the smell of a challenge in the morning...

2010-05-28

Arduino interface to SD Card

Finally managed to interface to a SDcard to the Arduino. There are several "tutorials" and even libraries written for the Arduino, but my objective was not to use any Arduino library or specific feature (like the integrated SPI port), otherwise porting the code to the mini68k would be more difficult.


I started with this example (this other seems easier) and then started "removing stuff" in order to fit my purposes. I only need the basic initialize, read sectors and write sectors. In order to boot and run CP/M from an SDcard I don't even need to read/write more than a single sector as CP/M reads/writes only one sector, furthermore deblocking (breaking up a 512 byte sector into 128 byte CP/M sectors) is easily managed by most CP/M flavours (CP/M-80,CP/M-86,CP/M-68k, CP/M-Z8000).
I battled with some Arduino functions, I particular serial.print() functions. I'm suspicious that something doesn't quite add up, some of the lines of text that should be printed are skipped for no apparent reason. It could be by the fact that I directly access the port pins (DDRB and PORTB) but since I don't change the serial pins there shouldn't be a problem...
After several tries I managed to write and read a sector of the flash.

The hardware is at its simplest form, it is a basic resistive divisor by 2 for the card inputs CS, SDI and SCK, the SDO output from the card is connected directly to the Arduino input pin.
Pins CD and WP are also connected directly, the card detect(CD) and write protect(WP) switches use a weak pull up feature from the micro. A low voltage drop regulator provides 3.3V to the card.
I used the Sparkfun SDcard adaptor, but since the "freeday disappointment" I promissed never to buy from them until the EURO is >= 2x the US dollar (from that point on I would be stupid, not stubborn). The circuit used is the one of the first example above, except that I didn't bother to have the correct 3.3V input, I decided to go to 2.5V as it is easier to obtain (two equal resistors) and the input tolerance of the SDcard must accept it correctly. Usual (CMOS) input levels are at 60% (2.2V for High or 1) and 30% (for Low or zero) of Vcc (of the card).
Now I only need to port the code to the 68k...