Arduino - C#
hey all.
i spent weekend trying simple c# program send data via serial arduino diecimila. i'm trying send simple stream of 12 bytes - timing seems off. of time, misses data, , catches last couple.
the code worked fine when that's did, when included code rest of work stopped working.
i can't, life of me, understand why. rest of code in loop() section activates when ldrpin (2) changes state... don't see how possibly miss data. included 5 "dummy" bytes in hopes of giving arduino chance catch up.
if mind taking @ code, appreciate it.
http://pastebin.com/m405d7d44 - arduino code
http://pastebin.com/m13775e0a - c# code
thanks in advance.
tim
i spent weekend trying simple c# program send data via serial arduino diecimila. i'm trying send simple stream of 12 bytes - timing seems off. of time, misses data, , catches last couple.
the code worked fine when that's did, when included code rest of work stopped working.
i can't, life of me, understand why. rest of code in loop() section activates when ldrpin (2) changes state... don't see how possibly miss data. included 5 "dummy" bytes in hopes of giving arduino chance catch up.
if mind taking @ code, appreciate it.
http://pastebin.com/m405d7d44 - arduino code
http://pastebin.com/m13775e0a - c# code
thanks in advance.
tim
are tripping autoreset when open serial port chance?
Arduino Forum > Forum 2005-2010 (read only) > Software > Interfacing > Arduino - C#
arduino
Comments
Post a Comment