Planet Electronics
Monday, June 20, 2011
Build a hydrogen fuel cell.
A fuel cell is a device that converts a fuel such as hydrogen, alcohol, gasoline, or methane into electricity directly. A hydrogen fuel cell produces electricity without any pollution, since pure water is the only byproduct.
Hydrogen fuel cells are used in spacecraft and other high-tech applications where a clean, efficient power source is needed.
You can make a hydrogen fuel cell in your kitchen in about 10 minutes, and demonstrate how hydrogen and oxygen can combine to produce clean electrical power.
To make the fuel cell, we need the following:
* One foot of platinum coated nickel wire, or pure platinum wire. Since this is not a common household item, we carry platinum coated nickel wire in our catalog.
* A popsicle stick or similar small piece of wood or plastic.
* A 9 volt battery clip.
* A 9 volt battery.
* Some transparent sticky tape.
* A glass of water.
* A volt meter.
The first step is to cut the platinum coated wire into two six inch long pieces, and wind each piece into a little coiled spring that will be the electrodes in our fuel cell. I wound mine on the end of the test lead of my volt meter, but a nail, an ice pick, or a coat hanger will do nicely as a coil form.
Next, we cut the leads of the battery clip in half and strip the insulation off of the cut ends. Then we twist the bare battery lead wires onto the ends of the platinum coated electrodes, as shown in the photo. The battery clip will be attached to the electrodes, and two wires will also be attached to the electrodes, and will later be used to connect to the volt meter.
The electrodes are then taped securely to the popsicle stick. Last, the popsicle stick is taped securely to the glass of water, so that the electrodes dangle in the water for nearly their entire length. The twisted wire connections must stay out of the water, so only the platinum coated electrodes are in the water.
Now connect the red wire to the positive terminal of the volt meter, and the black wire to the negative (or "common") terminal of the volt meter. The volt meter should read 0 volts at this point, although a tiny amount of voltage may show up, such as 0.01 volts.
Your fuel cell is now complete.
To operate the fuel cell, we need to cause bubbles of hydrogen to cling to one electrode, and bubbles of oxygen to cling to the other. There is a very simple way to do this.
We touch the 9 volt battery to the battery clip (we don't need to actually clip it on, since it will only be needed for a second or two).
Touching the battery to the clip causes the water at the electrodes to split into hydrogen and oxygen, a process called electrolysis. You can see the bubbles form at the electrodes while the battery is attached.
Now we remove the battery. If we were not using platinum coated wire, we would expect to see the volt meter read zero volts again, since there is no battery connected.
However, platinum acts as a catalyst, something that makes it easier for the hydrogen and oxygen to recombine.
The electrolysis reaction reverses. Instead of putting electricity into the cell to split the water, hydrogen and oxygen combine to make water again, and produce electricity.
We initially get a little over two volts from the fuel cell. As the bubbles pop, dissolve in the water, or get used up by the reaction, the voltage drops, quickly at first, then more slowly.
After a minute or so, the voltage declines much more slowly, as most of the decline is now due only to the gasses being used up in the reaction that produces the electricity.
Notice that we are storing the energy from the 9 volt battery as hydrogen and oxygen bubbles.
We could instead bubble hydrogen and oxygen from some other source over the electrodes, and still get electricity. Or we could produce hydrogen and oxygen during the day from solar power, and store the gasses, then use them in the fuel cell at night. We could also store the gasses in high pressure tanks in an electric car, and generate the electricity the car needs from a fuel cell.
How does it do that?
We have two things going on in this project — the electrolysis of water into hydrogen and oxygen gasses, and the recombining of the gasses to produce electricity. We will look into each step separately.
The electrode connected to the negative side of the battery has electrons that are being pushed by the battery. Four of the electrons in that electrode combine with four water molecules.
The four water molecules each give up a hydrogen atom, to form two molecules of hydrogen (H2), leaving four negatively charged ions of OH-.
Hydrogen gas bubbles form on the electrode, and the negatively charged OH- ions migrate away from the negatively charged electrode.
At the other electrode, the positive side of the battery pulls electrons from the water molecules. The water molecules split into positively charged hydrogen atoms (single protons), and oxygen molecules (O2). The oxygen molecules form bubbles at the electrode, and the protons migrate away from the positively charged electrode.
The protons eventually combine with the OH- ions from the negative electrode, and form water molecules again.
The Fuel Cell
When we remove the battery, the catalytic action of the platinum causes the hydrogen (H2) molecules to break up, forming positively charged hydrogen ions (H+, or protons), and electrons.
The electrons do not recombine with the protons because they are attracted to the electrode, which is positively charged due to the reaction happening at the opposite electrode.
At that other electrode, the oxygen molecules in bubbles on the platinum surface draw electrons from the metal, and then combine with the hydrogen ions (from the reaction at the other electrode) to form water.
The oxygen electrode has lost two electrons to each oxygen molecule. The hydrogen electrode has gained two electrons from each hydrogen molecule. The electrons at the hydrogen electrode are attracted to the positively charged oxygen electrode. Electrons travel more easily in metal than in water, so the current flows in the wire, instead of the water. In the wire, the current can do work, such as lighting a bulb, or moving a meter.
Tuesday, March 1, 2011
part I
Micro controllers are hidden inside a surprising number of products these days. If your microwave oven has an LED or LCD screen and a keypad, it contains a micro controller.
To get you understand quickly I define a micro controller as a single chip computer.Yes it is a full blown computer in its own. It has a C.P.U., RAM,some amount of EEPROM(for secondary storage i.e. permanent storage without power), many on-chip peripherals(Timer,Serial communication, Analogue to Digital converters etc.).If you don't understand, no problem I will be dealing them in detail in next tutorials. But compared to a P.C. their resources(RAM,speed etc)are less.But that is what is required !!! Because P.C. is a general purpose computer, which means it can run thousands of different soft wares that are available for specific needs.Like it can run a game.The same P.C. can run this browser in which you are reading this!It can run a custom solution for banks,railways and airways.It can run a 3D modeling,video editing & image editing software for a production company. Many of these are huge software,requiring lots of memory and CPU power.And a P.C. can run simultaneously many of this !!! So to run them the host computer should have enough RAM and CPU power so that it can run heaviest of them. But in case of a micro controller which is used for a specific purpose like switching a Microwave oven heating off after a preset time,and also when temperature exceed preset value, high power CPU s, and large RAM size is not required. so micro controller is a dedicated micro computer for specific application.
In this article, we will look at micro controllers so that you can understand what they are and how they work. Then we will go one step further and discuss how you can start working with micro controllers yourself.
then we will go to programming aspects and how to use in your projects....
for pin diagram and pin description refer to atmega8 data sheet here
A Simple program
void main()
{
SetPortDirection();
while(1)
{
PORTA=0b00000001;
Delay(0.5);
PORTA=0b00000000;
Delay(0.5);
}
}
What the program does
STEP 1 SetPortDirection(); This Function Makes the PORTA as OUTPUT.Its implementation detail is not shown.
STEP 2 PORTB=0b00000001; makes the 0th bit high, switching off the L.E.D. because other end of LED is connected to VCC(i.e. Supply voltage 5V)
STEP 3 Delay(0.5); Halts the MCU for 0.5 Sec
STEP 4 PORTB=0b00000000; Switches on the LED
STEP 5 Delay(0.5); STEP 2 to 5 are within an infinite while loop so it runs till MCU is powered. The program is compiled, and burned into the chip and power is turned on and that LED is blinking once every second.You have just understood the "HELLO WORLD" program for MCU empire .Although the given program doesn't do something very important and can be done without a MCU and in a cheap manner, but it introduce you to micro controller programming.Doing this with MCU has some advantages also.You can change the way LED blinks by simply writing a new program without touching the hardware part.You can also connect 8 LEDs to all 8 PINs of the PORTB, write a nice program them to light them in various pattern !!! Which you can't make easily without MCUs.So you have seen that major functioning of a MCU project are made in software and hardware part is simple and small. So you have learned the basics of MCUs and their use.Hope you have nice time reading.
In next tutorial we will learn tools and soft wares required to work with AVR family of micro controllers. we will meet in next tutorial.
Wednesday, February 23, 2011
More Flexible..!!
So enjoy the essence of core electronics..!!
Thursday, February 17, 2011
Serial Port Programmer
This simple AVR Programmer will allow you to painlessly transfer hex programs to most ATMEL AVR microcontrollers without sacrificing your budget and time. It is more reliable than other simple AVR programmers available and can be built in very short amount of time. AVR programmer consists of in-circuit serial programmer small pcb with a DIP socket where you can fit your microcontroller and have it quickly programmed.
Circuit building
circuit components:two 4.7k,10k,15k,two 5.1v zener diodes,BC 547,connector,4Mhz crystal oscillator,5V battery(/supply),22pF capacitors(connected across 4Mhz crystal,its optional)
x1:-serial port female pin(available in any electronic components shop)
GND,RESET(RST),SCK,MISO,MOSI represent pins of the micro controller,refer data sheet corresponding to the micro controller for respective pins.
Build the circuit as shown in figure.It would be a better idea to enclose the entire circuit into a serial port holder,use multi wire connector for connecting micro controller to programmer.Micro controller to be programmed is placed on a separate board known as "AVR Socket PCB". After connecting every thing it looks like
Programming
To be able to send hex file from your computer to AVR micro controller you will need to download and install PonyProg2000.It is available at the following link http://www.lancos.com/ppwin95.html
After the installation, the first thing you will need to do is configure PonyProg to work with our AVR Programmer.Open ponyprog application,following window opens
Press ok,now what you need to do is to configure PonyProg to work with our AVR Programmer. To do this go to "Setup" menu and select "Interface Setup". The following window will be shown
Select serial,after selecting serial select SI Prog I/O ,finally select com1 and then ok.
Connect serial port programmer to your computers serial port and select the type of micro controller used for programming in pony ponyprog window.For example in the above diagram AVR micro ,AT90s8515 is used.
At this point PonyProg configuration is complete and we can open hex program with which AVR microcontroller will be flashed. Go to "File" menu, select "Open Program (FLASH) File ...", and point to the hex file to open it up. You should see hex numbers as shown on the image below. If you haven't connected AVR Programmer dongle to your computer's serial port yet, then now is the time. Make sure that AVR Programmer is physically connected to your AVR microcontroller through Socket PCB.
Now select "Write Program Memory (FLASH)", Click on "Yes" button to confirm the programming.
PonyProg will program AVR microcontroller and verify if the hex file was transferred without any errors.It generally takes 10-20 sec depending on size of program.After programming is completed "Write successful" window will be shown letting you know that AVR microcontroller has been programmed.Programmed micro controller is ready to be pressed into service.