Friday, November 21, 2008

How to make use of old PC power supply






I have 3 of those old power supply. At least 2 of them still works.Here is how to make use of the thing for power supply for other purposes.

This power supply has 5volts, 3volts, 11 (or 12?) volts and -11volts power. This is nice for electronics projects. For example, some IC's like the DAC requires negative voltage. It is available here without having to buy negative voltage generator.

Best of all, electronics dedicated power supplies costs at least RM100 or usually more. But in this case it is much cheaper. RM50?

The trouble is when you simply hookup this power supply to the 230volt supply,it will not work. Here is the trick that would make it work.

The black wire is ground. Using a multimeter, check each connectors and you'll find at least one wire with 3V and one with 5 V.

Most of the wires are red, black or orange. The other colours are one each.

Using 1kohm resistor, connect the 3V line to the other wires (not the red or black)one by one while monitoring the voltage across the black and redwire. Best to try connect the unique colour wires first to the 3 volt line. When you register 5 volts(or 12volts) across the black and red wires,the power supply unit is ready to go.

In my case, the 3 volt wire is green, and need to be connected to white wire for the power supply to work. Now I am off to do some projects..

Tuesday, November 11, 2008

Racial Relation

Baru-baru ini Negara digegarkan dengan tuntutan untuk kesamarataan antara kaum. Ini diikuti oleh tuntutan balas untuk ketuanan Melayu dan memperthankan perlembagaan Negara. Buat kesekian kalinya artikel 153 perlembagaan itu disentuh banyak pihak. Mujurlah ada Raja-Raja Melayu yang bersuara menegur rakyat agar tidak berlebihan dalam membincangkan isu yang tentunya amat sensitive ini. Peranan Raja yang beginilah yang akan mengangkat martabat institusi raja di Negara ini. Selepas teguran Baginda, nampaknya tiada siapa yang berani menyentuh isu ini lagi.

Namun aku rasa perkara ini perlu terus dibincangkan tetapi secara tertib dan objektif. Aku boleh faham dengan ketidakpuasan hati masyarakat bukan melayu terhadap ‘preferential treatment’ terhadap kaum melayu. Kalau kita lihat generasi baru bukan Melayu mereka bukan sahaja merupakan anak kelahiran Negara ini, tetapi yang entah telah beberapa generasi lahir di sini . Yang mereka tahu inilah satu-satunya tanah tumpah darah mereka. Dan disinilah juga kasih merreka akan tertumpah. Walaupun mungkin ada segilintir yang terlampau kecewa dan mahu berhijrah, tapiaku rasa lebih ramai yang akan setia dengan Negara ini. Sebahagian besarnya tidak pernah pun menjejakkan kaki ke tanah asal nenek moyang mereka itu.

Apabila mereka rasa mereka telah dilayan sebagai rakyat kelas kedua, tentunya ini akan menimbulkan rasa tidak puashati. Namun apakah benar wujud layanan kelas kedua ini? Ini perlu kepada penilaian yang objektif. Apakah falsafah yang mendasari ‘preferential treatment”ini? Kenapakah dasar ini menyebabkan rasa layanan kelas kedua ini wujud? Apakah dasar ini yang perlu dipersalahkan atau perlaksanaannya?

Aku seorang Melayu. Walaupun mungkin ada yang pernah menyangka aku mamak restoran MegahMaju di Nilai ini. Namun aku Melayu.. Sebagai Melayu aku juga ingin supaya bangsa aku mampu bersaing dengan yang lain.Aku juga tidak mahu melihat bangsa aku selamanya bergantung kepada preferential treatment ini. Aku malu kalau jadi melayu yang tidak kompetitif dalam segala bidang. Aku mahu satu hari bangsa Malaysia ini bersaing atas dasar merit. Siapa kuat bekerja dia dapat. Inilah utopia nya. Siapa kuat bekerja dia dapat. Tapi benarkah begitu? Apakah realitinya? Itu nanti kita bincangkan lain kali….. This is me thinking aloud. Kalau ada sesiapa yang membaca dan ingin turut “thinking aloud’ dipersilakan……

Friday, November 7, 2008

Still Alive...!

Man...! It has been 2 years since the last time I tried to write something.

Actually I did complete part of the robot. However, my computer went out of order and I lost all the source codes, pictures and everything. The BASIC STAMP was also damaged, for reasons I couldnot understand. And I had already dismantled the project.

This blog is actually meant as a medium for me to document all my doings. Hence I will try to put something on the robot project as well as other projects. There were also several other projects that I completed during this past years. The robot car, the stroboscope using LEDs, engine rpm counter/display (on laptop), engine lambda reader and water pump (hand operated) using PVC pipes.

First on the robot toy car project.

As I can remember it the following are the items used.
1. BASIC STAMP as the main controller (I don't know the price, maybe a few hundreds ringgits. There is cheaper option, using PIC microcontroller. PIC16F676 would be appropriate for RM9 only - 1k program memory, ADC, 12 IO ports)
2.L293D for motor driver (RM13)
3. light sensitive resistor. I don't know the porper name of this thing.... oh ya photoresistor?
4. resistors (RM0.05each)
5. capacitors(RM0.30 each)
6. breadboard for constructing thecircuit (RM15)
7. The RC car. battery operated. (RM50?)

One of the trouble with the operation was that the motor (DC motor) was quite powerful and draw a lot of current. The battery pack need to be adequate. I remember using 2 separate source of power for the STAMP and the motor. Otherwise the motor would draw so much current that the STAMP stopped working.

The other issue was the turning radius of the car. This made it to lost track of the light easily. In most wheeled robots, the robotcan turn on its axis and face the light. The way I overcame this is by having the car to make very fast three point turns everytime it sense that the light was lighter on one side. It is fun to see it making small three point turns in very rapid movement. Effectively one can see the robot to shake and turn towards the light source.

Unfortunately all the source codes were missing. I will see whether I can salvage the source codes from my old hard disk and post it here.

Next post will describe the toy car, its drive motor and the steering system.