Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

PIC Interface with PC

Status
Not open for further replies.

sangeo

Member level 2
Joined
Jun 2, 2013
Messages
44
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,647
Haii all,
I am developing a temperature measuring system using PIC16F877A .My question is there is any free/open source software(windows) available for monitoring temperature in my PC, ie simply I am sending temperature readings through rs 232 protocol and the software reads that value from computers rs232 port and displaying the temperature that’s all .I don’t know this type of interfacing, I knew only reading displaying with lcd/led etc. If it is possible please give me the name of software’s which can simply configurable.
Thanks in advance....

Sangeo..
 

horace1

Advanced Member level 5
Joined
Nov 18, 2008
Messages
2,123
Helped
596
Reputation
1,188
Reaction score
573
Trophy points
1,393
Location
Norwich, UK
Activity points
13,071

sangeo

Member level 2
Joined
Jun 2, 2013
Messages
44
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,647
ok horace1... but unfortunately i don't know c++ and c# any way i will try ... Thanks horace1
 

milan.rajik

Banned
Joined
Apr 1, 2013
Messages
2,528
Helped
540
Reputation
1,078
Reaction score
523
Trophy points
1,393
Activity points
0
You can use Termite Serial Terminal software. In your PIC code just convert the ADC value to string and send it like "27.23\r\n". Do this whenever current temperature is not equal to previous temperature then you will be able to see the data on PC.

If you want I will write a PIC code for LM35 temperature monitoring using mikroC PRO PIC with UART code.
 

sangeo

Member level 2
Joined
Jun 2, 2013
Messages
44
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,647
Thanks Mr milan.rajik .This is the first time i am hearing about the Termite Serial Terminal software,i am also using microc IDE so if u give a sample code for lm35, it will help me a lot.Thank for your time and consideration.
 

milan.rajik

Banned
Joined
Apr 1, 2013
Messages
2,528
Helped
540
Reputation
1,078
Reaction score
523
Trophy points
1,393
Activity points
0
Hi

Here I am attaching mikroC PRO PIC project for PIC16F877A at 4 MHz external crystal. I have also attached Proteus 8.2 SP2 format file. If you are using Proteus then you need Proteus 8.2 SP2 to open my Proteus file. If you don't have Proteus 8.2 SP2 but have older version then make the circuit by seeing the posted image. If you are testing in hardware then make connections as in circuit but also add an external oscillator circuit. For oscillator you have to use a 4 MHz crystal with two 22pf or 27pf Ceramic Capacitors. Also add a 10uF electrolytic and 0.1uF Ceramic Capacitors across VDD and VSS pins of PIC and close to PIC.

If you are using demo version of mikroC PRO PIC Compiler then see if the code compiles in it. I think it should as the code is small. If it doesn't compile and if you have cracked version of Compiler then don't compile because it will generate wrong .hex files which will not give the desired results.


Also in mikroC Serial Terminal Utility set baudrate to 9600 bps.

 

Attachments

sangeo

Member level 2
Joined
Jun 2, 2013
Messages
44
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,647
Thanks Mr.milan.rajik, Its working i checked it thanks for your hard work also.A little doubt, If i connected PIC with PC via Rs232 Port then Terminal software will display the temperature readings as in proteus Virtual screen write?
 

milan.rajik

Banned
Joined
Apr 1, 2013
Messages
2,528
Helped
540
Reputation
1,078
Reaction score
523
Trophy points
1,393
Activity points
0
Yes, Termianl software like Termite or Realterm will display the data as shown in above image. Use Termite it is simple. Set baudrate and COM port properly in Termite.
 
  • Like
Reactions: sangeo

    sangeo

    points: 2
    Helpful Answer Positive Rating

sangeo

Member level 2
Joined
Jun 2, 2013
Messages
44
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,647
Ok Mr.milan.rajik,thank you so much...
 

akwo ojong

Newbie level 1
Joined
Jul 9, 2015
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
5
thank for this awareness it has been so helpful to me but i have to short coming in my project since it is for multi-point (4) temperature monitoring and control. pls i really need help for this plus the coding in c.
 

horace1

Advanced Member level 5
Joined
Nov 18, 2008
Messages
2,123
Helped
596
Reputation
1,188
Reaction score
573
Trophy points
1,393
Location
Norwich, UK
Activity points
13,071
thank for this awareness it has been so helpful to me but i have to short coming in my project since it is for multi-point (4) temperature monitoring and control. pls i really need help for this plus the coding in c.
how are your 4 devices connected to the PC? serial, USB, Ethernet, WiFi, Canbus, ?
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top