Monday, 19 November 2012

PROGRAMMING VELOCITY (EARLY WARNING FAULT DETECTION SYSTEM)

Coding for checking velocity.


int hits = 0;
float wheel_radius = 1;
volatile unsigned int current_time;
long time_interval = 1000; //how often do you want to know velocity (milliseconds)
float velocity; //this is the velocity in length units / time_interval

void setup ()
{

  Serial.begin(9600);
  attachInterrupt(0, count, CHANGE);
  current_time = millis();

}

void loop ()
{

     if ( millis() >= current_time + time_interval)
    {
    
     velocity = (hits*(wheel_radius * 392.7))/time_interval;//the     constant is 2*pi*1000/16
     Serial.println(velocity);
     hits = 0;
     current_time = millis();

  }
}  

void count()
{

 hits++;

}

ROTARY ENCODER SENSOR

Rotary Encoder Sensor is using to measure the speed of the motor by using Arduino Controller






 RE08A is a rotary encoder kit has slotted disc (8 slots) and a simple interface sensor board. Rotary encoder is a sensor or transducer used to convert the data of rotary motion into a series of electrical pulses which is readable by controller. The slotted disc has a 35mm outside diameter with 8 slots that provides 16 transitions.  The optical sensor is used to sense the 16 transitions of the slotted disc. With these transitions, controller is able to recognize the rotary angle of the disc. With this concept, a rotary encoder can be employed in a DC motor shaft for the controller to ‘know’ its current position.  



 This rotary encoder kit has been design with the features of:

  •     Industrial grade PCB with high reliability yet professional outlook.
  •     Simple 3 pin interface (+5, Gnd and Sig).
  •   Included On board green LED as indicator.
  •     Direct connection to microcontroller (internal pull-up to 5V).
  •     Up to 1 KHz (1000 pulse/sec).
  •     Disc size: 35mm (outer diameter) x 3mm(inner diameter)
  •     Sensor board size: 12mm (height) x 35mm (length) x 15mm (width)



Electrical Characteristic
 




 True table in normal operating condition


















  1. Optical sensor at “A” will detect the missing slot  of disc when the disc rotate, further generate pulses at signal pin.
  2. Header pin at “B” is input supply. User should connect 5V (+) to this pin.
  3. Header pin at “C” is ground of 5V supply, or in other words, the negative terminal of supply.
  4. Header pin at “D” is signal output of sensor board. This pin is internally pull-up to 5V, thus no extra component is needed for this sensor to be connected to controller.
  5. LED at “E” is an indicator. This LED will light ON  if the disc does not block the optical sensor.
 
 
 
 
 



Sunday, 18 November 2012

MAIN BOARD CIRCUIT

Main Board Circuit using in this project.


Main board components:

  •  Magnetic Contactor
  •  Thermal Overload Relay
  •  Miniture Circuit Breaker
  •  Transformer 240V/6V
  •  Indicator Light
  •  Push Button
  •  Wire 
  •  Distribution Board Cashing 





















DC SPEED CONTROLLER CIRCUIT

Circuit Diagram and PCB layout DC Speed Controller.

 
Circuit Diagram






PCB Layout






Circuit DC Speed Controller




DC SPEED CONTROLLER COMPONENTS

Components use in Motor DC Speed Controller.
  
1.   Resistor 5% 1/4W:

  • Resistor 10 ohm
  • Resistor 470 ohm
  • Resistor 560 ohm
  • Resistor 10K ohm
  • Resistor 33K ohm
  • Resistor 2K ohm

2.   Koa trimpot 500 ohm
3.   Potentiometer 10K, Washer and Nut 
4.   1N4004
5.   Ecap 10uF/50V
6.   Monocap 100nF
7.   Electrolytic 100uF/25V
8.   Heatsink 
9.   Nmos LM/NE556
10. Mosfet IRFZ44N
11. Transistor BC547
12. IC socket 14 pin 
13. Nut and screw heatsink
14. Terminal block two pole
15. PCB board 

SIM 900 GSM/GPRS SHIELD FOR ARDUINO

SIM 900 GSM/GPRS SHIELD is compatible with arduino and it use AT command.

 

 Features

  •    Quad-Band 850/900/1800/1900MHz
  •    GPRS multi-slot calss 10/8
  •    GPRS mobile station class B
  •    Compliant to GSM phase 2/2+
  •    Class 4 (2W@850/900MHz)
  •    Class 1 (1W@1800/1900MHz)
  •    Control   via   commands   (GSM   07.07,   07.05   and   SIMCOM enhanced   AT Commands)
  •    Short message service
  •    Free serial port selection
  •    All SIM900 pins breakout
  •    RTC supported with SuperCap
  •    Operation temperature: -40℃~ +85℃ 
  
 


Specifications





 
Electrical Characteristics 

 

SIM900

 

 

TOP SIM900




 
BOTTOM SIM900

 

 

Schematic Diagram SIM900