18 Nov, 2012
Did you know that YouTube has an in-built Snake Game to spend the time while buffering a video?



This works in fullscreen mode also. When the video is loading, just press the Up or the Down arrow key. The loading graphic turns into a snake and voila! Your time killer, especially, for all those people who don't have lightning fast internet connections.

18 Jun, 2012
Here's a quick tip for you. Every time you use a microcontroller (like PIC, AVR, anything for that matter) in your project, you'd definitely have a main loop that keeps looping the entire time. So, the best way to know if your microcontroller is indeed working and that it has not reset itself or done something funny, is to just toggle an output at the end of the loop. You can connect this to an LED with a resistor. Below is sample Assembly code for PIC.


main
         (some code here)

         BTFSC PORTB, 7
         GOTO turn_off_led
         BSF PORTB, 7 ;turns on LED
         GOTO main
turn_off_led
         BCF PORTB, 7
         GOTO main


The LED connected to the 8th bit of PORTB keeps toggling after every loop, so you can tell whether the microcontroller is executing the program and is not stuck.

17 Jun, 2012
Have you ended up trying to create a PIC controlled robot/device and surprisingly nothing seems to work when the motor is connected? Well, here is a checklist to avoid that very problem.

You might have a PIC controlling a motor through a motor driver IC like the very commonly used L293D. The problem is, every time the motor is turned on, it pulls in a large current upsetting the entire circuit. Because of this, 'Brown Out Reset' causes your PIC to, you guessed it, reset. So have this disabled.

An important thing is a capacitor across your motor. Any small value capacitor will help avoid noise and interference.

A large value capacitor across your +5 and Gnd is a very good habit. This will help stabilise the voltage across your entire circuit.

Another lifesaver of a tip is to never switch on your motor in the start of the code. Something like this may not work.


begin:
start motor
call delay
goto begin


This pseudo code may not work because as you power up your circuit, the PIC tries to switch on the motor, and this causes the PIC to reset. Instead, do something like the one below. The delay in the start will let the voltage to stabilise first.


begin:
call delay
start motor
goto begin


Following these simple tips will turn out to be a lifesaver when you're frustrated when nothing with a motor works right.

17 Jun, 2012
Well this is a handy feature that most people are not aware of. You might be creating some tutorial or any other thing for that matter and you happen to need some screenshots of your android screen. Believe me, I've seen people use other cameras or phones to take pictures, which gets a big hands down.

The way to take screenshots is to hold down the Back button and then press the Home button. A PNG file will be created in /sdcard/ScreenCapture.

Enjoy!