Code Monkey home page Code Monkey logo

protocentral-ads1292r-arduino's People

Contributors

aentinger avatar protocentralashwin avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

protocentral-ads1292r-arduino's Issues

SPI API outdated

Hi, the arduino SPI API has changed and these lines in all 3 examples no longer work

 SPI.begin();
  SPI.setBitOrder(MSBFIRST);
  //CPOL = 0, CPHA = 1
  SPI.setDataMode(SPI_MODE1);
  // Selecting 1Mhz clock for SPI
  SPI.setClockDivider(SPI_CLOCK_DIV16);

They should be replaced with

  SPI.beginTransaction(SPISettings(1000000,MSBFIRST,SPI_MODE1));

Changing Sample rate

In ecgRespirationAlgo.h the sample rate is set as 125 Hz
image
and the drdy pin pulses on my oscilloscope every 8mS as would be expected, however if I change this value to 2000 making it 2kHz which the AD1292R is capable of doing, the pulses are still 8 mS apart, is there another variable I need to change in order to change the sample rate of the device?

I've had a look through the files and can't see something that stands out as needing to be modified other than that value mentioned before, any help would be appreciated.

I'm using the breakout board not the shield.

Not running

Hi, I'm using an arduino nano 33 ble and the online Arduino ide which Arduino IDE version 1.8.13.
I've imported the libraries and can't get a single example to run, they compile (once the SPI initialisation is changed as per my previous issue). But they don't upload to my board successfully, it appears to mess up my COM port used by the arduino until I'm able to load another sketch onto the board.
I've tried with both the shield and the breakout board.
Do you have any ideas for things I could try?

Lead-off Detection Issue

With the ADS1292RIPBSR chip and the test example program, I'm experiencing an issue where the status remains unchanged when ECG leads are either plugged in or unplugged, even though I'm using the following code:
if (ecgRespirationValues.leadoffDetected == false)
The lead-off status remains unchanged.

Pinout configuration for Arduino Mega 2560

This circuit perfectly works in all example code using Arduino nano every with this below connection:
////////////////////////////////////////////////////////
// | VDD | +5V
// | PWDN/RESET | D4
// | START | D5
// | DRDY | D6
// | CS | D7
// | MOSI | D11
// | MISO | D12
// | SCK | D13
// | GND | Gnd

AND USING THIS BELOW CONFIG:

const int ADS1292_DRDY_PIN = 6;
const int ADS1292_CS_PIN = 7;
const int ADS1292_START_PIN = 5;
const int ADS1292_PWDN_PIN = 4;
///////////////////////////////////////////////////////

But in example 2 computation only, pin gets change ( I use 6,7,5,4 instead for nano every)
const int ADS1292_DRDY_PIN = 26;
const int ADS1292_CS_PIN = 13;
const int ADS1292_START_PIN = 14;
const int ADS1292_PWDN_PIN = 27;

For which microcontroller, pin configurations are declared?

And I changed SPI for MEGA: MISO, MOSI, SCK with 50,51,52 but still doesn't work, only shows noise and leads error.
Tried all pin configuration but no results.
Kindly let me know the exact pin configuration for Arduino MEGA.

Gain Setting

Hi,

According to the protocemtralAds1292r.cpp, the gain is 6, right?

8c6eee96507aff34d3038acfcc93889

However, it doesn't make sense to me why the gain are both 6 in the CH1SET and CH2SET because they are different.

Thanks

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.