Other Parts Discussed in Thread: AFE4404
Tool/software: TI-RTOS
Hello E2E experts,
I'm using AFE4404 to read the heartrate at wrist. I'm trying to set it on one LED only. I'm trying the code on this post to init the afe4404 setting,
reg_write(9, 0); reg_write(1, 80); reg_write(10, 399); reg_write(2, 399); reg_write(21, 400); reg_write(22, 406); reg_write(13, 407); reg_write(14, 866); reg_write(54, 1); reg_write(55, 0); reg_write(5, 1); reg_write(6, 0); reg_write(23, 867); reg_write(24, 873); reg_write(15, 874); reg_write(16, 874); reg_write(3, 1); reg_write(4, 0); reg_write(7, 1); reg_write(8, 0); reg_write(25, 875); reg_write(26, 881); reg_write(17, 882); reg_write(18, 882); reg_write(11, 1); reg_write(12, 0); reg_write(27, 883); reg_write(28, 889); reg_write(19, 890); reg_write(20, 890); reg_write(29, 39999); reg_write(30, 0x000103); reg_write(32, 0x008003); reg_write(33, 0x000003); reg_write(58, 0x000000); reg_write(34, 0x000F00); //only LED 2 is on (green) reg_write(35, 0x124218); reg_write(41, 0x2); reg_write(49, 0x000020); reg_write(57, 0); reg_write(50, 5475); reg_write(51, 39199);
and I got the following result,
The data is valid when zoomed in (I can see the heart pulses). The dropping values happen when I change the sensor location (from my finger tip to front writst to back wrist). Does it look normal? Why are the y-axis changing from ~140,000 to ~20,000 when the sensor location is changed from finger tip to wrist?
Another side question, is the maximum current I can set for a LED is 5 mA? Is there any way I can increase the current over 5mA?
Best,
Henry