Sunday, September 28, 2014

Sinhala font installation on Sony Xperia V (Android)

You can install any Sinhala font from your mobile itself and use it in any browser you like with following instructions.


1) Root your device.
I rooted my Sony Xperia V (LT25i) with "towelroot" tool. No need to run complex scripts, just one click is enough.

2) Download a Sinhala ttf font to your phone and rename it to "DroidSansFallback.ttf" (or get a renamed file from here)
I have put this font file to "/sdcard1/DroidSansFallback.ttf" in the beginning.

3) Install a terminal emulator app from Google play store", I used this "terminal emulator"


Open the terminal emulator app and run the following commands in the given order.

1) Get root access

2) Grant super user access to terminal emulator in the pop up window.

3) Get read/write access to /system
#mount -o rw,remount /system

4) Copy DroidSansFallback.ttf file /system/fonts
#cp /sdcard1/DroidSansFallback.ttf /system/fonts

Now you can open your favorite browser and read Sinhala text, I used Firefox browser to test it.

Monday, March 17, 2014

Experimenting Near Field Communication (NFC) with NXP MIFARE MF1S50 tags with Sony Xperia V

I have a Near Field Communication (NFC) capable Sony Xperia V mobile phone and I was able to communicate phone to phone.  Then, I found some cheap NFC tags on ebay which are based on NXP MIFARE MF1S50 chips. I got 5 tags for US$ 3.95 from this seller. They have free space of 716 bytes which can be used to store user data.

First you have to enable NFC at the android settings. Then, you can communicate with tags by placing them in the bottom of the mobile phone.

I used NFC TagInfo by NXP on Google play to identify the tags in the first place.

I was able to format the tags and write data to them using NFC TagWriter by NXP in Google Play.In this example, I'm going to write plain text "hello" to the NFC tag.

I was able to read the tag using the same application and also by using other applications such as NFC Tools.

Thursday, January 2, 2014

Gerber viewer for your Android mobile phone

When we are working with PCB fabrication systems, "Gerber" files are widely used as the input to the fabrication device from the CAD drawing. So, It is very useful to have a Gerber viewer on your mobile phone. Recenlty, I had to work with some microstrip designs and I had to check and compare the finished product at the fabrication facility. So, I found this free Gerber viewer at "Google Play" and you can find this at here. Here are some screeshots from this application showing a microstrip patch antenna in my mobile phone.

Interfacing sensors from Android mobile phone via Bluetooth

Most of the Android powered mobile phones have many in-built sensors. Android API gives us access to these sensors in API level without low level programming. Hence, we can use Bluetooth and these sensors to get sensor data to our embedded systems (may be for your robot). I modifed the "Blutooth Chat" application sample included in Android SDK to send accelerometer data via Bluetooth from my Sony Ericsson Xperia X8.

Modifying cheap servo motor for continuous rotation

You can buy cheap servo motors from ebay for a price of less than a gear motor. But these servo motors can't be used for continuous motion. A simple modification can be done by removing the locking mechanism as in the below photos. I'm using a metal geared servo motor from ebay for this. You should also glue the potentiometer in the middle postion after cutting the lock in the gear. You can use different pulses with varying pulse width and frequency to get continuous motion in the clock wise and anti-clock wise directions.