Hi,
I'm working on a project with two different microcontrollers and I would like them to be able to commute with each other. One is primarily for user input (buttons, switches, etc) and the other is for output such as screens, lights, sounds, etc. I would like the first microcontroller to be able to command the second one to turn lights on or play sounds, etc. I thought that UART might be good because it's fairly easy to set up and will work with just about anything at a high data rate.
I'm wondering if anyone has any advice on creating an API over UART. I was thinking that the first microcontroller could just send the length of the communication, followed by some custom info (lights power and color, sound and volume, etc). I know that the lower level UART communication has start bits and stop bits. Would that be useful for a higher level protocol?
Thanks!
I'm working on a project with two different microcontrollers and I would like them to be able to commute with each other. One is primarily for user input (buttons, switches, etc) and the other is for output such as screens, lights, sounds, etc. I would like the first microcontroller to be able to command the second one to turn lights on or play sounds, etc. I thought that UART might be good because it's fairly easy to set up and will work with just about anything at a high data rate.
I'm wondering if anyone has any advice on creating an API over UART. I was thinking that the first microcontroller could just send the length of the communication, followed by some custom info (lights power and color, sound and volume, etc). I know that the lower level UART communication has start bits and stop bits. Would that be useful for a higher level protocol?
Thanks!