April 21, 2013

Circuit: LED Flasher

This circuit is a LED flasher circuit I found on the Internet and decided to try it out.


Here's a video of it in action:



April 6, 2013

Circuit: Light Fader

I decided to try using a capacitor in a circuit for the first time. This circuit lights up the LED as it charges the capacitor, and then if you remove the battery, the LED does not immediately go out, it fades out as the capacitor discharges. Luckily I hooked it up the right way, or it could have exploded.

Schematic:


Video:

Circuit: Hello World 2

Here is another circuit, very similar to the first one, except it is two LEDs connected in parallel. In theory, one should be brighter than the other based on the resistors I used, but there was not much of a difference when I tried it out. I originally used 2 green LEDs, but I decided to use one green and one red LED in the end.

Schematic:



Picture:

Circuit: Hello World

I finally decided to start a hobby of making electronic circuits just for fun. Here's the basic "Hello World" of electronics, a simple circuit that lights up one LED:

Schematic:
Picture:

April 4, 2013

Code Snippet: getById

In a simple JavaScript project that does not use JQuery or other third-party libraries, I find this to be a nice shortcut for document.getElementById():

function getById(id) {
    return document.getElementById(id);
}