Hello everyone,
I made a prototype of an ECG with ADS1298. For a long time I have been doing lots of tests and as a result a got the square internal test signal and a 10Hz sine wave from an external generator. When I connect the electrodes to the body, all I get is noise. I can´t get the ECG signal correctly.
Here I share my schematics:
LL electrode
RL electrode
Finally here it is my register configuration to see just one channel
//----- CONFIG3 -----// write_reg(CONFIG3,1); __delay_us(2); SPI1_Exchange8bit(0xCC); __delay_us(2); //----- CONFIG1 -----// write_reg(CONFIG1,1); __delay_us(2); SPI1_Exchange8bit(0x06); __delay_us(2); //----- CONFIG2 -----// write_reg(CONFIG2,1); __delay_us(2); SPI1_Exchange8bit(0x50); __delay_us(2); //----- CH1SET -----// write_reg(CH1SET,1); __delay_us(2); SPI1_Exchange8bit(0x00); __delay_us(2); //----- CH2SET -----// write_reg(CH2SET,1); __delay_us(2); SPI1_Exchange8bit(0x81); __delay_us(2); //----- CH3SET -----// write_reg(CH3SET,1); __delay_us(2); SPI1_Exchange8bit(0x81); __delay_us(2); //----- CH4SET -----// write_reg(CH4SET,1); __delay_us(2); SPI1_Exchange8bit(0x81); __delay_us(2); //----- CH5SET -----// write_reg(CH5SET,1); __delay_us(2); SPI1_Exchange8bit(0x81); __delay_us(2); //----- CH6SET -----// write_reg(CH6SET,1); __delay_us(2); SPI1_Exchange8bit(0x81); __delay_us(2); //----- CH7SET -----// write_reg(CH7SET,1); __delay_us(2); SPI1_Exchange8bit(0x81); __delay_us(2); //----- CH8SET -----// write_reg(CH8SET,1); __delay_us(2); SPI1_Exchange8bit(0x81); __delay_us(2); //----- LOFF -----// write_reg(LOFF,1); __delay_us(2); SPI1_Exchange8bit(0x5B); __delay_us(2); //----- RLD_SENSP -----// write_reg(RLD_SENSP,1); __delay_us(2); SPI1_Exchange8bit(0xFF); __delay_us(2); //----- RLD_SENSN -----// write_reg(RLD_SENSN,1); __delay_us(2); SPI1_Exchange8bit(0xFF); __delay_us(2); //----- LOFF_SENSP -----// write_reg(LOFF_SENSP,1); __delay_us(2); SPI1_Exchange8bit(0x00); __delay_us(2); //----- LOFF_SENSN -----// write_reg(LOFF_SENSN,1); __delay_us(2); SPI1_Exchange8bit(0x00); __delay_us(2); write_reg(LOFF_FLIP,1); __delay_us(2); SPI1_Exchange8bit(0x00); __delay_us(2); write_reg(CONFIG4,1); __delay_us(2); SPI1_Exchange8bit(0x02); __delay_us(2); write_reg(WCT1,1); __delay_us(2); SPI1_Exchange8bit(0x00); __delay_us(2); write_reg(WCT2,1); __delay_us(2); SPI1_Exchange8bit(0x00); __delay_us(2);
I don´t know what I am doing wrong. I can´t find the error.