Arduino Processing - Serial Communication and Processing

by MertArduino in Circuits > Arduino

8882 Views, 57 Favorites, 0 Comments

Arduino Processing - Serial Communication and Processing

Arduino Processing  01: Serial Communication and Processing

In this tutorial we will learn how to connect Arduino to Processing.

We will to communication using the Serial Port. We will use the Processing Development Environment to control the Arduino. This is the first the Processing tutorial. When we will press on the left and right button the LED turn on and turn off.

Required Hardware

vlcsnap-2017-05-31-02h42m02s599.png

Arduino Board - https://goo.gl/Rqc5w2

LED (light emitting diode) - https://goo.gl/CPAXXf

Resistor 220ohm - https://goo.gl/CPAXXf

Jumper Wire - https://goo.gl/CPAXXf

Breadboard - https://goo.gl/CPAXXf

Recomended Site - https://goo.gl/HDkZBt

vlcsnap-2017-05-31-02h42m10s613.png
vlcsnap-2017-05-31-02h42m20s989.png

We will use Processing Development to control the Arduino Board. Processing is open-source programing language.

Download the Processing - https://processing.org/download/

Connection

vlcsnap-2017-05-31-02h43m18s758.png
vlcsnap-2017-05-31-02h43m32s333.png

  1. We will be attach the LED onto the breadboard.
  2. We will be connect the resistor's one leg to the LED's long leg.
  3. We will be connect the resistor's other leg to the digital pin 13.
  4. And last, we will be connect the LED's short leg to the GND

Source Code

vlcsnap-2017-05-31-02h43m01s199.png
vlcsnap-2017-05-31-02h44m13s817.png
vlcsnap-2017-05-31-02h44m27s140.png
vlcsnap-2017-05-31-02h44m52s561.png

You can find the Arduino and Processing source code in below link:

Get the Source Code - https://goo.gl/u7JCmZ

You Can Subscribe to My YouTube Channel

mert arduino.png

You can subscribe to the my YouTube channel for more tutorials and projects. Subscribe for support. Thank you.

Go to my YouTube Channel - https://goo.gl/f0RHmR