Termostat sa termistorom, termoparom, Pt100

Rasprava o PIC mikrokontrolerima, PIC projekti i drugo vezano za PIC-eve...

Moderators: pedja089, stojke369, [eDo], trax

Ivan
Pocetnik na forumu
Pocetnik na forumu
Posts: 35
Joined: 11-02-2005, 19:19

Re: Termostat sa termistorom, termoparom, Pt100

Post by Ivan »

Evo kucni termostat sa satom ,,,
Attachments
TermWe1.rar
(6.7 KiB) Downloaded 352 times
User avatar
electron
Pravo uznapredovao :)
Pravo uznapredovao :)
Posts: 225
Joined: 28-02-2009, 19:20
Location: Serbia

Re: Termostat sa termistorom, termoparom, Pt100

Post by electron »

Kako odraditi kod da prilikom reseta ili gasenja i novog paljenja uredjaja u memoriji ostanu zapisana podesavanja?

Code: Select all

TERMO VAR PORTA.0  'Senzor
HTEMP VAR PORTB.0  '+
LTEMP VAR PORTB.1  '-
ENTER VAR PORTB.2  'Potvrda (Enter)
EXIT  VAR PORTB.3  'Izlaz (Reset, Unos, Sve izpocetka)
HEAT  VAR PORTC.0  'Grejac
 
SENZOR  VAR WORD   'Promenljiva za smestanje sa merenja sa senzora
MAXTEMP VAR WORD   'Promenljiva za podesavanje temperature, Tasteri +-
OPSEG   VAR WORD   'Promenljiva za histerezis, Tasteri +-
REF     VAR WORD   'Promenljiva za racunanje
PT      VAR WORD   'Promenljiva za prikaz temperature  
HY      VAR BYTE   'Promenljiva za prikaz histereze  
ZT      VAR BYTE   'Promenljiva za prikaz zadane temperature
I       VAR BYTE   'Promenljiva za for next naredbe

 Primer :
 
 LCDOUT$FE,1,"TEMP JE: ", DEC ZT,178,"C"
 
 LCDOUT$FE,$C0,"Hysteresis  ",DEC HY,178,"C"
User avatar
pedja089
Administrator sajta
Administrator sajta
Posts: 7876
Joined: 20-02-2007, 14:50
Location: Beočin -Srbija

Re: Termostat sa termistorom, termoparom, Pt100

Post by pedja089 »

Ako PIC ima EEPROM onda ovako

Code: Select all

tmp1 var byte
tmp2 var byte

read 1,tmp1
read 2,tmp2
MAXTEMP.lowbyte =tmp1
MAXTEMP .highbyte=tmp2
.
.
.
.
.
.
.
.
.
.
.
.
Podesavanje
tmp1=MAXTEMP.lowbyte 
tmp2=MAXTEMP.highbyte
write 1,tmp1
write 2,tmp2
User avatar
electron
Pravo uznapredovao :)
Pravo uznapredovao :)
Posts: 225
Joined: 28-02-2009, 19:20
Location: Serbia

Signal kondicioner

Post by electron »

Pokusao sam da odradim kondicioner prema prilozenoj shemi, ali mi je javlja problem, naime tek kad na +Vcc/-Vcc dovedem +5V/GND on nekako proradi, medjutim potenciometi ne reaguju.Prilazem shemu (i u eaglu), pa ako neko nesto vidi...? Dali -Vcc i GND treba da budu spojeni?
Attachments
Signal kondicioner.rar
(142.85 KiB) Downloaded 304 times
User avatar
electron
Pravo uznapredovao :)
Pravo uznapredovao :)
Posts: 225
Joined: 28-02-2009, 19:20
Location: Serbia

Re: Termostat sa termistorom, termoparom, Pt100

Post by electron »

User avatar
electron
Pravo uznapredovao :)
Pravo uznapredovao :)
Posts: 225
Joined: 28-02-2009, 19:20
Location: Serbia

Re: Termostat sa termistorom, termoparom, Pt100

Post by electron »

Reseno +Vcc=+12V, -Vcc=-12V, GND=0V, zaboravio 0V :idea: Sve radi uredno, kao i podesavanja 0V i +5V
User avatar
pedja089
Administrator sajta
Administrator sajta
Posts: 7876
Joined: 20-02-2007, 14:50
Location: Beočin -Srbija

Re: Termostat sa termistorom, termoparom, Pt100

Post by pedja089 »

Ako imas noviji pbp potoji naredba read 0, word,i i. Ist postji i za log ako koristis 18f seriju...
User avatar
electron
Pravo uznapredovao :)
Pravo uznapredovao :)
Posts: 225
Joined: 28-02-2009, 19:20
Location: Serbia

Re: Termostat sa termistorom, termoparom, Pt100

Post by electron »

Post Reply