Labels

22/12/2010

Install Sun Java in Ubuntu 10.04

Ubuntu System:
Ubuntu 10.04 (lucid)
2.6.32-26-generic

Reason install Sun Java instead using OpenJDK:

Some applications have problems with OpenJDK, ie. Freenet, Wuala, Sparnord, but work fine with Sun JRE. A Google search reveals many applications and issues. So if you want to use one of these applications you would better use Sun Java.

Installation:

1) Click Applications -> Software Centre -> In the Menubar, choose Edit -> Software Sources. Go to tab Other Software and tick the first entry ("http://archive.canonical.com/ubuntu lucid partner"). Close and confirm the "Reload". 
























2) In Software Centre, search for "sun java" and install the first package ("Sun Java 6.0 Plugin").

Done!

09/12/2010

Battery Backup For on Board Overo Board RTC (twl4030)

I have been googled a lot for the external rtc project. Almost people are discussing about how to make the external rtc working. Seldom to see people mention about the on board rtc usage.

Have a look on gumstix website:
http://www.gumstix.net/Hardware/view/I/O-connectors-cabling/Gumstix-Overo-I/O-overview/112.html
7) The Overo series does not support battery charging.

the battery charging was disabled for safety concern.

However, take a look at this new implementation, line 470:

http://www.sakoman.com/cgi-bin/gitweb.cgi?p=linux-omap-2.6.git;a=blob;f=drivers/rtc/rtc-twl4030.c;h=72f7863376c8eb61ffbe3c5e51bc0e525744aa09;hb=83d22678ac1d8126b41f6880f57e2421d0c11391

470         /* enable backup battery charging */
471         /* use a conservative 25uA @ 3.1V */
472         ret = twl4030_i2c_write_u8(TWL4030_MODULE_PM_RECEIVER,
473                 BIT_PM_RECEIVER_BB_CFG_BBCHEN |
474                 BIT_PM_RECEIVER_BB_CFG_BBSEL_3V1 |
475                 BIT_PM_RECEIVER_BB_CFG_BBISEL_25UA,
476                 REG_BB_CFG)


Measure the voltage at pin12 (Vbackup) while the gumstix is on. There is 3.13V on it.

It seems like the battery backup charging truly has been enabled!

try it anyway...

bought a coin cell battery, connect to Vbackup and Gnd,

root@overo:~# hwclock
Thu Oct  7 06:39:02 2010  0.000000 seconds
root@overo:~# date
Thu Oct  7 06:39:17 UTC 2010
root@overo:~# date 12090857
Thu Dec  9 08:57:00 UTC 2010
root@overo:~# hwclock -w
root@overo:~# hwclock
Thu Dec  9 08:57:14 2010  0.000000 seconds

turn off gumstix, wait for10 minutes, start gumstix,

during the boot process:
fbcvt: 1024x768@60: CVT Name - .786M3-R
Console: switching to colour frame buffer device 60x34
regulator_init_complete: incomplete constraints, leaving VDAC on
twl_rtc twl_rtc: setting system clock to 2010-12-09 09:09:40 UTC (1291885780)
Waiting for root device /dev/mmcblk0p2...
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new high speed SD card at address b368
mmcblk0: mmc0:b368 UD    1.90 GiB


root@overo:~# date
Thu Dec  9 09:10:25 UTC 2010
root@overo:~# hwclock
Thu Dec  9 09:10:38 2010  0.000000 seconds

Hmm, how convenient! Great, throw my external rtc away ~



Lithium Vanadium Pentoxide battery, Farnell-1514218

26/11/2010

TRIAC and Opto TRIAC Driver Curcuit

Triac is designed to be suitable for general purpose AC switching. They can be used as an ON/OFF function in applications such as static relays, heating regulation, induction motor starting circuits... or for phase control operation in light dimmers, motor speed controllers,...

It's quite common to use Opto Triac driver to switch Triac.


In my project, I need to switch two heating elements on and off every half second. Each heating element is 1.5 kw. 


1500/230 = 6.5A


If I switch two heating element in the same time, the current consumption will be 6.5x2=13A.
The normal house power plug only provides 10A. Therefore, I have to swith one element each time.


Here is my parts list:


Triac: LITTELFUSE - Q6008L5,  Element14-1304759
Triac driver: FAIRCHILD SEMICONDUCTOR - MOC3022-M, Element14-1021366












PS: the middle leg of triac should not connec to live.
Here is the reason: the junction, or die, sometime is connected to A2.












In the meantime, need to calculate the area of heat sink which attaches on the triac.




Uninstall Security Tool 2010

One of my colleague installed "Security Tool 2010" on her personal pc (vista) by mistake.
I googled about this virus, found it's a very clever rogue.





















During installation, Security Tool configures itself run automatically every time when you start an application. The rogue also uses this method of running to block the ability to run any programs, including security applications.

Immediately after launch, it will start to scan your computer and reports a lot of various infections that will not be fixed unless you first purchase the software. Important to know, all of these infections are a fake and do not actually exist on your computer. What is more, the rogue will also hijack Internet Explorer and Firefox and display fake warnings when you opening a web site.

As you can see, Security Tool is a scam and should be removed from your computer upon detection.
Do not be fooled into buying the program! It will steal your credit card account, and keep on billing you every month!!

Many website mentioned some methods to kill it. For example, delete files, which call "security tool',  from registration.  I have search the whole registration folders. I couldn't find any file called 'security tool'. Take a look the date of these posts. All of them were in 2009. Hmm, this smart rogue has been updated.

What I have done:
- Restarted pc, and went to safe mode (with network);
- Type 'run' in 'Start'. Then type 'msconfig' to open up 'system configuration' window;
- disabled ALL startup items;
- deleted all .exe (eg. 576544.exe )files in 'C:\users\AppData\Local
- download "Malwarebytes" or copy installation file from other pc.
- install it and do full scan.
- kill this bloody Security Tool;
- reboot pc;

Done!

To remove System Tool virus:
http://www.bleepingcomputer.com/virus-removal/remove-system-tool



25/11/2010

Eagle PCB 3D Tutorial

http://www.societyofrobots.com/electronics_Eagle3D_tutorial.shtml

http://perso.numericable.fr/pboucheny/eagle3d/index.htm

http://www.sonsivri.com/forum/index.php?PHPSESSID=8d7baf97d6b7e0f88dee45fd00e1ebc4&topic=1813.msg9535#msg9535

18/11/2010

Mercedes Benz A-Class DIY Information

A very useful website:
http://www.aclassinfo.co.uk/mypage.1.htm
http://www.benzworld.org/forums/archive/index.php/f-14.html




How to reset Mercedes Benz A-Class Service Indicator
http://www.mykp.co.uk/my-cars/reset-a-class-service-indicator/


Turn the key to position 2 in the ignition lock and immediately press button 000.0 twice within the space of one second.

Turn the key to position 0 in the ignition lock.

Press and hold button 000.0 Turn the key to position 2 in the ignition lock. Keep button 000.0 pressed.

Service message with current remaining distance or remaining time appears.

After about 10 seconds, an acoustic signal will sound and the service display with the new starting distance or starting time appears for about 10 seconds.

Release button 000.0
Thats it youve reset your service indicator.