Now, the sonar used in the example is a HC-SR04, and its output is set to 5V. Shouldn't it be connected to one of the general purpose I/O pins, chosing one which is NOT marked as 3.3V?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi, everybody.
I am new to Espruino, and I would like to build a little robot like the distance sensing one.
There is a thing I don't understand about the sonar. The source code reads:
but one should avoid connecting 5v input to the pins marked as '3.3v'.
Now, the sonar used in the example is a HC-SR04, and its output is set to 5V. Shouldn't it be connected to one of the general purpose I/O pins, chosing one which is NOT marked as 3.3V?
L.