Hao Jie Chan's Kingdom
SD Wing Zero Custom is done! Click here to check it out!

Ad 468 X 60

built of paper.

Saturday, December 12, 2015

Arduino Uninterruptible Power Supply (UPS)

Recently a friend of mine asked me to design a simple Uninterruptible Power Supply for Arduino using some handphone battery ( Li-ion) and handphone charger.

I decided to use a TP4056 charger board to charge the battery, while using a P-MOSFET to control when will the battery provide power to a 5V Step Up Converter.

The schematic shows the 5V from a handphone USB charger feeding a 5V Boost Converter, which powers an Arduino Uno. The 5V will also charge the Li-Ion via TP4056 board. If the USB Supply is gone, the P-MOSFET will be switched on and the Li-Ion battery can power the Boost Converter.

( on second thought, now I am thinking about the usefulness of the P-MOS. I was thinking of switching the battery on and off but now I think it serves no purpose... LOL)

Anyway, the 2 diodes are 1N5158 , I forgot to change it on the schematic. I think the P-MOS can be eliminated because the 5V from the USB would have prevented the battery from supplying power anyway.

This is my end result on a perf board. My friend says that it is working fine, at least until now. (I have no confidence in my design).


p/s :for the improved design, go to http://chanskingdom.blogspot.my/2016/10/arduino-uninterruptible-power-supply.html

Read More »

Thursday, November 12, 2015

Fix a 8Gb Pen Drive

Never in my mind I thought that I would find a FAKE pendrive in my house. Here I am, holding one. My mom bought this like years ago and it broke just weeks after it was purchased. I knew something was wrong but never had the time to dig deeper. (Click on the picture for the actual size photo)

Our Main Guest today!

The gut of the flash drive. I even opened the casing to see the controller code. It was futile.

Today, I was searching for an answer for this. I thought it was just a simple corrupted sector or memory. Googled whole day, tried all sorts of formatting tools, from Windows built-in formatting tool to the HP format tool, but all were unable to complete the formatting. The Windows Formatting says that the disk drive is "Write-Protected", and changing the registry key of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies to 0 did not work at all.The Low Level Format Tool returned Device I/O Error  for Format Error Occurred at Offset 0 and so on for all 8Gb of memory location.

Then, I stumbled across the Chip Genius tool. It shows the chip and vendor information.

This is after I have fixed the drive. Before this it showed  something like "山寨黑盘" which means it might be a fake drive from China. Anyway, nothing can be worse, perhaps I can at least salvage what is left of it.

Google showed me AlcorMP, a software they used to program the controller of the USB disk before selling the disks. This is how they "fake" the memory size of the disk. ( do correct me if I am wrong, I'm not so sure about this myself)

Tried the first one, failed. Second one, failed as well. Turned out I need to find the one which will work with my Firmware. The info is listed as "F/W EF66" as shown in the picture.

Google pointed me to http://flashboot.ru/files/file/53/ , where the translation for the comments showed promising result for my firmware. But before that, I need to make sure AlcorMP recognise my disk.

Following the steps from Formating USB with Manufacturer Tool - USB Drive Format Utilities - reboot.pro , I added my VID and PID for IgnoreVIDPID and VIDPID , which in my particular disk is 00117788 into AlcorMP.ini file.

Run AlcorMP.exe as ADMIN ( this is very important as I could not load the driver without admin access) and this will pop up.

Click Start and it will start to scan for bad sectors and restore the disk to its default value.

Mine actually became 1.4GB only after the process.( verified using H2testw)
I hope this post will be useful for those who struggled to fix a broken or "possible Fake" flash drive. Until the next post, have a good day. :)

Read More »

Friday, October 16, 2015

Introduction to Papercraft

I am taking a English Language course in USM, LSP404. The course requires an Individual Oral Presentation as an assessment. So, I took the opportunity to introduce papercraft, a wonderful hobby rarely known to Malaysians to my friends and lecturer.

I made a Pikachu from Paperpokes ( partly because I wanted to build something. It has been like one year since I used my cutting mat and pen knife) and documented some of the building processes in the slides. The slides should give a good introduction to those who want to start on this hobby but are clueless about the process.

Feel free to leave a comment or email me in case you have any questions.

I hope you enjoy the slides and keep papercrafting!

Read More »

Wednesday, August 26, 2015

Akatsuki Gundam from Dragon Momoko

This Gunpla just arrived yesterday so I'm gonna build my second MG!

Some runner photos

I started with the head unit. Maybe I should have started with body. Turns out I made a lot of mistakes...

See the paint of its right face? I cut off one small piece from its armor. Don't know what was I thinking, rushing I guess...

Then I applied super glue, which bleached the gold colour off .... Now I hate myself...

Tons of mistakes in the head unit, which is the one most focus on, ugh!

A little bit disappointed by my wrong decisions but it's still too early to give up!

See you next time!

Read More »