Archive for July, 2005

Google kicked me out

Sunday, July 31st, 2005

Three days ago, I noticed that mine non commercial web paged didn’t have any rank. One month ago the ranks was 5. Now it is 0. I entered “site:” command in google search and didn’t received any answer. I checked more and discovered that whole domain is deleted from google. There were more than thousand pages listed in google- from selfmade hardware for amiga computer to Lithuanian fauna lovers pages. And this blog is deleted too.

Google banned me
I am deleted!

It is pity, as this domain was not spoiled with trash site and is my oldest work. In fact this domain can be older than google itself. I wrote letter to google, but received only robot mail that they are not responsible for anything. In other words they said “go and fuck yourself”.

Let’s wait few days…

Read telephone ISO cards

Tuesday, July 19th, 2005

When I was using my old computer I wrote software to read ISO 7816 (synchronous) telephone cards. The software was for very old and very nice Amiga computer. 10 or more years passed and I rewrote software for very big, very powerful computer running Windows XP. This software is based on older and smaller software. In fact, it is same program with added card reading and decoding unit. To use software you need Microsoft Visual Basic runtime. Download ISO card reader software and extract it. Start the only executable file. Connect the card to LPT1 port.

ISO 7816 card
The ISO card used in Kaunas as parking payment card

The hardware is very simple. No need any other electronic components- the software is only reading from the card. So data pin is only for reading.

Card connection diagram
Only 3 data lines are used (RST, CLK, I/o). And ground line (GND). Use any external power supply for 5V (Vcc). Or connect the line to USB or joystick port. All other pins are unused.

Start the software and you must see such image:
Card reader interface

The left side is the same as in older program- it is port settings. If you connect to LPT1 port- do not change anything. The right side is card reader part. In the field “bits to read” you can enter how many bits to read from the card. Usually it is 128 bits. Older cards used 64. You can enter here any reasonable amount of bits. The buttons “Read” and “Reset” are self explanatory. You must reset card to read it from the beginning. Or just enter 8 bits and press “Read” button to read card by byte. The “Binary data buffer” field is raw data read from card- you must see string of zeros and ones here. If there is no card, you must see lots of ones. The visible field is smaller, but you can point mouse and select more. And copy to your other software. Or even you can enter your own data. Be careful, the program is not fool proof- I don’t know how it will behave is data will be invalid. The next field is “hex decoded buffer”. Here you can see the binary data decoded to more readable HEX. You can copy the text from here.

Connection diagram and printer pins to use is displayed in program body.

Software is inspired by historical article extracted from Google cache.

Using LPT port as logical scanner and tester

Friday, July 15th, 2005

Sometime you need to connect some device to computer and check how it works. It is possible to use printer port for digital scanner and logical analyzer. If using standard print port (SPP) there is 8 output lines and 5 input lines. If using enhanced printer ports all data lines are multidirectional. You can read and write to them. In old operating systems it was very easy to program port. Just access &H378-&H37F port (for LPT2 278-27F) in any program and you can read information. But after invention of protected memory, direct communication with hardware is impossible. So if you have Windows 2K or Windows XP you must use special drivers to do simple jobs. I needed to change some values and has written small program in MS VB. To run it you must have Microsoft visual basic runtime.

Port tool is very simple software. Start it and look to the picture:
Port tool

Just press on left column to change value on data pins (pin2…pin9) and read data from control pins. By default, program reads from LPT1. To use any other port, just enter new value is fields below. The program is not foolproof- you can enter any value and change any port. So, be careful.

Power Saving lamp schematics

Wednesday, July 13th, 2005

As mentioned in previous post, I am examining my energy saving lamps. I am still reverse engineering the schematics of GE lamp. But I found in internet some schematics that looks like real schematics of chinese made lamp.

Power Saving lamp schematics
May contain errors

Few words about the schematics. Rectifier B1 and capacitor C4 is standard. Just making DC from mains AC. C4 is about 400V and 10mkf. The energy for the lamp is stored in L1 inductor, while transformer is used to crate auto-generating generator. Still don’t understand the regulating part of this device.

PTC resistor is used to start the lamp.

In GE lamp the transformer is only with two windings. They use N and P channel mosfets, so they can connect them in parallel.

Blowing capacitors in mainboard

Tuesday, July 12th, 2005

Your computer worked for few years and suddenly it reboots in random time moments. And one day you’ll don’t start it. What is the problem? Maybe it is the capacitor problems? Open computer case and examine the caps (Aluminium cylinders with plastic coating. Aluminum capacitors are relatively large compared to other board mounted components, and in the factories are installed by hand.) on the mainboard. If the top or bottom of the capacitor is bulged or even open, or you can see that something was leaking from it- you found the problem. Why this happened? Because the Chinese manufacturers used cheap capacitors instead of low E.S.R. capacitors that are designed for switching mode regulated power circuits.

Bad cap
Blown and Leaking Motherboard Capacitors

The caps are typically 1000 … 2500 mkf x 6.3V. If the problem is detected in early stage (when random computer crashed appeared) you can fix it. If the computer didn’t start, there maybe be more serious problems like bad mosfet or even blown up CPU.

You can ask: Can I attempt to repair the board myself ? The answer: If you have considerable soldering skills and are up to date on multilayer “through hole” soldering techniques, Yes!

How to change the caps? Not very big problem. You’ll need few instruments- “powerful” soldering iron (40…60W), new caps and some solder wire.

First check the mainboard and count all caps. You need to replace all caps to make the board run for a while. Go to you radio components shop (radio shack) and buy same capacitors. Only take note to the distance between pins. Also ask the seller for low E.S.R. capacitors that are designed for switching mode regulated power circuits. Don’t take any other capacitor- they will not work or even blow in few minutes. They can kill your CPU!

Make some place with ESD protection for your experiments. If your clothes can make sparks, don’t ever think about repairing your computer.

Heat the leg of capacitor and lift, move it to side for few millimeters. When heat other leg. And in this way, step by step, you’ll remove the cap. Do not use the force, or you can damage the multilayer PCB board. Note the position of the capacitor- they are polarized devices. Usually there is mark on PCB silk screen how the cap must be installed.

Now when cap is removed, clean the holes. Just heat and use special suction device sold in same shop or blow some air to the hole. Or at last, use some toothpick to clean the hole.

Insert new caps and solder them. Trim the wires.

When all caps are replaced test your mainboard. If you are in luck, it will work.

Energy saving lamp

Friday, July 1st, 2005

Everybody know that interesting energy saving lamps. It uses regular socket, but looks like fluorescent bulbs. They consumes less power, but produces more light. So called “Watt equivalents”. These bulbs use fewer watts than a regular incandescent bulb while producing the same intensity of light, in most cases. Because most people are familiar with the watts for regular incandescent bulbs, we list the incandescent wattage’s you’re used to buying (like 60 or 100 watts). That way, if you want the light intensity of a 100-watt bulb, you don’t have to figure out which energy saving bulb to buy.

What is inside this lamp. In the base there is small PCB with electronic ballast. The lamp itself is regular tubular fluorescent bulb shaped in special way.
GE energy saving lamp

The ballast of GE lamp is with mosfets: IRFR310 and SFR9310, while other lamp made in China is with regular transistors.
GE energy saving lamp PCB

I’ll try to reverse engineer the electronic ballast schematics. There may be error in it.