How to make a momentary pulse

Simplify IoT Development.

Moderators: lily.li, violet, seth.welday

Post Reply
garystofer
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Fri Apr 29, 2016 1:27 pm

How to make a momentary pulse

Post by garystofer » Fri Apr 29, 2016 1:33 pm

I'm trying to use a digital pin for a momentary signal, but I can't find anything in the API that would let me do that. I would like a way to raise a signal which then automatically resets to zero after a certain time which I define as an argument in the call.

Can you point me at documentation or code that would let me implement such a feature if it doesn't already exist.

Thanks

Gary

Wio
Pre-kindergarten
Pre-kindergarten
Posts: 19
Joined: Thu Apr 28, 2016 4:07 am

Re: How to make a momentary pulse

Post by Wio » Mon May 02, 2016 2:40 am

Which times do you plan?

garystofer
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Fri Apr 29, 2016 1:27 pm

Re: How to make a momentary pulse

Post by garystofer » Tue May 03, 2016 10:28 am

A range between 100 ms and 10 seconds would be sufficient for what I'm planning on using it. Basically trying to simulate a push button press.

Thanks

teng.wang
Pre-kindergarten
Pre-kindergarten
Posts: 37
Joined: Fri Apr 08, 2016 10:50 am

Re: How to make a momentary pulse

Post by teng.wang » Wed May 04, 2016 11:44 am

The Grove-Button have a event api(websocket).
You can use it to check the button is press or not.

garystofer
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Fri Apr 29, 2016 1:27 pm

Re: How to make a momentary pulse

Post by garystofer » Thu May 05, 2016 4:39 am

No, you don't understand. I don't want to check if a button is pressed or not, I want a means of making a self resetting signal out on the WIO. A digital pin that autonomously clears itself after a given time, to be controlled with a simple DO button interface. No feedback -- no handshaking -- no event .

Gary

Post Reply