Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

GUI for smarthome project

Status
Not open for further replies.

amico

Junior Member level 1
Joined
Mar 1, 2010
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,396
Hello all

i am building a smart home project using

a microchip pic16f877 and digital sensors with RS232 user interface,

thus, I want to create a gui using visual basic 2008

can someone please tell me how to connect

a command in the gui (lets say pressing a button to get temp measurement)

to a function in the PIC code

and getting back the information to the GUI.

Thanks,

amico
 

what RS 232 interface are you using ??

Normally a MAX 232 is used to interfaces a PIC and a PC, since the PIC operates on a 5 V level, the RS 232 needs bot +12 and -12 V levels, with the MAX 232 the interfacing becomes easy as +12 and -12 Volts are generated internally by the MAX.

What language are you using assembly or C? with C you can use the printf commands to send commands/data to the PC.
 

i am using C language.
and the hardware is working since i manged to send to a terminal program temp reading.

now i want to build a gui using VB 8 that in press of a button i will get a temp reading also in the gui
 

use the serialport control to access the serial port
 

ye but how??

can someone please provide the VB code in order send a word by pressing the gui button to the pic

and to receive the data from the pic on the gui textbox.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top