Author Topic: Dual action switch different gpio pins  (Read 1084 times)

0 Members and 1 Guest are viewing this topic.

Offline caquinoTopic starter

  • Newbie
  • Posts: 1
Dual action switch different gpio pins
« on: May 02, 2015, 10:40:04 am »
Hi everyone,

I'm trying to build something similar to the Amazon Dash Button using an ESP8266 module.

The project has a single button interface, when short pressed it goes to the operational mode, when long pressed it goes to the configuration mode.

The ESP8266 module will be in deep sleep, and I will trigger the RST pin to wake it up, the problem is that if in keep the button keep being pressed it need also to trigger a GPIO pin.

As to wake the module from sleep I need to trigger the RST pin, I can't used it to detect short/long presses as it resets the module, so I need to solve it outside of the firmware.

Basically, if you press and hold the button, it will pulse the RST pin and keep the GPIO up until the button is released.

I've attached an image of the circuit that I'm trying to build, the LED represents the GPIO pin and the Buzzer represents the RST pin

I'm not sure if this will work, looking on the simulator application it appears that will work, but my "you're doing the wrong thing" sensor is triggered.

Any help will be highly appreciated.

Thanks in advance!

« Last Edit: May 02, 2015, 10:41:43 am by caquino »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf