Node MCU+ Pulse Sensor

#1

Hi, I used the code that was in the code section of the project, However it tells me tha TCCR1A is not declared.


I assume this is because im using the node mcu
Can someone tell me how to rectify this?

0 Likes

#2

TCCR1A is a definition reserved for ATMEGA based boards (and the NodeMCU isn’t).

Try the code from here:

And connect like this:
NodeMCU_______Sensor
3.3V____________ +
GND____________-
A0 _____________S

Good luck!

0 Likes