Hi guys
I have a problem using serialcommunication.
I have a atmel 32A chip, I use to controll temperature and light in my home.
I wanna make a win software controlling the system.
Then I need to learn more of serialcommunication. Since I have several different input sensors and output signals, I need to send the address with the value I want to send with the serial print.
How could I do this?
One example:
In my living room, I need comfort. So I want to have 22īc. So I put in my compuret form 22īc.
Then the computer sends the data to the chip. The chip reads the data, and handles it as it should. The chip reads from sensor itīs 19īc, so it needs more heat. Then the chip sends 5v to a relay controlling the power to the electrical heater.
When its 22īc, the chip stops the relay.
How could I send the serial data?
I cant use HEX or BIN. I think i need to send in CHAR.
Or?