Monday, April 19, 2010

[DIY] {Arduino} Protoshield

Arduino protoshield

I was toying with the idea of buying an arduino http://www.arduino.cc/ for some time. It is one of the best open source MCU, complete with sample code and comes with 6 analog in and 6PWM (depends on the flavour). The best thing I liked about arduino is, it comes with many many "shield". Each shield serves a specific purpose, such as the motor shield, the ether shield etc. The shield package comes in a kit set. Hence, the low cost.

The price is not prohibitively expensive, but some how I spent my disposable income on my other research interest....Recently I got some cash to spare (not a windwall tho) and quickly approach my colleague Mike Ong to help me to contact his supplier get a set of protoshield and arduino. His supplier quoted me 

Arduino Duemilanove = $52.80
Arduino ProtoShield V.4 Kit = $15.70
mini breadboard = out of stock

Good pricing! For $68.30, I can play it for a very long period of time.

So..... what is this protoshield alll about ?? Basically it is a mini development board for the arduino. Instead of using the big breadboard the store issued me and having many wires extending from the arduino to it. Sadly, the mini breadboard I wanted was out of stock....

The protoshield comes in a kit form. The PCB is of a very good quality, each description on the pin can be seen clearly.


Close up of the PCB





There is no instruction manual that comes together with the kit. Nevertheless, it is very straight forward to mount the components by reading the description on the PCB and do the soldering. The LEDs have their cathode filled off and it matches the pattern on the PCB.



Now, the soldering part. Secure the components with some sticky tape/masking tape or what ever tape that is convenient to you. Flip it over and let the soldering begin!



This how it looks like, arduino mounted with protoshield. Let alone the name sounds so coOOOooOOooOOoOL right!
I insulated the USB mini connector with some masking tape, because it is dangerously near to some of the points I soldered.


For the next 2 hours, I am playing with PoV (persistence of vision). Some of the staff, my project's boys and girls have seen it
I know I owe all of you the how-to. Writing a how-to actually takes more time then playing with it... *sigh*
I will try to write the how to for using the arduino IDE, that uses PROCESSING (another C-like programming language) and the how to of my PoV.
AFTER I attended my meetingS............

Wednesday, April 14, 2010

[DIY] kinetic hand phone charger

my attempt at Kinetic handphone charger.


I received this toy as my christmas present (some present exchange game that too difficult for me to comprehend) last year. It is a handphone charger that is powered by a 1.5v AA battery. I tried it on my HTC magic... and it works. 1AA battery can charge about 5% on my phone.


I was tinkering with the idea of marrying the circuit in the AA battery charger with a kinetic to electric generator (aka the shaker) which works on the concept of rare earth magnet's magnetic flux is cut when it is moved in and out of a coil of enamel wires.  http://en.wikipedia.org/wiki/Faraday's_law_of_induction.



The basic construction of the shaker is a rare earth magnet, sliding in and out of a magnetic tube that is coiled by some enameled wires. 
I also need a circuit that made up of 4 diodes (1N5819) and a capacitor (10000uF) to make the output into a constant DC. A voltage regulator LM29317 can be added too. Ai Ling the TSO is kind enough to provide me the components. thx!!. This circuit gave me about 3v across the load.




Since the AA charger only needs 1.5v, if I can supply constant 1.5v to the AA charger through my shaker, I would be able to charge my handphone for FREE!!! (assume cost of energy acquired from food is FREE)

I got my rare earth magnet from a shop in sim lim tower basement 1 for $18. Use the remaining acrylic tube from my light saber project  and now I need to coil 1400 revolutions of enameled wire on the acrylic tube. Ask around the lab TSOs for it and Hamzah show me some which is left over from a previous project. Now the challenging part is how am I going to coil 1400 times by hand!?


My first attempt trying to coil by hand... very tiring. Wanted to use a power drill, but none of the bits fit my acrylic tube......and I lost count after the 300th revolution.....





My 2nd attempt, with the power drill. The bit is a knob I salvaged from a variable resistor........



Apparently, there is this antique coiling device that is sitting somewhere in the cupboard at T12A406. I only discovered it after I have done coiling with the power drill....





I have varied the simple circuit of the above to provide better charge storing (2x capacitors) and capacitor to stabilize the input of the LDO .



After couple of shakes............ not to bad, the voltage is 4.43v and current in the range of 0.9~1mA.
More then enough to power an LED, but how about charging my phone through USB????!!!
USB on my laptop provides 5v and 100mA per port to charge my phone. The current might be an issue here



After hooking up the output of this circuit to the input to the circuit of the AA battery charger then connect to my phone through the USB and after many many many many many many many many violent shakes, my phone is still not charging....


Voltage across the load is still 0v after many violent shakes. the capacitors are not building up charges as fast as the discharge....


My hypotheses might be WRONG!!!


with a sore arm, a dented ego and a finite FREE time to play with my hobby, 

akan datang ...................

Wednesday, April 7, 2010

[DIY] light saber with SOUND!!

still remember my DIY light saber which I made couple of weeks back?? http://shin-ajaran.blogspot.com/2010/03/diy-light-saber-with-15-and-60minutes.html

I brought it to BarCampSingapore5in SP, gave a flash talk on how to make it. the response was OK, there are some jedi out there in  the crowd... One comment from the ground was.... where is the sound from the light saber. It suppose to have the VOOOOM sound every time the light saber is swing.

OK, Sim Lim Tower Here I come again!.........
there are 2 parts to solve this issue.
1. the mechanical motion detection switch
2. the voice/sound electronics.

item 1 was tricky to solve, because the COTS available is out of my reach. I tried to fabricate one with ball bearings and some metal plate, a close circuit will form when the metal ball bearing touch the metal plate. The outcome is not satisfying. I am using a roller switch instead.

item 2, i bought a "puma" voice digital kit for $8 at SLT, so that I can quickly hook it up to my light saber.

Sadly, on the first try, nothing worked!!!!
The troubleshooting begins~!~!
The transistor is configured as a BJT and act as an amplifier in the circuit, and the IC is the one that generates the sound. The kit's PCB (printed circuit board) and the IC chip does not contact properly, there is some miss alignment. Small issue I presume and I ignore it.

the voltage between base and emitter suppose to be 0.7v when it is in forward biasing, eg the transistor is working. But, i got a 0v reading on my multimeter. The best part, voltage between collector and emitter is 2.7v which is the voltage of my supply. it means that emitter and collector is shorted, e.g spoilt transistor.
All the other components tested fine, except for the chip alignment... small issue....I think....

Can't really sit down to trouble shoot, because in between office hours, I have to attend meeting and conference and the circuit is left at a corner paralyzed.......

When I got the time to fix it, Thinking that is the transistor fault, I swapped it with another spare I have. But I do not have the exact c9013 low power and have to used another NPN equivalent make the chip contact to the PCB closer with the use of the piece of paper as spacer. When I decide to cut the PCB to make sure the alignment is accurate and solder the chip's contact and the PCB contact
this is what i got... random noise.....


Is it the chip is spoilt, or the transistor i swapped is not working. The only good news, voltage between emitter and collector is not 2.7v and voltage between base and collector is 0.5v.

I deduce that, it should be the transistor, so I changed back to the default one and voila~!
I got my "PUMA" roar. but.......it doesn't sound like a puma, more like a creepy animal you watch on horror movie...


The whole idea of using a swappable chip is such that when i get my paws on the VOOOM sound chip, I can easily hook up to my circuit. Since now I solder down already to make the circuit more realiable, this is not any option. Nonetheless, I "wire wrap" it to my light saber.
this is my small button battery that gives 3v all together in the light saber. I did not share the 9v of the light saber coz i would need to use another voltage step down circuit (lazy lar duhz..... my excuse of not enough time..hahaha)
Me playing with the light saber in the office...

Friday, March 26, 2010

[DIY] light saber with $15 and 60minutes!!

Last Saturday, After the whole day in office reading, trying and experimenting for my academic usage.... Out of sudden..... I question my self. What am I doing in the office on a Saturday??!!! Whereas my friends are busy preparing to party. Well, in the long run I see in my self there are some significant benefits for seeking knowledge and most importantly applying it. Instead of joining my friends to party and getting wasted the next few days (wasting time sleeping duhzzzz), I decided to make my self a LIGHT SABER, just to perk things up.

Sim Lim Tower (SLT), here I come again!
Window shopping around and I chance upon this flexi LEDs in plastic strips that run on 12V DC. Aha! The perfect illumination for my light saber. Best part of it, it is only sgd $15 and the shop next door is selling for $45!!!!!! absolutely the same real deal. Delighted with my find, I headed back and continue with my books.

Some of you might wonder, what colour will my light saber be? I choose white instead of the available red, green and yellow LEDs. Just for pragmatic reasons, I can still use my light saber as source of illumination. Don't you think is eerie to read in green lights?

The next few days are spent on hunting parts for the light saber. I went to T822 look for ah yap for some acrylic tube, diffused the clear acrylic with tracing paper in it and there it go my spoils from last Saturday.
This is how it looks like incomplete....
I am toying with the idea of making a really uber cool steampunk looking light saber handle. Found some really cool ones from the Internet, but........... I can't afford the time to hunt for the parts, assemble and fabricate them and not forgetting blogging about it.. hahahaah

Just made do what I could find in my office. Emptied plastic holder for solder coils, some paper clips, 9v battery clip some wires, a variable resistor for showing strong and weak force and NO soldering involve (save time!! but might break down anytime from rough handling)


The FORCE is STRONG in this one






Your Focus determines your DESTINY






May the FORCE be with you




Friday, February 19, 2010

[DSA] Feedback

Feedback about me regarding

1.my teaching
2. your learning
3. what you have learned from me
4. what you want me to improve on

I hope to see you guys again, but not in the same module!!!!!
It was fun and fulfilling to teach your class.