Page 1 of 1
pulse sensor reading (sen-11574)
Posted: Tue Aug 29, 2017 7:56 pm
by vitor
Hello, I'm trying to read the sensor data from pulse sensor (
https://www.sparkfun.com/products/11574). Can someone help me? I know that I cannot connect the sensor directly to ESP8266 otherwise, could damage the ADC port. Is it true (according to
http://www.instructables.com/id/Online- ... nd-Cayenn/)?
Re: pulse sensor reading (sen-11574)
Posted: Wed Aug 30, 2017 1:01 am
by shaoziyang
pluse sensor use 5V or 3.3V, but esp8266's ADC range is 0-1V, so you need bleeder resistor to reduce voltage.
Re: pulse sensor reading (sen-11574)
Posted: Wed Aug 30, 2017 2:10 pm
by vitor
Thank you, shaoziyang. I can read the value now, from 0 to 1024. I need to treat this value. Do you have a started point?
Re: pulse sensor reading (sen-11574)
Posted: Thu Aug 31, 2017 10:24 am
by pythoncoder
@vitor The webref you provided gives a pointer to a solution. See the code in
https://github.com/WorldFamousElectroni ... rduino.ino.
Writing a Python equivalent should be an easy exercise.
Re: pulse sensor reading (sen-11574)
Posted: Fri Sep 08, 2017 2:49 pm
by crizeo
How did you transform 0-3.3V sensor output to 0-1V input for the ESP's ADC input? Simply cutting off 2.3V by adding a single resistor can't do the trick, so what did you do?

Re: pulse sensor reading (sen-11574)
Posted: Sun Sep 10, 2017 5:43 pm
by pythoncoder
You need two resistors in series. I suggest 2.2KΩ connected between analog I/P and 0V. Then use a 4.7KΩ resistor between analog I/P and the pulse sensor output. A voltage of 3.3V on the pulse sensor will produce
3.3 * 2.2 / (4.7 + 2.2) = 1.05V on the analog input.
Re: pulse sensor reading (sen-11574)
Posted: Wed Sep 27, 2017 11:55 pm
by crizeo
Thanks pythoncoder! I used your formula with higher resistors (because I did not have the ones you suggested) and it works perfectly (R1: 410 kOhm, R2: 181 kOhm)!