* reads these bytes and uses them to set the brightness of the LED.įrom the labview side, you can use the example icluded in labview distribution labview>help>find examples | select tab search | type "serial" in keyword field | double clicks on serial founded than in le list on the right choose basic serial write and read. * in individual bytes, each of which ranges from 0 to 255. * in this case to control the brightness of an LED. * Demonstrates the sending data from the computer to the Arduino board, Just to experiment maybe you can try to upload your arduino with an example coming with its ide "dimmer.pde"īasically this sketch open the serial port at 9600 bps the wait and read 1 byte at time and use its value in analogwrite function to drive a led in PWM on the specified pin, of course you need a LED to test it * Dimmer ![]() Hi, i'm working on connecting labview and arduino via serial interface without big issues.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |