Tuesday 24 November 2015

Basic Electronics - Lesson 1

This lies at the Basic 

ATOMS are the Basic building blocks of the matter that make up everyday Object.

a desk, the air, even you made up of atoms
Most atoms have different subatomic particles inside them
Protons
Neutrons
Electrons
The Protons and Neutrons are packed together into the Center of the Atom - which is called Neutron
and Electrons which are very much smaller in size whiz around outside
Electrons are so mobile that every second they orbit the atomic nucleus around the up to 500 trillion times

Electrons and Protons have the Electrical Property Called CHARGE

Protons Have Positive Charge
Electrons have Negative Charge 
Neutrons have no Charge - neutral
Hence they Normally Balance  each other out. So the Total Net charge of  Atom is Zero.


CURRENT:
When electrons move together in a unified way we say there is a current Flowing.
Electrons are actually moving all time in materials like metals But Moving in a Random Disordered Way, A current is Flowing when Movement of Electrons in a PARTICULAR DIRECTION

When Normally electrons are moving Randomly in All materials But we need them to move in Unified way to Produce the Current.. So We FORCE them to move in One unified way.. The Battery Supplies the FORCE that makes the  Electrons move in unified way.. this Force is Called Electromotive Force or Potential Difference or simply Voltage.

Water Analogy of Voltage(Measure in Volts), Current(Measured in Amps) 
and Resistance(Measured in Ohms)

Analogy :    Water - Electrons
             Pressure - Voltage
             Flow - Current



Electrons can't flow through every Material in a same way.
Materials that allow a current Flow easily are called conductors.
Materials that don't allow a current flow are called non conductor or insulators.

Metals are the most common conductors, Plastics are typical Insulators

     Conductors Non Conductors
      --------------------|--------------------
Copper Plastic
Gold wood


We measure how much opposition is to an electric current as resistance
Resistors are somewhere between conductors, which conduct easily, and  insulators,which don't conduct at all.
 
The Main function of resistor is to control the flow of current

The resistance is measured in Ohms and the Symbol for it is


OHM's Law

Combining the elements of Voltage , Current and resistance, a person 
called Georg Simon Ohm Ohm developed the formula

V = IR

where   V = voltage in volts
I = current in amps
R = Resistance in ohms
this is called Ohms law.

Friday 20 November 2015

Thermal Switch in Automatic Rice Cooker

Recently... My Automatic Rice Cooker Damaged..
   Before Going for the Service centre, I like to know what’s the problem .
I removed four screws in the bottom and  opened the bottom cover and it looked like this.

I take a multimeter and checked the continuity between the three wires. One wire is not making any sound..
so i cut that wire and found this
There is some component from power connection to the heating element of the cooker and I HAVE NO IDEA what it is...

so i asked the google.. and google told me that is a thermal Switch or Thermal Fuse which is a safety precaution.. and it will blown whenever the temperature reached certain threshold..


Thursday 5 November 2015

Processing GUI Button

Code:
import controlP5.*;
ControlP5 controlP5;

int buttonValue = 0;
void setup() {
size(400,400);
controlP5 = new ControlP5(this);
controlP5.addButton("White").setValue(255).setPosition(100,100).setSize(200,19);
controlP5.addButton("Black").setValue(0).setPosition(100,120).setSize(200,19);
}
void draw() {
background(buttonValue);
}

void controlEvent(ControlEvent event) {
  println("the Event Triggered is");
println(event.getName());
}



public void White( ){
println("white button");
buttonValue = 255;
}
public void Black(){
println("black button");
buttonValue = 0;
}

Output: