2012_331AC_P3

Wiki error: Section name cannot be repeated ' '

Project Name [edit]

  [edit]

I. Project Description

Placuta se conecteaza la EV/Z3 prin portul serial si pe LCD-ul placii va fi afisata temperatura masurata de senzorul LM35 la diferite intervale de timp. O alarma va fi afisata atunci cand senzorul de gaz citeste o cantitate de gaz peste o anumita limita.

II. Project Requirements

What does the project require to be implemented (both hardware and software). Expected behavior.

Theacher Proposal
- placa cu PIC - cu 2 senzori.
Soft: trimite-ti datele prin seriala la placa Z3, afisati pe LCD Z3 la interval de timp starea senzorilor.
Aveti optiune de la tastatura sa configurati intervalul de afisare si ordinea.

 

III. User Flow

 Utilizatorul poate masura temperatura dintr-o camera si sa se asigura ca exista o limita normala de cantitate de gaz in aer. 

IV. Required components        

  • R1,R6 2x 100K/0.25W
  • R4 1x 100R/0.25W
  • C3-C7 5x 1MF/50V 4*7mm
  • C8-C9 2x 47NF/630V NEPOL.
  • B1 1x PUSH BUTTON KRS1273
  • PIC16F628A 1x PIC16F628AI/P
  • MAX232 1x MAX232 CPE
  • LM7805 1x 7805
  • soclu 18 pini pt PIC+MAX 2x LC18
  • placa test 100x100
  • 1 mufa DB9 TATA 2x DB9PF
  • Un cablu serial MAMA-MAMA
  • Conectorul de sursa J3
  • Programator PIC - Vellman VM 134 Pic Programmer
  • letcon
  • fludor
  • senzor temperatura LM35
  • senzor gaz MQ-4
  • alimentator
  • releu


V. Hardware Design

 poza2

poza1 

proteus

 

 

VI. Software Design

#include "platform_io.h"

const char *welcome = "Laborator SMP ";

const char *serialStart = "Please send data";

static SerialConfig serialConf;

unsigned char buffer[32];
unsigned char c;

int main()
{
int key = 0;

/* display our welcome message */
kIo.DisplayString(welcome);

/* Serial Initialization */
serialConf.baudRate = b9600;
serialConf.parity = none;
serialConf.stopBits = one;
serialConf.wordLength = eight;
/* In order to check what EV/Z3 board is echoing on the serial port
* open Hyperterminal, create a new connection using the above parameters,
* Flow control: Hardware and Settings/Emulation: ANSI, connect and type some chars in it */

kIo.SerialInit(&serialConf);

/* wait for a key to be pressed */
key = kIo.ReadKey();

/* display start of the serial transmision */
kIo.DisplayString(serialStart);

while (1) {
int done,j=0;
do
{
done=0;
kIo.SerialRead(COM1,c,1);
if(c!=10 && c!=13) buffer[j++]=c;
if(c==10) { buffer[j]=0;done=1;}
}
while(!done);
kIo.DisplayString(buffer);

}

return 0;
}

VII. Results

Data about the final project implementation. Includes screenshots, movies, comments about your project in action.

VIII. Download

After you have presented your project at the laboratory (week 13-14) you will add all your sources here. Any hardware simulation used, code archive and so on.

IX. Status  

21.03-3.04 :

  • analiza proiect 
  • stabilit senzori folositi
  • achizitionare componente
  • documentatie pdf-uri EV/Z3 + data sheet-uri componente
3.04-17.04 :
  • circuit implementat in Proteus
  • construire placuta
17.04-8.05: 
  • programare si testare

X. Personal Contribution

Stamatescu Ana : parte hardware + parte fisier .asm (comunicatia pe seriala)

Vidrascu Irina : parte hardware + parte fisier .asm (init. bancuri memorie, bucla principala)