i have an arduino UNO whitch needs to communicate to visualbasic.
So i wrote a code to send a serial command to visual basic, then if visual basic answers with another serialcode then a variable changes so that arduino goes to a function, when i shutdown the visualbasic software it sends a serialcode to the arduino then the arduino answers with again another serial code and changes his variable back and leaves the function.
Everything works fine, my only problem is that it goes realy slow, like a serial command / seccond. Can you guys find out why ?
testcode2.ino (509 Bytes)