Coder Social home page Coder Social logo

pulsesensor_amped_processing_visualizer's Introduction

logo

Processing Visualization & PulseSensor

Picture

Upload Arduino Sketch To Your Microcontroller

Before running this program, you have to upload our Pulse Sensor Arduino Sketch to your Arduino board of choice. For details on how to do that, go here. In order for your Arduino board to talk to the Pulse Sensor Amped Visualizer, you will need to change a variable in the Arduino code. The variable is called outputType, and by default it is set to SERIAL_PLOTTER. You need to change it to PROCESSING_VISUALIZER. To make this change, go to the main tab of the Arduino Sketch, and change the variable declairation as shown below.

outputType declariation

Then, upload the Arduino Sketch and your board is ready to send data the way our Processing Visualizer likes to get it!

Installation

  1. Click the Clone or Download button above and download the zip, or if you are a github user, clone this repo, or fork it!
  2. Unzip the download, and take the folder called PulseSensorAmpd_Processing_Visualizer and place it in your Documents/Processing folder.
  3. Then open or restart Processing to access the code through your Sketch folder. Select File > Sketchbook... open sketchbook

Then select PulseSensorAmped_Processing_Visualizer

select sketch

The Sketch will launch, and you will be prompted to select the USB port associated with your Arduino board. The list of available ports with auto-update when you plug/unplug USB cables. Use the Refresh Serial Ports button to update the ports list if you don't see your Arduino. Usually, your Arduino port is at the top of the list! You can also make a note of the port that you used to upload your code in Arduino, since it's the same one. Once you select the right port, you will start seeing hearbeat data!

select port

There are a couple of cool things you can do while the sketch is running:

  • Press 's' or 'S' to take a screenshot of the program window

    • The image will be saved in the sketch folder as a .jpg
  • Press 'r' or 'R' to reset the data windows to zero

pulsesensor_amped_processing_visualizer's People

Contributors

biomurph avatar joelsensor avatar karatekid avatar mwweinberg avatar yurygitman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pulsesensor_amped_processing_visualizer's Issues

'import' does not name a type

There is an error in this line of code:
import processing.serial.*; // serial library lets us talk to Arduino

Also, when I open the sketchbook it straight prompted me to new Arduino IDE window not the visualizer window.

Could not parse -1 for --display

I have a problem zu start the process.

Could not parse -1 for --display
/dev/cu.AirPodsvonSebastian-Wir-1 /dev/cu.Bluetooth-Incoming-Port /dev/cu.usbmodemFA121 /dev/tty.AirPodsvonSebastian-Wir-1 /dev/tty.Bluetooth-Incoming-Port /dev/tty.usbmodemFA121

Cannot open port

Screenshot 2024-03-20 135129

Would anyone know why it cannot open my port, or what this error means?

Won't compile

I set serialVisual = false in the Arduino app as instructed.

Sketch not running ArrayIndexOutofBound error

Hi,

I am trying to make your sketch run. But when compiled i get following errors

  1. Could not run the sketch (Target VM failed to initialize)
  2. ArrayIndexOutofBound at line : 205
    button[p] = new Radio(35, 95+(yPos*20),12,color(180),color(80),color(255),p,button);

can you please help in understanding what is going wrong.
I just downloaded and compiled rightaway.

EM

Receiving data via Bluetooth

Does Processing have Bluetooth/BLE capabilities? I am looking into modifying the Visualizer to receive the data via Bluetooth, but cannot find any resources, so is that even possible?

Not displaying BPM and IBI

It says in the code that it's TODO for next project. Has anyone done this second project?

Plus, how can I have it show the BPM and IBI? I am using the Phidget VINT hub if that's a factor.

Processing 3.1.1 error with Arduino Leonardo

Hi, so uploaded the Arduino Leonardo code to my r3 Leo and when running Processing with your code it says "Could not run the sketch" and breaks at:

println(Serial.list()); // print a list of available serial ports

any ideas please?

Edge case: Sketch crashes if there are no ports

The sketch won't start if there are no serial ports available. This can happen on Windows machines if there is not an Arduino plugged in to a USB port. Needs to send message to user saying " No ports :( Please plug in an Arduino!" or something.

Measure blood pressure

Hi All,

I have researched about measure blood pressure, I have talked with some Doctors about it.

On overview the doctors say this:
From the electrocardiogram it is possible to calculate many important values, this includes blood pressure.

From your experience you know some project, document or research that I can follow to calculate blood pressure.

Thanks for your time.

Processing showing square waveform

@biomurph
I am trying to make the Patient Health Monitoring System, I have interfaced LM35 with a Pulse Sensor when I run code for just a pulse sensor the Processing displays the correct waveform but when I try to run the combined code of both LM35 and Pulse Sensor, processing shows a square type of waveform.
Code:
Patient Health Monitoring.txt
Pictures of waveform
PulseSensor-11846
PulseSensor-3190

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.