Timer switch with Espruino board? #4934
Replies: 1 comment
-
Posted at 2015-08-26 by @gfwilliams Hi, I reckon what you'd probably want to short out the two pins in the second circuit is a Relay - which really does physically connect two contacts together when you want it to. There are some relay modules that you can get really cheap now that are really easy to drive from Espruino. Just connect one of those up to a pin on Espruino - then it's basically the software... Something like this should work:
You'd want to turn on the 'set time' option in the Web IDE's settings though, to ensure that when you write code to Espruino it sets the time on it up correctly. Sometimes having a 'proper' timestamp is overkill though, and you might just want to have 'seconds since a button was pressed'. That's not a huge tweak though. Hope that helps! Posted at 2015-08-26 by user57476 Thanks a lot for this very complete answer Gordon. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-08-25 by user57476
Good afternoon,
I'm a COMPLETE newbie in both Espruino and Electonics in general.
My purpose is quite simple: I'd like to use the Espruino as a timer switch.
More precisely, I have:
Is this feasible with Espruino?
Many thanks for your help, or directions for help
Beta Was this translation helpful? Give feedback.
All reactions