LCD PIC based Dual Voltmetar Ampermetar 0-40 V 0-4 A

Instrumenti

Moderators: pedja089, stojke369, [eDo], trax

Post Reply
User avatar
Khaderah
Odlično uznapredovao
Odlično uznapredovao
Posts: 967
Joined: 17-04-2012, 16:10
Location: Zagreb, Hrvatska

LCD PIC based Dual Voltmetar Ampermetar 0-40 V 0-4 A

Post by Khaderah »

Još jedan od panel metara
Baziran na PIC 16F887
s linka
http://kentar.net63.net/pic--voltmeter-ammeter-.html
pločica malo obrađena

Image
Image
Image
Image
Image
Image
Image
Image
LordZi
Pocetnik na forumu
Pocetnik na forumu
Posts: 31
Joined: 06-05-2010, 10:54

Re: LCD PIC based Dual Voltmetar Ampermetar 0-40 V 0-4 A

Post by LordZi »

Super si to napravio, uzdravlje da se sluzis... :wink:
Zanimaju me nekoliko stvari - kakva je preciznost merenja, dali je prikazivanje stabilno, t.j. dali brojke igraju gore-dole, posebno na ampermetru?
Pitam jer sam pravio nesto veoma slicno ovome samo sa 16F877 i prikazivanje struje iznad 0,5-0,6A je bilo nestabilno, brojke su se celo vreme vrtele oko neke srednje vrednosti, ispod toga je bilo OK...
User avatar
Khaderah
Odlično uznapredovao
Odlično uznapredovao
Posts: 967
Joined: 17-04-2012, 16:10
Location: Zagreb, Hrvatska

Re: LCD PIC based Dual Voltmetar Ampermetar 0-40 V 0-4 A

Post by Khaderah »

Pokazivanje je dosta stabilno, nema skakanja brojki, točnost je ok
ustalom za podešenja imaš 10K trimere samo trebaš dobar instrument za kalibraciju
po mogučnosti analogni, na slikama sam spojio malu bušilicu
napravim još testova pa postam
User avatar
baltazar
Posts: 22
Joined: 10-05-2009, 11:55

Re: LCD PIC based Dual Voltmetar Ampermetar 0-40 V 0-4 A

Post by baltazar »

Da li meri i negativne napone, tj. da li moze da se koristi u simetricnim izvorima napajanja.
User avatar
Khaderah
Odlično uznapredovao
Odlično uznapredovao
Posts: 967
Joined: 17-04-2012, 16:10
Location: Zagreb, Hrvatska

Re: LCD PIC based Dual Voltmetar Ampermetar 0-40 V 0-4 A

Post by Khaderah »

Čim stigne TLV
http://www.ruggedcircuits.com/html/circuit__14.html

isprobam jednu granu složiti za mjerenje negativnog napona
pošto je autor ustupio source code
User avatar
Khaderah
Odlično uznapredovao
Odlično uznapredovao
Posts: 967
Joined: 17-04-2012, 16:10
Location: Zagreb, Hrvatska

Re: LCD PIC based Dual Voltmetar Ampermetar 0-40 V 0-4 A

Post by Khaderah »

Testovi s ref izvorom.

Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Maki
Odlično uznapredovao
Odlično uznapredovao
Posts: 766
Joined: 02-07-2012, 12:54

Re: LCD PIC based Dual Voltmetar Ampermetar 0-40 V 0-4 A

Post by Maki »

Bok !
Imam jedno pitanje . A to je vidim kako na prvim slikama ispod napona prikazuje struju dok na ovim novim prikazuje unakrsno tj. gore lijevo napon a dolje desno struju . Dal se to moze birat il ? Inace plocica ti je ispala super , nikak da i ja krenem u izradu takvog projekta ...
User avatar
Khaderah
Odlično uznapredovao
Odlično uznapredovao
Posts: 967
Joined: 17-04-2012, 16:10
Location: Zagreb, Hrvatska

Re: LCD PIC based Dual Voltmetar Ampermetar 0-40 V 0-4 A

Post by Khaderah »

Svaki ulaz je neovisan, možeš spajati kako ti odgovara , ja sam spojio tako jer su mi žice bile prekratke :ohno:
LordZi
Pocetnik na forumu
Pocetnik na forumu
Posts: 31
Joined: 06-05-2010, 10:54

Re: LCD PIC based Dual Voltmetar Ampermetar 0-40 V 0-4 A

Post by LordZi »

@Khaderah,
mozes li mi molim te skicirati kako si vezao potrosac da bi merio napon i struju istovremeno, prikazivanje napona radi super, ali za struju mi daje 10 puta umanjenu vrednost, pr. za 1,5A na displeju se ispisuje 0,15A. Otpornici u krugu LM358 su ispravnih vrednosti, proverio sam, potrosac je vezan prema slici:

Image

Interesantno je sto kad vezem izvor direktno kao na sledecoj slici (znaci sa obrnutim polaritetom) i nista nije prikljuceno na ulaz za napon, tacno prikazuje struju kratkog spoja:

Image

Isto tako cemu sluzi jumper (prepostavljam da je jumper) obelezen belim krugom na slikama ...?
User avatar
Khaderah
Odlično uznapredovao
Odlično uznapredovao
Posts: 967
Joined: 17-04-2012, 16:10
Location: Zagreb, Hrvatska

Re: LCD PIC based Dual Voltmetar Ampermetar 0-40 V 0-4 A

Post by Khaderah »

Shema spoja obrati pozornost na polaritet
Attachments
meter.jpg
meter.jpg (11.99 KiB) Viewed 9454 times
User avatar
Khaderah
Odlično uznapredovao
Odlično uznapredovao
Posts: 967
Joined: 17-04-2012, 16:10
Location: Zagreb, Hrvatska

Re: LCD PIC based Dual Voltmetar Ampermetar 0-40 V 0-4 A

Post by Khaderah »

Sad sam vidio drugi dio pitanja , to nije jumper već kond. RC za oscilator

Even though the microcontroller has a built-in oscillator, it cannot operate without external components which stabilize its operation and determine its frequency (operating speed of the microcontroller). Depending on elements in use as well as their frequencies, the oscillator can be run in four different modes:

LP - Low Power Crystal;
XT - Crystal / Resonator;
HS - High speed Crystal / Resonator; and
RC - Resistor / Capacitor.


RC mode. In RC mode, the RC circuit is connected to the OSC1 pin as shown in figure. The OSC2 pin outputs the RC oscillator frequency divided by 4. This signal may be used for calibration, synchronization or other application requirements.

Fig. 8-9 RC Mode


RCIO mode
RCIO mode. Similar to the previous case, the RC circuit is connected to the OSC1 pin. This time, the available OSC2 pin is used as additional general purpose I/O pin.

Fig. 8-10 RCIO Mode

In both cases, it is recommended to use components as shown in figure.
The frequency of such oscillator is calculated according to the formula f = 1/T in which:
f = frequency [Hz]
T = R*C = time constant [s]
R = resistor resistance [Ω]
C = capacitor capacity [F]

http://www.mikroe.com/chapters/view/9/c ... -circuits/
http://share.pdfonline.com/1aac8ca665db ... mples).htm
Attachments
RC.png
RC.png (47.82 KiB) Viewed 9430 times
User avatar
Khaderah
Odlično uznapredovao
Odlično uznapredovao
Posts: 967
Joined: 17-04-2012, 16:10
Location: Zagreb, Hrvatska

Re: LCD PIC based Dual Voltmetar Ampermetar 0-40 V 0-4 A

Post by Khaderah »

Primjer

8MHz Oscillator


The EASY8051A development system has built-in oscillator used as a clock signal generator. The frequency of this oscillator is stabilized by 8Hz quartz crystal. Besides, it is also possible to select internal RC oscillator during chip programming,.
Attachments
15.gif
15.gif (21.24 KiB) Viewed 9428 times
LordZi
Pocetnik na forumu
Pocetnik na forumu
Posts: 31
Joined: 06-05-2010, 10:54

Re: LCD PIC based Dual Voltmetar Ampermetar 0-40 V 0-4 A

Post by LordZi »

Hm, kod mene radi i bez tog kondenzatora, napon meri super precizno na oba ulaza, a kad sam povezao potrosac prema tvojoj shemi tacno prikazuje i struju, jedino sto na displeju drugog kanala na kome nema nista povezano prikazuje neku malu struju reda 0,05A...
Koju vrednost kondenzatora si ti stavio...?
User avatar
Khaderah
Odlično uznapredovao
Odlično uznapredovao
Posts: 967
Joined: 17-04-2012, 16:10
Location: Zagreb, Hrvatska

Re: LCD PIC based Dual Voltmetar Ampermetar 0-40 V 0-4 A

Post by Khaderah »

Vrijednost 100 nF ( All caps 0,1) piše na pločici
Za preciznije mjerenje sam upotrijebio 0,22 Ohm/5W umjesto 0,1 Ohm/5W i podesio trimerima
Ako ulaz nije spojen , trimerom spusti na 0
User avatar
Khaderah
Odlično uznapredovao
Odlično uznapredovao
Posts: 967
Joined: 17-04-2012, 16:10
Location: Zagreb, Hrvatska

Re: LCD PIC based Dual Voltmetar Ampermetar 0-40 V 0-4 A

Post by Khaderah »

ma raditi će i bez toga kond.
ja sam ga stavio radi stabilnosti
tu inače možeš staviti push button
kao što je u postu s primjeru
Post Reply