## Posts

Showing posts from November, 2013

TP-LINK TL-WR740N WiFi Router Here's how to: Flash a TP-LINK TL-WR740N WiFi router with OpenWRT  ( Wikipedia ) Install toolchain which will run on your x86 Ubuntu computer but compile for  the MIPS processor (Atheros AR9330) present inside the TP-LINK TL-WR740N. Cross-compile a hello world C program on x86. Transfer the executable to the router and run it. Flashing the router with OpenWRT Figuring out the model number Look on the back side of the router and figure out your model number Mine was V4.23 . I looked up the corresponding entry for that model on the OpenWRT's Wiki Page for TL-WR740N here  http://wiki.openwrt.org/toh/tp-link/tl-wr740n  under the "Specific Install Notes" section and read: "Hardware version 4.23 works perfectly with the unmodified Attitude Adjustment (12.09-beta) generic WR740N v4 image . The best installation method is flashing it through the stock TP-Link web interface." So I clicked on the image lin

### Measuring the hot resistance and cold resistance of Incandescent Bulbs

The Bulbs So I took 3 bulbs of 40 Watts, 60 Watts and 100 Watts respectively and measured the hot and cold resistances I used the Philips softtone frosted lamp series. Price: 40 Watts : Rs 20 60 Watts : Rs 20 100 Watts  : Rs 21 Blub packs - Front Blub packs - Back Cold Resistances The cold resistance readings were as follows: 40 Watts : around 97.6 Ohms 60 Watts : around 71.4 Ohms 100 Watts : around 39.5 Ohms Measuring Cold resistance of 40W Bulb Measuring Cold resistance of 60W Bulb Measuring Cold resistance of 100W Bulb Hot Resistances (Calculated) Calculated values of hot resistance can be obtained using the formula: Resistance = (Voltage^2) / Power In India the AC voltage RMS value is 230 Volts. So we get the hot resistances as: 40W Bulb : (230*230) / 40 = 1322.5 Ohms 60W Bulb : (230*230) / 60 = 881.67 Ohms 100W Bulb : (230*230) / 100 = 529 Ohms Hot Resistances (Measured) To get the actual values of the hot resistance, y

### Irfanview : Auto adjust colors

I refuse to use any computer without first installing a copy of IrfanView on it. This light weight multi-format image viewer and converter has become ubiquitous amongst my circle of tech geeks - we can no longer imagine life without it. One of the specific features that I love is "Auto adjust colors". Consider the following images. The images in the left windows are the originals and the images in the right windows are obtained by applying the "Auto adjust colors". As you can see, "Auto adjust colors" tweaks the various parameters of the image and brings out the details which remained unseen earlier. One of the major operation that "Auto adjust colors" does is Histogram stretching . Look at the screenshot below to get a better idea of what that is all about: Histogram Stretching Here are the original images for reference. All in all, using this nifty feature of IrfanView makes me feel like I am perfor

### Integrating FlashMagic with Keil uVision4 for P89V51RD2

If you are using P89V51RD2  microcontroller with Keil uVision4 for your project, then you might find it convenient to add FlashMagic as a Tools Menu Option within Keil. What this will do is allow you to download the program onto P89V51RD2 using a single click from within Keil. Calling Flash Magic from within Keil to download the program into P89V51RD2 conveniently. Note the console messages printed in the pane below by FlashMagic's Command Line utility (FM.exe) Prerequisites: Keil uVision4 (with the hex output option enabled for your current project) FlashMagic from  http://www.flashmagictool.com/ A target board wired properly to allow DTR to control RESET. If you are using FT232 (USB <> UART) then refer the connection diagram below on how to design your circuit board appropriately. Enable the "Create HEX File" option for your project in Keil uVision4 Schematic for wiring FT232 (USB <> UART) so as to allow the computer to use DTR to con