Member #600122

Member Since: September 27, 2014

Country: United States

  • My project uses an Arduino with built in analog and digital I/O, two LEDS two resistors, USB serial communication, and heart pulse sensor. The processing is using “Processing” software that runs on a computer. Getting started Purchase the Arduino kit Purchase the Pulse Sensor Install the Arduino sketch software on a computer Download the sketch for the Pulse Sensor from the internet Download and install the processing code to your computer from the internet Download and install the Processing runtime software to your computer from the internet Upload the Pulse Sensor sketch to the Arduino Wire the Arduino to the Pulse Sensor and to two LEDs. Test using the LEDs and an Oscilloscope while using your own pulse. General wiring and setup Notes: RED wire = +3V to +5V BLACK wire = GND PURPLE wire = signal (analog pin 0 in Arduino code)

    Plug the Pulse Sensor into Power (RED wire = +3V to +5V), Ground (BLACK wire), and Analog Pin 5 (PURPLE wire = signal). Pulse Sensor PURPLE wire goes to Analog Pin 5 Arduino code designed to fade an LED on Digital Pin 11 Arduino code designed to Blink pin 13 to a LED with the pulse.

    General Hardware Notes:

    RED wire = +3V to +5V BLACK wire = GND PURPLE wire = signal (analog pin 0 - in Arduino code) Arduino code designed to fade an LED on Digital Pin 5 Arduino code designed to Blink pin 13 with pulse

    Processing setup -1 https://learn.sparkfun.com/tutorials/connecting-arduino-to-processing

    Processing: The Pulse Sensor comes with code for on screen processing. This processing runs on a computer that is communicating serially to the Arduino processor that is getting analog input from the pulse sensor as input. Processing: To listen in on what the Arduino sketch is sending, Processing is used and comes with a Serial library designed for it.

    • To download “Processing”, go toProcessing.org and download the latest version for your operating system. https://learn.sparkfun.com/tutorials/connecting-arduino-to-processing

    • Once Processing is installed, open processing.

    • It looks allot like Arduino. The Arduino software was actually based in part on ”Processing” open-source.

    Tips and Tricks Make sure baud rates match Make sure you’re reading off the correct port in Processing - there’s a Serial.list() command that will show all the available ports to connect to. If you’re “using the serialEvent() method, make sure to include the port.bufferUntil() function in your setup() method.” (learn.sparkfun.com). Be sure that whichever character you’re buffering until you see the end of line (e.g., ‘\n’), be sure that you’re actually sending from Arduino. If you want to send over a number of sensor values, it’s a good idea to “count how many bytes you’re expecting so you know how to properly parse out the sensor data.” (learn.sparkfun.com).

    Reference: https://learn.sparkfun.com/tutorials/connecting-arduino-to-processing

    To create a font to use with Processing, select "Create Font..." from the Tools menu. This will create a font in the format Processing requires and also adds it to the current sketch's data directory.

    Processing setup-Eclipse

    STEP 1. DOWNLOAD AND INSTALL ECLIPSE Grab “Eclipse IDE for Java Developers” from http://www.eclipse.org/downloads/. When you first run eclipse, it will ask you for a workspace directory. This is the directory where you will store your project files so pick something reasonable that you will remember. STEP 2. CREATE A NEW PROJECT. If you see a Welcome screen, go ahead and close it. Then go to FILE –> NEW PROJECT and select “Java Project.” Click next. Enter your project name (for example, “TestProcessing”) and select “Finish.”

    STEP 3. IMPORT THE PROCESSING LIBRARIES Eclipse doesn’t know anything about Processing so we’ll have to go and get the Processing libraries ourselves. One way to do this is by pointing Eclipse to Processing’s “lib” directory or it’s a good idea to copy the necessary Processing files into the project folder itself so that everything stays together. Go to:

    FILE –> IMPORT –> GENERAL –> FILE SYSTEM.

    Click next. Click browse and find the Processing application. On Windows look inside the directory called “lib”, but on Mac (for Processing 1.0=) and go inside the application’s “package contents”: Processing->Contents->Resources->Java. Select the file “core.jar” inside the lib (PC) or Java (Mac) folder.

    url: https://www.sparkfun.com/products/11574 browser: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0) Department: general

No public wish lists :(