i m working on home automation project using ATMEGA16L. the output of the controller is connected to 8 different devices. now i want to monitor the whole system on PC. such that which devices are on?? for how long the devics are on.
for this i want to interface through computer, which interfacing will be better or suitable for this? which software is better??
thank you, would you like to tell me about is VB6 is better for serial interface. i come across a lot of difficulties during interfacing and still not unable to achieve my task.
i use vb 2008 for my serial communication project..actually the software will sent the ascii code..so u should program the micro c to reflect with the ascii..for example your vb sent character "a" and the ascii value = 49(if i am rite):
(i use BASIC for my PIC program)
dim datain as byte
start:
datain = hserin 'receive the data to variable data in
if datain = 49 then PORTB.0 = 1 'turn on portb.0
else
PORTB.0 = 0 'let the portb.0 off when data not equal to 49
end if
Hello Sriz.. & Adva..
I want to send and loop back the Tx data to Rx line of RS232 thru C code (for understanding C-interface wd 232 as my first program of interfacing thru C)