Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Multi-Byte usb serial communication from Processing to Arduino

This is a great example of serial communication between processing and arduino. Mutiple bytes are sent and organized.

First upload the code arduino_recv_data.ino to an arduino. Make all necessary connections for LEDs (there's a bunch). When using the interface provided in the Processing code, some of the LEDs will change frequency of blinking while some will fade (PWM). You will find the correct pin numbers to connect your LEDs by examining the arduino code directly.

Next, in Processing, open the code titled processing_send_data.pde

Attention: Library controlP5 is required for processing

Before launching the Processing code make sure that you choose the correct USB port to communicate with (On Linux, in my case it is /dev/ttyUSB0). After installing the controlP5 library you should be ready to go.

Last note. There is a last code example called pretty_processing_send_data.pde
This is the same functionality with added glitter to the interface to make it less bland.

About

Example of serial communications from Processing to Arduino. Manages multiple bytes of data sent at once

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages