Pulse sensor problem
Posted: Mon Mar 02, 2015 4:09 am
Hi Paul,
I recently bought the pulse sensor from MD and i am trying to hook it up with Arduino Leonardo board. I am using the example code in the following link:
http://moderndevice.com/news/pulse-sens ... lights-on/
I connected the scl/sda pins(top right) on the arduino to the scl/sda pins on the sensor. I understand the arduino is 5v and the sensor is 3.3v. When I run the program,I get the value "196605" on my serial port.
When I measure the voltages, the scl pin has 4.9v but the sda has 0.05v. I was expecting 5v on the sda though. Not sure what is going wrong. is it because of the mismatch between arduino(5v) and sensor(3.3v)and 10k series resistor missing??? Also, do i need to make any changes in the pins since i am using arduino instead of jeenode boards?? The scl/sda pins are connected to pins 18/19 on the atmega chip.
I ran a simple i2c_scanner program to check if my i2c connectoins are ok??...the i2c_scanner program can detect the pulse sensor with the slave address of 5A, which is correct.
So one program works fine and the other program is not working, with the same connections.
Please share your thoughts and thank you for your time in advance.
Quote++++++++++++++++++++++++++++
Use a couple of 10K series connectors to connect the SCL and SDA pins on the sensor to the 'duino pins listed in the chart below. If you are using a JeeNode or other Jee board, just plug the sensor into a port - or use a six-pin extension cable.
Port SCL 'duino pin SDA 'duino pin
1 4 14 (A0)
2 5 15 (A1)
3 6 16 (A2)
4 7 17 (A3)
UnQuote++++++++++++++++++++++++++++
I recently bought the pulse sensor from MD and i am trying to hook it up with Arduino Leonardo board. I am using the example code in the following link:
http://moderndevice.com/news/pulse-sens ... lights-on/
I connected the scl/sda pins(top right) on the arduino to the scl/sda pins on the sensor. I understand the arduino is 5v and the sensor is 3.3v. When I run the program,I get the value "196605" on my serial port.
When I measure the voltages, the scl pin has 4.9v but the sda has 0.05v. I was expecting 5v on the sda though. Not sure what is going wrong. is it because of the mismatch between arduino(5v) and sensor(3.3v)and 10k series resistor missing??? Also, do i need to make any changes in the pins since i am using arduino instead of jeenode boards?? The scl/sda pins are connected to pins 18/19 on the atmega chip.
I ran a simple i2c_scanner program to check if my i2c connectoins are ok??...the i2c_scanner program can detect the pulse sensor with the slave address of 5A, which is correct.
So one program works fine and the other program is not working, with the same connections.
Please share your thoughts and thank you for your time in advance.
Quote++++++++++++++++++++++++++++
Use a couple of 10K series connectors to connect the SCL and SDA pins on the sensor to the 'duino pins listed in the chart below. If you are using a JeeNode or other Jee board, just plug the sensor into a port - or use a six-pin extension cable.
Port SCL 'duino pin SDA 'duino pin
1 4 14 (A0)
2 5 15 (A1)
3 6 16 (A2)
4 7 17 (A3)
UnQuote++++++++++++++++++++++++++++