My Arduino is expecting the letter 'D' and then 'enter' to start operation. I have tried the following code with no success. Does anyone know how to solve this problem? Thanks ahead!
delete(instrfindall); Arduino = serial ('COM3'); Arduino.BaudRate = 19200; Arduino.InputBufferSize=2^16; fopen(Arduino); fprintf(Arduino,'%s' , 'D\n'); fclose (Arduino); delete (Arduino);