This week is Networking and Communications. I just got the
Leap Motion ,
sensor device that supports hand and finger motions as input, this week, and want to try it with my fabduino board to understand the communication method.
First of all, I have to understand the basic logic of connecting Arduino to Processing.
I found this
tutorial helpful.
After this basic practice, I have to install leap motion library to processing.
Basically, I have to use processing to read data from leap motion, and send the data to fabduino to light the LED.
Download the Leap Motion library
click here
And paste entire folder here : C:\Users\Documents\Processing\libraries
Then we can start using processing to get data from Leap Motion!
I followed the tutorial from this to start my code
click this website , very clear !
There’s two parts of code for this setup, Processing and Arduino Sketch. Processing sketch is in charge of the input data from the Leap Motion and mapping it to the X axis, sending a signal via Serial (USB) to the Arduino.
Below is the code I am using in Processing .
Code for Arduino Side, much easier !
However, I kept facing trouble running my fabduino, and in the end using Arduino Mega to finish this practice.
My next step is applying this method to do motor control which I need for finial project.