simple timer

General project discussion / help
Did you make a robotic coffee pot which implements HTCPCP and decafs unauthorized users? Show it off here!

Moderator: phalanx

itolond
Posts: 16
Joined: Sun Jan 08, 2017 8:11 pm

simple timer

Post by itolond » Tue Sep 25, 2018 4:47 am

Hi Forum,

have purchased this el-cheapo fog machine for halloween - it comes with a remote RF activator which when pressed fires out the fog...

the challenge is i can't seem to find a timer for this (as i want to leave it unattended and release fog for let say 3 seconds every 30 seconds, or something like that)

is there any off the shelf module which may work- as this gets used once a year - i was thinking if a simple module which shorts the press switch on the remote (like pressing) as a work around

any ideas- I don't really want to invest a huge amount into this so a good enough for the night works

Screen Shot 2018-09-25 at 7.40.41 PM.png
Screen Shot 2018-09-25 at 7.40.41 PM.png (63.29 KiB) Viewed 353 times

jremington
Support Volunteer
Posts: 2327
Joined: Fri Jun 15, 2007 9:41 pm
Location: Eugene, Or

Re: simple timer

Post by jremington » Tue Sep 25, 2018 8:08 am

An Arduino with a relay module would work. Modify the blinking LED example.

lyndon
Support Volunteer
Posts: 1630
Joined: Thu Jul 17, 2008 6:37 pm
Location: Minnesota, USA

Re: simple timer

Post by lyndon » Tue Sep 25, 2018 6:46 pm

I have a post with some code here.

itolond
Posts: 16
Joined: Sun Jan 08, 2017 8:11 pm

Re: simple timer

Post by itolond » Wed Sep 26, 2018 1:19 am

Lyndon,
based on your reply Arduino board with this code your advised.
power supply for the Arduino itself
Relay ? (not sure how much voltage Arduino supports- but i guessing for the fog machine it would be a NO -closed operation with low voltage?
if low voltage i would not need a relay to handle power - correct?

lyndon
Support Volunteer
Posts: 1630
Joined: Thu Jul 17, 2008 6:37 pm
Location: Minnesota, USA

Re: simple timer

Post by lyndon » Wed Sep 26, 2018 4:54 am

The Arduino can't turn on much more than an LED or two per output. You will need a relay/relay board (yes, normally open)for anything over 20mA or so.

itolond
Posts: 16
Joined: Sun Jan 08, 2017 8:11 pm

Re: simple timer

Post by itolond » Wed Sep 26, 2018 7:26 am

gotcha, did a check - the pins are 4VDC so relay is needed?

jremington
Support Volunteer
Posts: 2327
Joined: Fri Jun 15, 2007 9:41 pm
Location: Eugene, Or

Re: simple timer

Post by jremington » Wed Sep 26, 2018 8:44 am


itolond
Posts: 16
Joined: Sun Jan 08, 2017 8:11 pm

Re: simple timer

Post by itolond » Fri Sep 28, 2018 7:39 am

ok - i did a check on the fog machine - the max draw is 24.56 mA - how would i setup to Arduino Uno to accept a pin in and then pin out (et just connect them )?

itolond
Posts: 16
Joined: Sun Jan 08, 2017 8:11 pm

Re: simple timer

Post by itolond » Fri Sep 28, 2018 8:39 am

A relay just arrived from a shop . - its 240ac 2A - this is not going to work - most of what i see is AC- are there any VDC low A relays?

User avatar
DanV
Posts: 393
Joined: Sat Apr 25, 2015 9:29 am

Re: simple timer

Post by DanV » Fri Sep 28, 2018 8:44 am

What is the part number of your relay?
The specs will likely include the coil voltage and the contact rating.
240ac 2A is certainly not the coil, instead it is the contact rating.

itolond
Posts: 16
Joined: Sun Jan 08, 2017 8:11 pm

Re: simple timer

Post by itolond » Fri Sep 28, 2018 8:46 am


itolond
Posts: 16
Joined: Sun Jan 08, 2017 8:11 pm

Re: simple timer

Post by itolond » Fri Sep 28, 2018 8:47 am

this is what is looks like- local shop my bad i did say 5v single relay

User avatar
DanV
Posts: 393
Joined: Sat Apr 25, 2015 9:29 am

Re: simple timer

Post by DanV » Fri Sep 28, 2018 2:18 pm

Well, it's a solid state relay which has a particular characteristic - in this case likely a Triac device to switch AC loads
(switching an AC voltages between 100 and 240V at up to a 2A current). Not going to work on a DC signal switching situation.
I don't known what you're switching on the fog machine.

lyndon
Support Volunteer
Posts: 1630
Joined: Thu Jul 17, 2008 6:37 pm
Location: Minnesota, USA

Re: simple timer

Post by lyndon » Fri Sep 28, 2018 4:38 pm

Here, this is probably the simplest path forward: https://www.adafruit.com/product/2935
Four switched A/C outputs you can control with an Arduino.

itolond
Posts: 16
Joined: Sun Jan 08, 2017 8:11 pm

Re: simple timer

Post by itolond » Fri Sep 28, 2018 6:18 pm

The fog machine is
4VDC 25mA

But it appears I need to short 2 pins to get it to work

Post Reply