![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht31YZ7f699GXh2OoS9POj6nqnDBNwx8dmw6m0Yvs-I9u-at2Ij1tftmTaq4qlhnaRK1up9WNEgVys9i9wRzjbtaZ8l-SGBi6vKp92MSNEcPFSmPcYrq7WznO1Z57wtlP7bRO8qeGscUcO/s320/2016_KY036g.jpg)
Seems this 'Arduino sensor' also works on 3V3 from ESP8266
Connect
- D0 PinIn 3
- + VCC ( 3V3 )
- GND GND
- A0 (not connected / Analog signal)
ESP8266Basic program
' TestKY036 touch' Program to test the value of PinIn and display it
PinIn = 14
timer 1000 , [NewVal]
wait
[NewVal]
cls
msg$ = "<head><meta http-equiv='refresh' content='1'></head><H1>TestPinIn</H1>" & time() & " Pin ( " & PinIn & " ) = " & io( pi , PinIn )
html htmlvar( msg$ )
returngui
wait
end
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiw8S9UBg1HgFRjLAvj1BKYDdWE7BzS72AtKMczwPxTnC-lrQ8foeKLuaxqxhGFudiiL-QtHcfEQUBniq-rCn8vVs_Jrmchq1xRXeFWtz10JZM5DqvVxzBlFj7poMeQQ0SxK9DIj-IQBSto/s200/JJ_KY036_B.jpg)
No comments:
Post a Comment