Thursday, December 11, 2008

It's NOT my birthday

When I say I'm gonna buy cake, why people always ask me "Whose birthday???"
I just wanna eat cake. That's it!

This is vanilla baby cake from 7-11, 52 BHT.




[See all photos]

Tuesday, December 2, 2008

Cold & Cool!

Live from Fang, Chiang Mai.

Sunday, November 16, 2008

OOTOYA - A Japanese Restaurant

Tonight I had a dinner at Ootoya Esplanad, a Japanese restaurant.


They cooked using charcoal.


Ice green tea. Very similar to green tea in Japan.


Hot green tea.


Katsudon pig with rice, 200 BHT.
Served with bottle gourd soup, pickle cucumber, and Miso soup.
I was too full to had another ice-cream. :'(


Pickle cucumber. Not too sour.


PS. All photos, except the brochures, were taken by hTC Touch Diamond Pocket PC.

[See all photos]

Friday, November 7, 2008

Low Voltage Setting for PIC microcontroller

My Slave Flash didn't fire with camera's flash, don't know why.
So I developed a new flash controller using PIC microcontroller.

But the problem is,
PIC 16F628A will work on at least 4.3 volt of power supply.
2 cells of rechargable battery can only provide up to 2.4 volt.
After asking on Pantip's webboard, I got the answer from Professor.
I should tried setting Brown out reset=Disable, and it works!!!
It works even at 1.7 volt. :D

To set Brown out reset=Disable in Mikroelektronika mikroC,
Click on Project -> Edit Project, then place checkmark on BOREN_OFF.
If you don't use crystal higher than 4 MHz, you can remove checkmark on HS_OSC,
and place checkmark on XT_OSC to reduce power comsumption.

Wednesday, November 5, 2008

Panasonic DMC-FZ18 1.05 & 1.08 Firmware

I bought Panasonic DMC-FZ18 in the middle of 2008.
It's 1.04 firmware at first.
Then I upgraded to 1.05, and now it's 1.08. No problem found yet.

*** Warning!!! ***
You MUST check your current firmware version before upgrading.
- If it's newer or the same as here, don't upgrade.
- If it's older, then it's up to you.



Firmware version checking
http://regex.info/exif.cgi
Take any photo at the smallest size. Then upload to this website.
You'll see your camera's firmware version.


Blue Band testing
http://fz18.ruudabeln.nl/blueband.htm
Most FZ18 cameras sold before June 2008 have the Blue Band problem.
Only Panasonic service center can fix it.


Panasonic DMC-FZ18 firmware 1.0.5
http://rapidshare.com/files/160871066/fz18_firmware1_05.rar
Upgrading procedure is included.


Panasonic DMC-FZ18 firmware 1.0.8
http://rapidshare.com/files/160873300/fz18_firmware1_08.rar
Upgrading procedure is included.


WARNING! - DO AS YOUR OWN RISK!!!


***** Firmware_History *****

<Ver 1.08>
* Improved horizontal noise, in starry sky scene mode / manual exposure mode.
(The noise may appear when shutter speed is set to around 15 sec. by the camera.)

<Ver 1.07>
* Improved blue band may appear on a picture taken slightly and
need three components change on the MAIN PCB.

<Ver 1.06>
* Improved detecting speed faster for the face detection.
* Improved AWB function.
* Improved the date information may not correctly printed (PictBridge).

<Ver 1.05>
* Improved detecting time faster for the face detection.
* Improved an over ISO sensitivity gain.
* Improved out of focus at 1m, in the tele-macro mode.


*** If you see a yellow "!" instead of Lumix logo when turning off ***


After finishing the procedure, when you turn off the camera a yellow "!" insted of the lumix logo will appear. It is dued to the world factory setting to be not setted. It's not vital for the camera functionality but is "noisy" for me :P

To remove it do the following and BE CAREFUL NOT TO SELECT NONE(JAPAN) or (P)NORTH AMERICA settings (when asked) because this change will not be reversible, even with a new firmware update ! (your camera will be JAPAN or NORTH AMERICA FOR EVER !). You will understand it reading on.

BACKUP ANY PICs FROM THE CAMERA INTERNAL MEMORY OR YOU WILL LOOSE IT !

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

• Step 1. The temporary cancellation of initial setting:
Set the mode dial to “[ P ]”.
While keep pressing [ AF macro/Focus switch ] button and “[ Upper arrow Cursor ] button” simultaneously, turn the Power on.
• Step 2. The cancellation of initial setting:
Set the mode dial to “[ Playback ]”.
Press [ AF macro/Focus switch ] button and “[ Upper arrow Cursor ] button” simultaneously, then turn the Power off.
• Step 3. Turn the Power on:
Set the mode dial to “[ P ]”, and then turn the Power on.
• Step 4. Display the INITIAL SETTING:
While keep pressing [ MENU ] and “[ Right arrow Cursor ] button” simultaneously, turn the Power off.

The camera WILL NOT SHUT OFF and a selection menu will appear.
BE CAREFUL HERE, DO NOT SELECT NONE(JAPAN) OR P(NORTH AMERICA) OTHERWISE YOU WILL NOT BE ABLE TO CHANGE IT IN THE FUTURE !

The selection menu is made of 3 screens, choose the right option for your country following this list:

a) DMC-FZ18 (Japan domestic model) NTSC Japanese Year/Month/Date (DO NOT USE THIS ONE unless you have a japanese model)
b) DMC-FZ1P/PC/PL NTSC English Month/Date/Year (DO NOT USE THIS ONE unless you have an American model)
c) DMC-FZ18EB/EG/E/GC/GN/SG PAL English Date/Month/Year
d) DMC-FZ18EF PAL French Date/Month/Year
d) DMC-FZ18EE PAL Russian Date/Month/Year
e) DMC-FZ18GK PAL Chinese (simplified) Year/Month/Date
h) DMC-FZ18GT NTSC Chinese (traditional) Year/Month/Date
h) DMC-FZ18GD NTSC Korean Year/Month/Date

You can know which is the one for your camera looking for the following logo letters under the camera plastic case :

VCI = None(Japan) model
FC UL SA = P/PC models
V C E dve = EB/EF/EG/E/GN models
PCT = EE model
full model number (with suffix) = GD/GK/GT models
none of the above = PL/GC/SG models

I have an european model and I have selected the EB model without any problem !

That's all ! Other firmware versions are welcome !

Credit: http://www.flickr.com/groups/panasoniclumixdmcfz18/discuss/72157603940934243/

Friday, October 24, 2008

Mute System Volume on Shutting Down

1. Download NirCmd,then extract to C:\Program Files\NirCmd


2. Click Start -> Run, then type gpedit.msc


3. Go to Computer Configuration -> Windows Settings -> Scripts (Startup/Shutdown), then double click on Shutdown


4. Click Add button, type C:\Program Files\NirCmd\nircmd.exe into Script Name.
And type mutesysvolume 1 into Script Parameters.
Click OK and close the Group Policy window.


To unmute system volume, click on Volume at System Tray, then uncheck the Mute.
Or you can also press a Mute/Unmute function key on your laptop.

Thursday, October 16, 2008

Mini Pre-microphone

Have you ever tried to use dynamic microphone with PC?
If you have, you'll know that it won't work.
So a microphone amplifier is needed.
And I've found one at Baanmooh, it's 200 BHT, very small.
The sensitivity can be adjusted.
It can operate at 0.9 Volt 0.8 mA.
If you use a 1.5 Volt 800 mAh button cell battery,
it'll last for 1000 hours, or 41 days!!!












[See all photos]

Tuesday, October 7, 2008

Power Amp Class-D

Today I got a power amp from NPE.
It's Class-D Power Amp 20W, 665 BHT



20 WATTS CLASS D
Specifications
1. 20W at 8 ohms 16 Vcc
2. No Heatsink
3. Short Circuit Protection
4. Vcc 9-18 V
5. Imax 1.3 A at Po 20 W
6. Shutdown 1 uA

Can't believe that it requires no heat sink.
I used to do 2W power amp, it's very hot and have to use heat sink.
And also can't believe that it requires only 1.5A transformer.
Most 30W power amp requires 5-6A transformer.

But when I tested it to drive a subwoofer speaker, powered by very cheap 1A transformer.
It's soooo amazing!!!
After continuous using about 4 hours, no heat generated at all. Like it's not operating.
This very cheap 1A transformer is not enought to supply the AA battery charger.
But this power amp powered by that transformer can shake my door!

ClassEfficiency
A25% (theoretical)
ABless than 78.5% (theoretical)
D80-95% (practical)
(Credit http://en.wikipedia.org/wiki/Electronic_amplifier)

[Sat 11 Oct 2008]
Finally, I put my power amp class-D in an (antiquated) box.
Althought it's looked uninterested, but it can shake the room, no heat generated.





If you want a subwoofer filter, try this. Subwoofer Filter

[ดูรูปภาพทั้งหมด]

Tuesday, September 30, 2008

Watch blocked YouTube video

Sorry. This post was not available in English.
คลิกที่ เพื่ออ่านบทความเป็นภาษาไทย

Monday, September 29, 2008

Digital Clamp Meter

I got this stuff from Baanmooh (again) a few days ago.
Digital Clamp Meter, 350 BHT.
- Contactless electrical power consumption measurement
- Digital volt/ohm meter
- Continuous measurement with sound alert

Let's do some test now.
Then you will know that you should leave it plugged-in to avoid spark,
or should un-plug it to save energy cost.

Electrical EquipmentหPower consumption (mA)
Home theater 600 Watts (stand by)0
Home theater 600 Watts (booting)120
Home theater 600 Watts (running)140-150
Lamp 20 Watts70
HTC Touch Diamond charger (not charging)0
Nokia charger (charging)0
Adapter 9 Volt 1 Amp (Amorn)0
Hatari fan (speed 1)140
Hatari fan (speed 2)160
Hatari fan (speed 3)210
LCD Dell 19" (off)30
LCD Dell 19" (on, black picture)150
LCD Dell 19" (on, white picture)160
PC (2 months) (off)0
PC (2 months) (on)39-40
Laptop Dell 12" (off)0
Laptop Dell 12" (on, light load)100-120
Laptop Dell 12" (on, heavy load)150-180
Printer Lexmark All-in-One (off)20
Printer Lexmark All-in-One (on)20
Printer Lexmark All-in-One (Scanning)20-30
Printer Lexmark All-in-One (Printing)50-70
PS. "0" means unable to measure (less than 10 mA).

Oh God! LCD monitor and printer always consume power eventhough they are turned off. (=_=")
They should be added some "real" switchs.







[See all photos]

Thursday, September 25, 2008

Modify Laptop's SD Card Reader

Last night I have modified my laptop (Dell Inspiron 710m)
- Change SD card reader
- Fix DVD drive connector
- Fix keyboard light
- Apply CPU Silicone

I decided to change SD card reader because the old one cannot read SD card larger than 2GB (so funny).
And I've found a very cheap card reader, only 180 BHT.
It can read almost every cards, except Compact Flash card.
It can also read SDHC (SD High Capacity) too.
I used to add USB hub, so I still have 2 USB ports available.
I did't dare to remove the old SD card reader chip, only SD card slot was removed.
Now I still have 1 USB port available.
Maybe I'll add a small webcam, or 12" touch panel. ;-)
















[See all photos]

Onkyo HT-S3100

After looking for almost 2 years, finally I bought it.
Onkyo HT-S3100, 11800 BHT

It's a digital amplifier from Japan.
Just plug the power cord, connect all speaker cables, and S/PDIF data cable.
No more messy cable. Better sound quality.
It can also transform stereo signal into DTS NEO 6, better than Dolby Pro Logic II (I think).
Many functions are available. Also has a red lamp on remote control.
The sound quality is much better than Sony Home Theater,
but worse than harman/kardon. Maybe the system hasn't burned yet.

Tips
- Show temperature : Press DISPLAY+STANDBY buttons, then release and press TONE button.
- Show firmware version : Press DISPLAY+STANDBY buttons.
- Factory default settings : Press VIDEO 1+STANDBY buttons.
















[See all photos]

Add lyric into MP3 file

To add lyric into MP3 file
You can use either Windows Media Player or Mp3tag.
If you use Mp3tag,
(Mp3Tag can also add other tags into MP3 file.)
1. Drag and drop MP3 into Mp3tag window.
2. Right click -> Extended Tags
3. Click Add field button, enter UNSYNCEDLYRICS into Field.
Enter lyric into Value.
for English, type eng||bla..bla..bla...
for Thai, type tha||bla..bla..bla...

To display lyric in Winamp
1. Install WinLyrics
2. In Registration window, click on Register>>> button, then you'll see the Registration Key.
3. Use keygen.exe to generate Activation Key from Registration Key.

To display lyric in Windows Media Player
Click Play -> Lyrics, Captions, and Subtitles -> On if Available

Wednesday, September 24, 2008

WordPress Installation

After fighting with WordPress 2.6.2 for about 2 hours.
Because it displayed only blank page after pressing 'Install'.
Searching in Goooogle, and found this website
http://trac.wordpress.org/ticket/7724
Oh shit!!! It's WordPress's bug. Installation works well after bug solving.
Yeahhh!!! Now I have my own blog!

Then disabled Post Revision function, or the database will be filled up with many garbage posts.
Added this command into file wp-config.php
// Disable Post Revisions
// To delete existing revisions, use this SQL query:
// DELETE FROM wp_posts WHERE post_type = 'revision';
define('WP_POST_REVISIONS', false);
define('AUTOSAVE_INTERVAL', 86400);

Then installed Wordpress PDA & iPhone 1.2.6 plug-in for access from mobile phone.
These 3 agents were also added.
PPC, WindowsCE, Mobile

And activated Akismet 2.1.8 plug-in (built-in) to block spams.

And installed Related Entries 2.04 plug-in from this website
http://www.basicstep.net/wordpress/related-posts-plugin/
But the table can't be modified to be FULLTEXT.
So I Goooogled (again). And found that the wp_posts table needs to be changed to MyISAM.

Next, Thai localization. I choose this website
http://sourceforge.net/projects/wordpressthai/
Followed the installation from this website
http://www.wordthai.com/index.php?topic=12.0

Then installed Language Switcher and 2.6 patch for multilingual support. (Only 2 languages are enought)
And added some Quick Buttons into file /wp-includes/js/quicktags.js

Added language link into file /wp-content/themes/.../single.php (insert after <?php get_header(); ?>)
<?php
$old_url = str_replace('&langswitch_lang='.$langswitch_lang_pref, '', $_SERVER["QUERY_STRING"]);
$old_url = str_replace('langswitch_lang='.$langswitch_lang_pref, '', $old_url);
if (!empty($old_url)) $old_url .= '&';
print '<div align=right>Language : <a href="?'.$old_url.'langswitch_lang=th">ไทย</a> | <a href="?'.$old_url.'langswitch_lang=en">English</a> &nbsp; &nbsp; &nbsp; </div>';
?>

And enabled some modules.
Also installed Dashboard Widget Manager 1.3.1 plug-in to manage Dashboard.
Added StyleSheet into file /wp-content/themes/.../style.css
table.code {
border-style: solid;
border-width: 1px;
border-color: #a0d0a0;
background-color: #f0f0f0;
font-family: courier;
text-align: left;
padding: 0.1em 0.5em;
}

To use static page as a front page:
http://turbochargedcms.com/2006/11/building-a-true-home-page-into-your-wordpress-blog/

Then installed StatPressCN.

Sunday, September 14, 2008

PIC VU Meter

I spent 2 days with this.
VU Meter using PIC Microcontroller.

No audio cable needed. Just plug in the power cord.
It can be placed anywhere. Very high sensitive microphone can receive even whisper.
(IC LM386 which are used in spy microphone circuit.)
PIC 16F628A microcontroller is used to do DSP (Digital Signal Processing) and AGC (Auto volume gain controller).
Currently it has 12 modes of running light.
If there is no sound for a while, it will switch to running light mode.
Then switch back to VU meter when sound was detected again.






[See all photos]

Friday, August 29, 2008

USB PIC Programmer

The Serial PIC programmer shipped with i-Style book doesn't work with USB to Serial converter, although it passed initialization process.
So I decided to buy a new USB programmer, very expensive programmer, ET-PGM PIC USB V1, 1500 BHT.

Its speed is sooooo impressive, about 1-300 times faster than the old one!!!
It also has ICD2 (RJ-11 - telephone jack) port, so it can be used as software oscilloscope too.
This example circuit receives 38kHz infrared signal from TV remote control.

I think it's a little cheap now. ;-)