On holiday

No more going to the hangars for the next 11 days. I’m on leave from now till the 6th of May. Will be leaving for Langkawi tomorrow so there won’t be any updates for a few days. I’ll be back in KL on the 30th and will be flying back to Kuching on the same day also.


Bought train tickets through the net.

Langkawi will be quite a journey because it will be an 11 hour train ride to Alor Setar from KL. Then we need to take the bus and the ferry to reach Langkawi. At Langkawi we will be checking in to a motel at Kuah and renting a car to get around. Not sure what we’ll be doing for the first night but I think you have a pretty good idea ;)


The plan.

I’ll try to update once I get back from Langkawi. For those of you taking your leave at around this time, happy holidays! Continue reading

Pocket Bike Speedometer Part 2

Finally got the engine running well already. Was a seized piston the other time. And probably the fuel/oil mixture wasn’t good enough. Now we’re using 40:1 (40 parts of petrol and 1 part of 2t) but probably 32:1 will be a better mix. The power is there and there’s no lack of it. Ran alongside Marks’ bike and managed to record a top speed of 65KM/h. But couldn’t beat the acceleration of the 4-stroke 100cc bike.


All packed up in a small circuit to save space.


Rear insulated to prevent shorts.


Small display.


Bigger display and larger board for easier mounting.


Simplest way to mount it: using double sided tape.

Everything is installed already but I discovered a big mistake in the design. I forgot to take into consideration the interference generated by the magneto and the sparks on the spark plug. Since the plug wire is not the high resistance type, there’s nothing to stop the interference. Once the engine is started, the PIC freezes.

There is a way to rectify this. Build a metal enclosure around the circuit. I’m still thinking of how I can get a metal enclosure for my circuit. So stay tuned for part 3 and most probably the complete circuit and the source for the PIC. Till then, happy revving! Continue reading

Exhaust silencing

This is a failed attempt at silencing my bike’s 2 stroke exhaust in a bid to make it usable at night. To really silence the exhaust will make the exhaust so restrictive that it won’t be fun to ride anymore. Anyways, here’s how it’s done for those of you who are wondering.


Buy some exhaust fiber from bike shop. This cost RM1.


Take out your whole exhaust. Easier to work with.


Take out the muffler cover.


Holes for some of the exhaust gas to escape.


Take the fiber out and shred it. Your hands might get itchy because of the fiberglass. Then pack it like so.

Start your engine up and be amazed! There’s no difference! Unless you really restrict the pipe and make all the exhaust gas go through those fiber packings, there won’t be much difference. I think I can live with the sound for the time being. As long as I get to feel the 2-stroke powerband kicking in. Continue reading

Pocket Bike Speedometer Part 1

Ball mice were common a few years back. Their popularity was due to the absence of the optical mice. I remember those days when you have to constantly clean the rollers of the mouse because they will be so caked up with dirt that it doesn’t track smoothly anymore. And they were heavy because of the heavy ball in them and sometimes they can slip if you move your mouse too fast.


Ball mouse. It’s missing its PS2 port.

So what do you do with an obsolete piece of junk? You rip it out and see what you can salvage. I got here a HP ball mouse. Not sure what’s wrong with it but I picked it up from home last time I went back to Kuching. Thought it might come in handy. And I was right.


How fast can this bike go? Let’s find out.

It suddenly dawned to me how dangerous it was riding a bike without knowing how fast I was going. If I knew exactly how fast I was going, I can time those corners perfectly and achieve the fastest entry and exit speeds. And if I knew how fast I was going, I can probably judge the braking distance and that will allow me to brake later, shaving off precious lap time. Alright, I am being ridiculous but that’s not entirely impossible either.


There are 3 pairs of infrared receiver and transmitter here.

I checked the front brake disc and found that there are 15 holes per revolution. I did some calculation and found that by determining the rate of holes passing through the infrared sensors (transmitter and receiver pair), I can get a relatively accurate measurement of the speed of the bike.


The black one is the receiver and the transparent one is the transmitter.


Cameras can detect infrared. This is how it looks like when it’s on…


and when it’s off. Try pointing your remote control at your digital camera/camera phone. You’ll see that purplish glow.


Time to rob. Power supply providing the 5v to power the mouse circuit during testing.

I took the transmitter and receiver pair from the scroll wheel because they were the biggest. This is because the distance between the pair was larger to accommodate the scroll wheel. And through further testing, I discovered that the receiver will emit a small voltage when it is being flooded with infrared beam. Using that, I built a circuit to amplify the signal and fed it to a PIC 16F84A.


16F84A running at 4Mhz with 2 multiplexed 7-segment displays.

I haven’t had time to come out with the circuit diagram but rest assured it will be shown in Part 2. The PIC basically counts the holes passing by with respect to time. I have a short video sample below that shows the PIC COUNTING the number of holes it detected. It should increase by 15 for each wheel revolution.


Try not to multiplex displays if you can. The wiring is hell.

The next part is figuring out how to mount the sensors on the brake disc. I came up with a metal bracket to hold the sensors which was soldered to a board. I used excessive hotglue to keep it in place.


The black receiver is actually semi-transparent! You can see the infrared shining through it.


The board. I had to raise the sensors a bit to align with the holes on the brake disc.


And this is how it’s mounted on the bike. The metal bracket is connected to the front mud guard. I reused the mouse’s wire to connect the sensors.


A clearer picture of how it’s mounted.


And a closer view.

This concludes the first part. As of now, everything is already mounted on the bike and I have modified the PIC to make it display the speed instead of detecting the number of holes passing through the sensor. But I cannot test it out yet until I get its spark plug changed. Part 2 will include the circuit diagram and the code for the PIC which was written in mikroBasic. So stay tuned! Continue reading

Stabbed by Janet

I wasn’t planning to blog today but I got stabbed by Janet and to prove her that I will do it, here it is. Anyways, being stabbed means getting tagged. It’s just a new term that they use, I think. Next thing you know, you’ll need to shoot people in order to get them to do stuff. So let’s get on with it.

How does this thing work?

Bold the statements that are true to you.
Italise the statements that you WISH are true.
Leave the fibs alone.

Then, stab 3 people to do the same test:


I miss somebody right now.
I do not watch tv these days.
I wear glasses or contact lenses.

I love to play video games.
I have tried marijuana.

I have been in a threesome.


I believe honesty is usually the best policy.(to certain someone only)

I have changed mentally over the last year.

I carry my knife/razor everywhere with me.

I curse.
I’m totally smart.

I’ve broken someone’s bones.

I’m paranoid sometimes.

I would get plastic surgery if it were 100% safe, free of cost, and scar-free.
I need money right now.

I love sushi.

I talk really, really fast.
I have long hair.
I have lost money in Las Vegas.

I have at least one sibling.

I have worn fake hair/fingernails/eyelashes in the past.
I couldn’t survive without Caller ID.

I like the way I look.

I am usually pessimistic.
I have a lot of mood swings.

I have a hidden talent.

I’m always hyper no matter how much sugar I have.

I have a lot of friends.
I am currently single.

I have pecked someone of the same sex.

I enjoy talking on the phone.

I practically live in sweatpants or PJ pants.
I love to shop.
Enjoy window shopping.
I would rather shop than eat.

I don’t hate anyone.
I’m a pretty good dancer.

I’m completely embarrassed to be seen with my mother.

I have a cell phone.
I believe in God.

I watch MTV on a daily basis.
I have passed out drunk in the past 6 months.

I’ve rejected someone before.
I want to have children in the future.

I have changed a diaper before.
I’ve called the cops on a friend before.

I’m not allergic to anything.
I have a lot to learn.
I’m shy around members of the opposite sex. (esp those that i dont know.)
I have made a move on a friend’s significant other or crush in the past.
I have tried alcohol before.

I own the South Park movie.

I would die for my best friend.


I think that Pizza Hut has the best pizza.


I have used my sexuality to advance my career.

I love Michael Jackson, scandals and all.
Halloween is awesome because you get free candy.

I watch Spongebob Squarepants and I like it.
I am happy at this moment!
I’m obsessed with girls.

I tie my shoelaces differently from anyone I’ve ever met.
I study for tests most of the time.

I am comfortable with who I am right now.

I have more than just my ears pierced.

I walk barefoot wherever I can.
I have jumped off a bridge.

I love sea turtles.
I spend ridiculous money on makeup.

Plan on achieving a major goal/dream.
I’m proficient in an musical instrument.

I worked at McDonald’s restaurant.

I hate office jobs.
I love sci-fi movie.
I think water rules.
I went college out of state.
I like sausages.
I love kisses.

I fall for the worst people.

I adore bright colours.

I can’t live without black eyeliner.

I don’t know why the hell I just did this stupid thing.

I usually like covers better than originals.

I can pick up things with my toes.
I can whistle.

I can move my tongue in waves, much like a snake’s slither.
I have ridden/owned a horse.
I still have every journal I’ve written in.

I can’t stick to a diet.

I talk in my sleep.
I try to forget things by drowning them out with loads of distractions.
I have jazz in my blood.

Climbing trees is a brilliant past-time.

I wear a toe ring.

I can’t stand at LEAST one person that I work with.

I am a caffeine junkie.
I cosplay or know what cosplaying is.

I have been to over 15 conventions.


I will collect anything, and the more nonsensical the better.

I’m an artist.

I only clean my room when necessary.

I like a person of the same sex.

I love being happy.
I am an adrenaline junkie.


Alright. Admit it. How many of you just scrolled through the list above, not reading all of it? If you did, kindly scroll up to the top of the page. You’ll find the polls on the right hand side. Confess.

Anyways, I did the same thing and I realized that the method above (using bold and italics) isn’t very easy and effective for humans to read or follow. So I represent the above information in an easier to understand format below:


Statements that are true for me:

I watch Spongebob Squarepants and I like it.
I am happy at this moment!
I’m obsessed with girls.


I am comfortable with who I am right now.


Plan on achieving a major goal/dream.
I’m proficient in an musical instrument.


I hate office jobs.
I love sci-fi movie.
I think water rules.
I went college out of state.
I like sausages.
I love kisses.


I adore bright colours.


I don’t know why the hell I just did this stupid thing.


I can pick up things with my toes.
I can whistle.


I can’t stick to a diet.


I can’t stand at LEAST one person that I work with.


I will collect anything, and the more nonsensical the better.


I only clean my room when necessary.


I love being happy.
I am an adrenaline junkie.

Statements that I wish were true:


I have been in a threesome.


I don’t hate anyone.
I’m a pretty good dancer.


I would die for my best friend.


I have used my sexuality to advance my career.


Climbing trees is a brilliant past-time.


I have been to over 15 conventions.

And statements that don’t involve me:

I love to play video games.
I have tried marijuana.

I carry my knife/razor everywhere with me.

I’ve broken someone’s bones.

I would get plastic surgery if it were 100% safe, free of cost, and scar-free.
I need money right now.

I talk really, really fast.
I have long hair.
I have lost money in Las Vegas.

I have worn fake hair/fingernails/eyelashes in the past.
I couldn’t survive without Caller ID.

I am usually pessimistic.
I have a lot of mood swings.

I’m always hyper no matter how much sugar I have.

I have pecked someone of the same sex.

I practically live in sweatpants or PJ pants.
I love to shop.
Enjoy window shopping.
I would rather shop than eat.

I’m completely embarrassed to be seen with my mother.

I watch MTV on a daily basis.
I have passed out drunk in the past 6 months.

I have changed a diaper before.
I’ve called the cops on a friend before.

I own the South Park movie.

I love Michael Jackson, scandals and all.
Halloween is awesome because you get free candy.

I tie my shoelaces differently from anyone I’ve ever met.
I study for tests most of the time.

I have more than just my ears pierced.

I love sea turtles.
I spend ridiculous money on makeup.

I worked at McDonald’s restaurant.

I fall for the worst people.

I can’t live without black eyeliner.

I usually like covers better than originals.

I can move my tongue in waves, much like a snake’s slither.
I have ridden/owned a horse.
I still have every journal I’ve written in.

I talk in my sleep.
I try to forget things by drowning them out with loads of distractions.
I have jazz in my blood.

I wear a toe ring.

I am a caffeine junkie.
I cosplay or know what cosplaying is.

I’m an artist.

I like a person of the same sex.

And now that it is over, I’ll backstab Adrian, Kin Churn and Beverly.

ps: I will not die for my best friend, but I will stick up for them. So if you backstab my friend again, you better watch out (you know who you are). Continue reading