Beruflich Dokumente
Kultur Dokumente
1.1
OBJECTIVE
The main aim of this project is Automating the process of measurement of electric
energy through digital communication techniques. GSM based communication is used to transfer the amount of energy consumed and its respective cost to EB Office and also to consumer mobile. Automatic Meter Reading is the technology of automatically collecting data from energy metering devices and transferring that data to a central data base for billing or analyzing. This saves employee trips and means that billing can be based on actual consumption rather than or an estimate based on previous consumptions giving customers better control of their use of electric energy.
where a pointer indicates each digit. With the dial pointer type, adjacent pointers generally rotate in opposite directions due to the gearing mechanism. The amount of energy represented by one revolution of the disc is denoted by the symbol kh which is given in units of watt-hours per revolution. The value 7.2 is commonly seen. Using the value of kh, one can determine their power consumption at any given time by timing the disc with a stopwatch. If the time in seconds taken by the disc to complete one revolution is t, then the power in watts is P= (3600.kh)/t. For example, if kh=7.2, as above, and one revolution took place in 14.4 seconds, the power is 1800 watts. This method can be used to determine the power consumption of household devices by switching them on one by one. Most domestic electricity meters must be read manually, whether by a representative of the power company or by the customer. Where the customer reads the meter, the reading may be supplied to the power company by telephone, post or over the internet. The electricity company will normally require a visit by a company representative at least annually in order to verify customer-supplied readings and to make a basic safety check of the meter. [6] In an induction type meter, creep is a phenomenon that can adversely affect accuracy, which occurs when the meter disc rotates continuously with potential applied and the load terminals open circuited. A test for error due to creep is called a creep test. [6]
gives the Energy. The unit of energy is kWh. All these calculations are carried out in PIC16F877A controller to which the analog signals are given to the analog input pins. PIC controller has an inbuilt analog to digital converter. The calculated energy is displayed along with the amount consumed in a 16x2 LCD display.
Dual Band or Triband GSM GPRS modem (EGSM 900/1800MHz) / (EGSM Designed for GPRS, data, fax, SMS and voice applications Fully compliant with ETSI GSM Phase 2+ specifications (Normal MS) Interfaces
RS-232 through D-TYPE 9 pin connector Power supply through Molex 4 pin connector SMA antenna connector Toggle spring SIM holder Red LED Power on Green LED status of GSM / GPRS module Our project follows this method of GSM based communication to transmit the energy
Utilizing an existing cellular network for data transportation requires no additional equipment or software, resulting in a significant savings in both time and capital. Cellular technology utilizes an encryption technique to prevent an outside source from receiving the transmitted data. The cellular network provides full two-way communications, allowing scheduled reads, demand reads, alarm and event reporting, power outage reporting and power restoration reporting.[3]
Meters and Data Concentrator Unit (DCU): Communication channel used DCU and Host Central Station (HCS): Communication channel used
between DCU and HCS is the standard GSM, CDMA, RF or PSTN Network.
Most economically viable technology for transferring Meter data to DCU. Uses the technique of communicating the data over existing Electrical Lines which carry LT power to the site. Employs an ASIC, which accepts digital data & converts it into FSK modulation and transmits it over the power line by sensing a zero crossing of 220V sine wave. Typical frequency used for frequency modulation is 132 KHz.
Accurate meter reading, no more estimates Improved billing Accurate Profile Classes and Measurement Classes, true costs applied Energy Management through profile data graphs Less financial burden correcting mistakes Less accrued expenditure Less time chasing call centres to provide meter readings Transparency of cost to read metering Improved procurement power though more accurate data de-risking price. Increased Data Security Automatic meter reading provides increased performance in the data collection. You avoid reading errors and missing meter readings. Reading data automatically also provides increased security of data flow between the AMR system and other applications. Avoiding manual data entry or manual data transfer a potential source of error is eliminated.
Reduced operation costs With automatic meter reading you have constant access to real-time data and have meter readings available on request. This helps you handling customer complaints. Readings in connections with med move-in/move-out are done easier and faster and even retroactive, should a costumer forget to notify change of address in due time. Costs for meter reading will be reduced and thereby total costs of operation.
Reduced cost over the life time of the AMR system The financial benefits of automatic meter reading last over the lifetime of the AMR system. Improved cash flow budgeting and management With automatic meter reading utility bills are based on actual consumption. This generates a steady cash flow. Billing is based on real-time data and estimated bills are no longer necessary.
Improved customer service With accurate utility invoices there is no need for estimates or adjusted billing. Demand reads can be done as part of the customer service. You can react quicker in abnormal situations and monitor demand and consumption closely. And you strengthen your image with the consumer as a reliable partner within energy supply and energy billing services.[1]
Wireless Automatic Meter Reading System (WARMS) The main goal of WAMRS project was to send periodical readings of an electricity
meter wirelessly to a server in the billing office of the electricity supply company. There were central points covering each geographical area, since each premises unit would have limited range of wireless coverage, while the central points would have long-range wireless transmitters that could deliver the meter-reading data over long distances to the billing office. The server in the billing office had a highly secure database system which enabled authorized staff members of the electricity supply company to read and print electricity bills. For premises out of the coverage area of any central point, the solution proposed was to make the nearest premises unit (covered by a central point) as the central point for such remote premises. This added a constraint on the wireless device used for such purpose because such a device should have the capability of both sending and receiving the data. [7]
10
Figure 2.1 Block diagram view of WARMS design The Sender (Premises Unit) consists of a Digital meter, Bus Controller, Microcontroller, NVRAM, Real Time Clock and Transmitting chip. The Energy consumed at the consumer end is obtained from the digital meter and the value is stored in the memory. It is then transmitted through Transmitting chip. When data has to be transmitted wirelessly over long distances, it is necessary to have some mechanism at predetermined distances from the sender for temporarily receiving and retransmission of data to the designated receiver. At the central points, the system will consist of a transceiver, microcontroller, the clock, and a NVRAM. This hardware is similar to the hardware at the Premises Unit, so at the time of implementation of the system, each premises unit can be conFigureured to behave both as a sender (when transmitting its data) and a central point unit (for temporarily receiving/retransmission of data coming from other neighbouring premises units) at different times.[7] The hardware at the billing office consisted of a receiving chip and a database server. The receiving chip receives the transmitted data. The database server requires software for communication with the premises unit of each consumer and, based on the consumption data received; it needs to generate an electricity bill. [7]
11
using GSM and auto metering with SMS reply systems. Mobile ad hoc networks are the future of wireless networks. Because they're practical, versatile, simple, easy to use and inexpensive! These networks provide a new approach for wireless communication and by operating in a license free frequency band prove to be relatively inexpensive.
12
13
The bridge rectifier has four diodes connected to form a bridge. The single phase ac input is applied to the diagonally opposite ends of the bridge. The dc output is obtained across the other two ends of the bridge. [5]
Figure.4.1.1 Bridge rectifier circuit During the positive half-cycle of the input ac voltage, diodes D1 and D2 conduct, whereas diodes D3 and D4 do not conduct. During the negative half-cycle of the input ac voltage, diodes D3 and D4 conduct, whereas diodes D1 and D2 do not conduct. In both the cases, the conducting diodes will be in series through the load and hence the current flows through the load. [5] The main advantage of bridge rectifier is that it does not need for a bulky center tapped transformer as in a full-wave rectifier. Transformer utilization factor is considerably high. [5]
1 phase, 230V ac supply is given to -15/+15 center tapped transformer. Bridge Rectifier converts this 15 V ac to 10 V dc Capacitor filter is used to filter out the ripples IC7805 converts +10V dc voltage to +5V dc voltage IC7812 converts +10V dc voltage to +12V dc voltage which is given as positive input to the op-amp. IC7912 converts -10V dc voltage to -12V dc voltage which is given as negative input to the op-amp.
14
Figure 4.1.3 Power Supply Design In Bridge Rectifier circuit, Vdc = 2Vm/ = 2*15/ = 9.687 Therefore Vdc is approximately 10V In Voltage Regulator circuit, Vm = 15V
15
Vrms = Vm/2 = 15/ 2 = 10.6V Ripple factor, = Vrms / Vdc = 10.6/10 = 1.06 = 1/(4 3*f*C) ; f = 100Hz 1.06 = 1/ (4 3*100*C) C = 1mF = 1000F
Figure 4.2 Toroidal Current Transformer The secondary winding can be single ratio or have several tap points to provide a range of ratios. Care must be taken that the secondary winding is not disconnected from its load while current flows in the primary, as this will produce a dangerously high voltage across the open secondary and may permanently affect the accuracy of the transformer.
16
Specially constructed wideband CTs are also used, usually with an oscilloscope, to measure high frequency waveforms or pulsed currents within pulsed power systems. One type provides a voltage output that is proportional to the measured current; another, called a Rogowski coil, requires an external integrator in order to provide a proportional output.[6] Doughnut shaped toroidal transformers are used to save space compared to EI cores, and sometimes to reduce external magnetic field. These use a ring shaped core, copper windings wrapped round this ring (and thus threaded through the ring during winding), and tape for insulation. [6] Toroidal transformers compared to EI core transformers: Lower external magnetic field Smaller for a given power rating Higher cost in most cases, as winding requires more complex and slower equipment Less robust Central fixing is either Bolt, large metal washers and rubber pads Bolt and potting resin Over-tightening the central fixing bolt may short the windings Greater inrush current at switch-on
Typically the secondary of a voltage transformer is rated for 6 V or 9 V at rated primary voltage of 240V, to match the input ratings of protective relays. The transformer winding high-voltage connection points are typically labeled as H1, H2 (sometimes H0 if it is internally grounded) and X1, X2 and sometimes an X3 tap may be present. Sometimes a second isolated winding (Y1, Y2, Y3) may also be available on the same voltage transformer. The high side (primary) may be connected phase to ground or phase to phase. The low side (secondary) is usually phase to ground. The terminal identifications (H1, X1, Y1, etc.) are often referred to as polarity. This applies to current transformers as well. At any instant terminals with the same suffix numeral have the same polarity and phase. Correct identification of terminals and wiring is essential for proper operation of metering and
17
protective relays. Some meters operate directly on the secondary service voltages at or below 600 V. VTs are typically used for higher voltages (for example, 765 kV for power transmission), or where isolation is desired between the meter and the measured circuit.
Figure 4.4 Precision rectifier circuit There are many applications for precision rectifiers, and most are suitable for use in audio circuits. A half wave precision rectifier is implemented using an op amp, and includes the diode in the feedback loop. This effectively cancels the forward voltage drop of the diode, so very low level signals (well below the diode's forward voltage) can still be rectified with minimal error. [4]
4.4.2 LIMITATIONS
The circuit has some serious limitations. The main one is speed. It will not work well with high frequency signals. For a low frequency positive input signal, 100% negative feedback is applied when the diode conducts. The forward voltage is effectively removed by the feedback, and the inverting input follows the positive half of the input signal almost perfectly. When the input signal becomes negative, the op amp has no feedback at all, so the output pin of the op amp swings negative as far as it can. When the input signal becomes positive again, the op amp's output voltage will take a finite time to swing back to zero, then to forward bias the diode and produce an output. This time is determined by the op amp's slew rate, and even a very fast op amp will be limited to low frequencies.
Figure 4.5 Zero crossing detector A zero crossing detector is used for detecting the zero crossings of AC signals. A typical AC signal is the sine wave which goes up and down the zero level. Many electronic
19
systems need to know 'when' the signal crossed the zero level. The answer to that problem is the zero crossing detectors. [4] When the input voltage is positive, the output voltage is a positive value, when the input voltage is negative; the output voltage is a negative value. The magnitude of the output voltage is a property of the operational amplifier and its power supply. When used with a 15 V power supply and a 741C operational amplifier, Vsat+ is approximately 13.6 V and Vsatis approximately -14.3 V.
4.6 CONTROLLER
A microcontroller is a microprocessor which has I/O circuitry and peripherals built-in, allowing it to interface more or less directly with real-world devices such as lights, switches, sensors and motors. They simplify the design of logic and control systems, allowing complex behaviors to be designed into a piece of electronic or electromechanical equipment. They represent an approach which draws on both electronic design and programming skills; an intersection of what was once two disciplines, and is now called embedded design.
High-performance RISC CPU Lead-free: RoHS-compliant Operating speed:20Mhz, 200ns instruction cycle Operating voltage:4.0-5.5volts Industrial temperature range(-40 to +85 degrees) 15 Interrupt sources 35 single word instructions
Self-reprogrammable under software control In-circuit serial programming via two pins Watchdog timer with on-chip RC oscillator Programmable code protection Power-saving code protection Selectable oscillator options In-circuit debug via two pins
33 I/O pins : 5 I/O ports Timer0:8-bit timer/counter with 8-bit pre-scaler Timer1:16-bit timer/counter with pre-scaler Timer2:8-bit timer/counter with 8-bit period register, pre-scaler and post-scaler Two capture, compare, PWM modules Synchronous serial port with two modes USART/SCI with 9-bit address detection Parallel slave port Brown-out detection circuitry for brown-out reset
And optionally:
5 x 8 dots with cursor Built-in controller (KS 0066 or Equivalent) + 5V power supply (Also available for + 3V) 1/16 duty cycle B/L to be driven by pin 1, pin 2 or pin 15, pin 16 or A.K (LED) N.V. optional for + 3V power supply The other notable key features are 16x2 LCD Alphanumeric Display Simple serial (1 wire) connection to microcontroller (2400,N,8,1). Optional i2c interface to PICAXE-X parts. 7 Programmable pre-defined messages Small footprint (almost same size as the LCD).
23
Optional low-cost clock upgrade, providing Real Time Clock Programmable Alarm Output 1Hz pulse output 10 year battery backup
24
transfer rate of each individual path may be faster. This can be used over longer distances as a check digit or parity bit can be sent along it easily. In telecommunications, parallel transmission is the simultaneous transmission of the signal elements of a character or other entity of data. In digital communications, parallel transmission is the simultaneous transmission of related signal elements over two or more separate paths. Multiple electrical wires are used which can transmit multiple bits simultaneously, which allows for higher data transfer rates than can be achieved with serial transmission. This method is used internally within the computer, for example the internal buses, and sometimes externally for such things as printers, The major issue with this is "skewing" because the wires in parallel data transmission have slightly different properties (not intentionally) so some bits may arrive before others, which may corrupt the message. A parity bit can help to reduce this. However, electrical wire parallel data transmission is therefore less reliable for long distances because corrupt transmissions are far more likely.
4.10 MAX232
The MAX232 is an integrated circuit that converts signals from an RS-232 serial port to signals suitable for use in TTL compatible digital logic circuits. The MAX232 is a dual driver/receiver and typically converts the RX, TX, CTS and RTS signals. Since the RS232 is not compatible with todays microprocessors and microcontrollers, we need a line driver (voltage converter) to convert the RS232s signals to TTL voltage levels that will be acceptable to the controllers TxD and RxD pins. One such a converter is MAX232 from Maxim Corp. the MAX232 converts from RS232 voltage levels to TTL voltage levels and vice versa.
One advantage of the MAX232 chip is that it uses a +5V power source which is the same as the source voltage for the PIC controller. In other words, with a single +5V power supply we can power both the PIC and MAX232, with no need for the dual power supplies that are common in many older systems
Operates From a Single 5-V Power Supply with 1.0-F Charge-Pump Capacitors Operates Up To 120 kbit/s Two Drivers and Two Receivers
25
Low-Power Receive Mo d e in Shut down Meet All EIA/TIA- 2 3 2E an d V. 2 8 Specifications Multiple Drivers and Receivers 3 -St a t e Dr iv e r and Receiver Ou tp u t s30-V Input Levels Low Supply Current 8 mA Typical Applications TIA/EIA-232-F, Battery-Powered Systems, Terminals, Modems, and computers
26
Figure 4.10.2 Functional diagram of MAX232 The R1 line driver has a designation of R1 in and R1 out on pin numbers 13 and 12, respectively. The R1 in pin is the RS232 side that is connected to the TxD pin of the RS232 DB connector, while R1 out is the TTL side and is connected to RxD of the microcontroller.
Portable Computers Low-Power Modems Interface Translation Battery-Powered RS232 Systems Multidrop RS232 Networks
4.11 RS232
27
RS-232 is defined as the Interface between data terminal equipment and data communication equipment using serial binary data exchange. This definition defines data terminal equipment (DTE) as the computer, while data communications equipment (DCE) as the modem. A modem cable has pin-to-pin connections, and is designed to connect a DTE device to a DCE device. The TD (transmit data) wire is the one through which data from a DTE device is transmitted to a DCE device. This name can be deceiving, because this wire is used by a DCE device to receive its data. The TD line is kept in a mark condition by the DTE device when it is idle. The RD (receive data) wire is the one on which data is received by a DTE device. RTS stands for Request To Send. This line and the CTS line are used when hardware flow control is enabled in both the DTE and DCE devices. The DTE device puts this line in a mark condition to tell the remote device that it is ready and able to receive data. If the DTE device is not able to receive data (typically because its receive buffer is almost full). It will put this line in the space condition as a signal to the DCE to stop sending data. When the DTE device is ready to receive more data (i.e. after data has been removed from its receive buffer), it will place this line back in the mark condition. The complement of the RTS wire is CTS, which stands for Clear to Send. The DCE device puts this line in a mark condition to tell the DTE device that it is ready to receive the data. Likewise, if the DCE device is unable to receive data, it will place this line in the space condition. Together, these two lines make up what is called RTS/CTS or hardware flow control. The Software Wedge supports this type of flow control, as well as Xon/Xoff or software flow control. Software flow control uses special control characters transmitted from one device to another to tell the other device to stop or start sending data. With software flow control the RTS and CTS lines are not used. DTR stands for Data Terminal Ready. Its intended function is very similar to the RTS line. DSR (Data Set Ready) is the companion to DTR in the same way that CTS is to RTS. Some serial devices use DTR and DSR as signals to simply confirm that a device is connected and is turned on. The Software Wedge sets DTR to the mark state when the serial port is opened and leaves it in that state until the port is closed. The DTR and DSR lines
28
were originally designed to provide an alternate method of hardware handshaking. It would be pointless to use both RTS/CTS and DTR/DSR for flow control signals at the same time. Because of this, DTR and DSR are rarely used for flow control. CD stands for Carrier Detect. Carrier detect is used by a modem to signal that it has made a connection with another modem, or has detected a carrier tone. The last remaining line is RI or Ring Indicator. A modem toggles the state of this line when an incoming call rings your phone. The Carrier Detect (CD) and the Ring Indicator (RI) lines are only available in connections to a modem. Because most modems transmit status information to a PC when either a carrier signal is detected (i.e. when a connection is made to another modem) or when the line is ringing, these two lines are rarely used.
4.14 GSM
Global System for mobile communication (GSM) is a globally accepted standard for digital cellular communication. The GSM standard has been an advantage to both consumers, who may benefit from the ability to roam and switch carriers without replacing phones, and also to network operators, who can choose equipment from many GSM equipment vendors. GSM also pioneered low-cost implementation of the short message service (SMS), also called text messaging, which has since been supported on other mobile phone standards as well. The GSM network is divided into 3 major systems: Switching System Base Station System Operation and Support System
30
31
The OSS is the functional entity from which the network operator monitors and controls the system. The purpose of OSS is to offer the customer cost-effective support for centralized, regional and local operational and maintenance activities that are required for a GSM network.
Bandwidth the range of a channels limits; the broader the bandwidth, the faster data can be sent Bits per second (bps) a single on-off pulse of data; eight bits are equivalent to one byte Frequency the number of cycles per unit of time; frequency is measured in hertz (Hz) Kilo (k) kilo is the designation for 1,000; the abbreviation kbps represents 1,000 bits per second Megahertz (MHz) 1,000,000 hertz (cycles per second) Milliseconds (ms) one-thousandth of a second
32
33
init_gsm(); SEND(char); void write(char); void lcd_dis(const unsigned char *word,unsigned int n); void del(); static bit rs @((unsigned) &PORTE*8+0); static bit rw @((unsigned) &PORTE*8+1); static bit en @((unsigned) &PORTE*8+2); static bit h_beat @((unsigned) &PORTD*8+0); void delay(unsigned int del); //DELAY(unsigned int); void timer_init(); void adc2(); void adc1(); void adc0(); //void adc_dis(unsigned char); void disp(); unsigned char current,voltage,pf1,count,temp,sec,msec,b1,b2,b3,h1,h2,h3,unit,unit1,amt; unsigned int i; signed float uni,uni1; void main() { RD7=0; //RC2=1; //RC1=1; TRISC=0XF6; TRISB=0; timer_init(); TRISA=0X0F; TRISD=0X03; ADCON1=0X02; lcd_init();
35
command(0x06); command(0x80); RCSTA=0X80; TXSTA=0X00; BRGH=1; SPBRG=129; //9600 TXEN=1; RCSTA=0X90; CREN=1; lcd_dis(" GSM BASED command(0xc0); lcd_dis("EB BILLING . . . del(); del(); del(); del(); del(); del(); del(); del(); del(); del(); del(); del(); del(); del(); del(); del(); adc0(); adc1(); adc2(); RD3=0; command(0xC0); lcd_dis(" ",16);
36
",16); ",16);
T0CS=0; // timer on command(0x80); lcd_dis("V: I: P: command(0xc0); lcd_dis("UNIT: while(1) { count=0; TMR1H=0xFF; TMR1L=0x9b; adc1(); adc0(); adc2(); if(current!=0) { while(RC1==0); TMR1ON=1; while(RC2==0); TMR1ON=0; pf1=((cos(((count*1.8*3.14)/(2*180))))*100); } else pf1=0; //pf=pf1/100; command(0x8c); write(pf1/100+0x30); write('.'); write((pf1%100/10)+0x30); write(pf1%10+0x30); //cur=current/10; if(sec>10) {
37
",16); ",16);
sec=0; //power=voltage*cur*pf; uni=uni+(voltage*current*pf1)/10000; unit=uni; uni1=uni1+(voltage*current*pf1)/10000; unit1=uni1; T0CS=1; command(0xc5); write(unit/100+0x30); write((unit%100/10)+0x30); write(unit%10+0x30); T0CS=0; }
if(temp<100) { T0CS=1; command(0xc5); write(unit1/100+0x30); h1=(unit1/100+0x30); write((unit1%100/10)+0x30); h2=((unit1%100/10)+0x30); write(unit1%10+0x30); h3=(unit1%10+0x30); amt=unit1*5; command(0xc9); write('A'); write('M'); write('T'); write(':'); write(amt/100+0x30);
38
b1=(amt/100+0x30); write((amt%100/10)+0x30); b2=((amt%100/10)+0x30); write(amt%10+0x30); b3=(amt%10+0x30); // T0CS=1; init_gsm(); uni1=0; T0CS=0; } del(); del(); } }
void interrupt timer() { if(TMR1IF==1) { TMR1IF=0; count++; TMR1H=0xff; TMR1L=0x9b; } if(T0IF==1) { T0CS=1; //off T0IF=0; msec++; if(msec>=100){msec=0; sec++;} TMR0 = 0XD9; T0CS=0; //on
39
} }
void timer_init() { GIE=1; PEIE=1; T0IE=1; TMR1IE=1; TMR0IE=1; TMR1ON=0; OPTION = 0X87; // timer reg set value for one sec TMR0 = 0xd9; T0CS=1; //off } OPTION = 0x07; // enable global interrupt // enable peripheral interrupt // enable timer0 interrupt // set prescale (256)
void adc0() { ADCON0=0x00; ADON=1; delay(500); ADCON0 =0x05; go/done bit high while(ADCON0!=0X01); finished or not temp=ADRESH; } void adc1() {
40
// Channel select // ADC module ON // selecting a particular channel and making the // Chk whether conversion // Taking Higher reg
ADCON0=0x08; ADON=1; delay(500); ADCON0 =0x0d; while(ADCON0!=0X09); voltage=ADRESH; command(0x82); write(voltage/100+0x30); write((voltage%100/10)+0x30); write(voltage%10+0x30); }
void adc2() { ADCON0=0x10; ADON=1; delay(500); ADCON0 =0x15; while(ADCON0!=0x11); current=ADRESH; command(0x87); //write(current/1000+0x30); write(current/100+0x30); write(current%100/10+0x30); write('.'); write(current%10+0x30); }
void del() {
41
void delay(unsigned int del) { while(del--); } void lcd_init() { TRISB=0X00; TRISE=0X00; // TRISD=0X00; // TRISC=0XFF; command(0x38); command(0x06); command(0x0c); command(0x01); RC4=1; RC3=1; //RC2=1; //RC1=1; RC6=1; } void command(char s)
42
void write(char s) { PORTB=s; PORTE=0x05; for(i=0;i<125;i++); PORTE=0x01; for(i=0;i<500;i++); } void lcd_dis(const unsigned char *word,unsigned int n) { unsigned char i; for(i=0;i<n;i++) { write(word[i]); } } init_gsm() {
43
// 0000 0001
for(i=0;i<2;i++) {SEND(CSQ[i]);} SEND(0X0D);//SEND(0X0A); for(j=0;j<59000;j++);for(j=0;j<59000;j++);for(j=0;j<59000;j++); //500ms for(j=0;j<59000;j++); for(i=0;i<9;i++) { SEND(CMGF[i]); } SEND(0X0D);//SEND(0X0A); for(j=0;j<59000;j++);for(j=0;j<59000;j++);for(j=0;j<59000;j++); for(j=0;j<59000;j++); //500ms for(i=0;i<8;i++) { SEND(CMGS[i]); } SEND('"'); for(i=0;i<10;i++) { SEND(MOBILE[i]); } SEND('"'); SEND(0X0D);//SEND(0X0A); for(j=0;j<59000;j++);for(j=0;j<59000;j++);for(j=0;j<59000;j+ +);for(j=0;j<59000;j++); SEND('U');SEND('N');SEND('I');SEND('T');SEND(' '); SEND(h1);SEND(h2);SEND(h3);SEND(' '); SEND('A');SEND('M');SEND('O');SEND('U');SEND('N'); SEND('T');SEND(' ');SEND(b1);SEND(b2);SEND(b3);SEND(' '); SEND(0X1A); for(j=0;j<59000;j++);for(j=0;j<59000;j++);for(j=0;j<59000;j+ +);for(j=0;j<59000;j++); for(j=0;j<59000;j++);for(j=0;j<59000;j++); } //500ms
44
100W load for 10 seconds as 1 unit instead of 1kWhr = 1 unit Instead of using a Timer to generate an interrupt once in 2months we have used a switch to generate an interrupt to transmit the energy consumed and bill amount to the EB office.
5.1 CALCULATIONS
Energy = power x time 1 kWhr = 1 unit (actual value) 100W load for 10 seconds = 1 unit (assumed value) P Watts load for 10 seconds in kWhr = P1000103600 kWhr 100 W load for 10 seconds in kWhr = 1001000103600 kWhr = 2.7 x 10-6 P Watts load for 10 seconds in kWhr to be considered as 1 unit, Energy for every 10 seconds = P2.7 x 10-6 kWhr
UNITS CONSUMED 1
200 300
10 10
2 3
CHAPTER 6 CONCLUSION
This proposed Automated Electricity Billing system includes the procedure of sending the amount of energy consumed along with the corresponding cost to the EB office as well as displaying the same in the consumer end. The amount of energy consumed by the customer after a period of 2 months is sent to the EB office. The advantages of this Model are: Automation of all features including calculation of cost for the amount of energy consumed. Saves data using automatic control and storage systems. It involves less cost to communicate.
46
47
48
FEATURES
Thermal, short circuit and safe area protection High ripple rejection 1.5A output current 4% tolerance on preset output voltage
49
50
Table AT.4 Electrical Characteristics of LM7912 (Continued) Conditions unless otherwise noted: IoUT = 500mA, CIN = 2.2JF, C Power Dissipation 1.5W. Note 1: Absolute Maximum Ratings indicate limits beyond which damage to the device may occur. Operating Ratings indicate conditions for which the device is intended to be functional, but do not guarantee Specific Performance limits. For guaranteed specifications and test conditions, see the Electrical Characteristics. Note 2: Refer to Typical Performance Characteristics and Design Considerations for details. Note 3: Regulation is measured at a constant junction temperature by pulse testing with a low duty cycle. Changes in output voltage due to heating effects must be taken into account.
51
OUT
= 1JF, 0C Tj +125C,
52
DESCRIPTION/ORDERING INFORMATION
The MAX232 is a dual driver/receiver that includes a capacitive voltage generator to supply TIA/EIA-232-F voltage levels from a single 5-V supply. Each receiver converts TIA/EIA-232-F inputs to 5-V TTL/CMOS levels. These receivers have a typical threshold of 1.3 V, a typical hysteresis of 0.5 V, and can accept 30-V inputs. Each driver converts TTL/CMOS input levels into TIA/EIA-232-F levels. The driver, receiver, and voltagegenerator functions are available as cells in the Texas Instruments LinASIC library.
53
DRIVER SECTION
Electrical characteristics over recommended ranges of supply voltage and operating free-air temperature range
Table AT.7 Driver Section Electrical Characteristics t All typical values are at VCC = 5 V, TA = 25C. t The algebraic convention, in which the least-positive (most negative) value is designated minimum, is used in this data sheet for logic voltage levels only. Not more than one output should be shorted at a time. NOTE: Test conditions are C1-C4 = 1 |iF at VCC = 5 V 0.5 V.
Table AT.8 Driver Section Switching Characteristics NOTE: Test conditions are C1-C4 = 1 |iF at VCC = 5 V 0.5 V.
54
RECEIVER SECTION
Electrical characteristics over recommended ranges of supply voltage and operating free-air temperature range
All typical values are at VCC = 5 V, TA = 25C. The algebraic convention, in which the least-positive (most negative) value is designated
minimum, is used in this data sheet for logic voltage levels only. NOTE: Test conditions are C1-C4 = 1 |iF at VCC = 5 V 0.5 V.
Table AT.10 Receiver Section Switching Characteristics NOTE: Test conditions are C1-C4 = 1 |iF at VCC = 5 V 0.5 V.
55
FEATURES
Wide common-mode (up to Vcc+)and Differential voltage range Low input bias and offset current Output short-circuit protection High input impedance j-fet input Stage Internal frequency compensation latch up free operation high slew rate : 16v/us (typ)
56
Table AT.11 Absolute Maximum Ratings of TL082 All voltage values, except differential voltage, are with respect to the zero reference level of the supply voltages where the zero reference level is the midpoint between VCC+ and VCC-. Differential voltages are at the non-inverting input terminal with respect to the inverting input
57
terminal. The magnitude of the input voltage must never exceed the magnitude of the supply voltage or 15 volts, whichever is less. The output may be shorted to ground or to either supply. Temperature and /or supply voltages must be limited to ensure that the dissipation rating is not exceeded. ELECTRICAL CHARACTERISTICS Vcc = 15V, Tamb = 25oC
58
59
Operation Voltage(v) 0-5.0 Operation temperature -20-70 C Storage Temperature -30-80 C Character 16x2 lines LCD module Display
DISPLAY CHARACTERISTICS
LCD Display Mode STN Positive, Transflective yellow-green View Angle 6: 00 Driving Method 1/16 Duty, 1/5Bias Backlight yellow-green
60
INTERFACES
In addition to communications between computer equipment over telephone lines, RS-232 is now widely used for direct connections between data acquisition devices and computer systems. As in the definition of RS-232, the computer is data transmission equipment (DTE). However, many interface products are not data communications equipment (DCE). Null modem cables are designed for this situation; rather than having the pin- to-pin connections of modem cables, null modem cables have different internal wiring to allow DTE devices to communicate with one another.
61
DATA FORMAT
Start bit: Binary 0 Data: 5, 6, 7 or 8 bits Parity: Odd, even, mark or space (not used with 8-bit data) Stop bit: Binary 1, one or two bits
62
DEVICE FEATURES
PORT B FUNCTIONS
PORT D FUNCTIONS
65
REFERENCES
[1] Md. Wasi-ur-Rahman, Mohammad Tanvir Rahman, Tareq Hasan Khan and S.M. Lutful Kabir, (2009), Design of an Intelligent SMS based Remote Metering System, Proceedings of the 2009 IEEE International Conference on Information and Automation, pp1040-1043 [2] [3] Michel Mouly, Marie-Bernadette Pautet (1992), The GSM System for Mobile Rodney, H.G., Lee, C.H., Kean, C.S. and Mok, V.H. (May 2008), Automatic power Communications, Telecom Publishing meter reading and distribution control using ICT and GSM Networks, Proceedings of the 1st International Conference of P79-1 the IET Brunei Darussalam Network, 26-27 [4] [5] [6] [7] [8] [9] Roy Choudhury, D and Shail J. Jain (2003), Linear Integrated Circuits, New Age Salivahanan, S., Suresh Kumar, N. and Vallavaraj (2007), Electronics Devices and Sawhney, A.K. (2005), A Course in Electrical and Electronic Measurements and Tariq Jamil, (2008), Design and Implementation of a Wireless Automatic Meter Venables, M. (2007), Smart meters make smart consumers, IET Control and Vijayaraj, A. and Saravanan, R. (2010), Automated EB billing system using GSM International Publishers Circuits, The McGraw-Hill Companies Instrumentation, Dhanpat Rai & Co. publications Reading System, Proceedings of the World Congress on Engineering Vol I, pp217-221 Automation, Vol. 2, No. 4, p23 and Ad-hoc wireless routing, International Journal of Engineering and Technology Vol.2 (5), pp343-347
66