Monday, August 8, 2016

ESP8266 KY-036 touch sensor

Testing KY-036 37in1 "Arduino" Metal touch sensor module

Module has a power led and a led indicating touch of metal.
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






No comments: