How Can I Build a Timer Switch for My Mosquito Repellant?

Click For Summary
SUMMARY

To build a timer switch for a mosquito repellant, users can utilize a microcontroller like a Picaxe chip or create an oscillator circuit. The Picaxe chip can be programmed to toggle a pin between 5 volts and 0 volts based on user-defined input for timing. Alternatively, an oscillator can generate a square wave to control the timing of the repellant. Both methods require a relay to switch the mosquito repeller on and off safely.

PREREQUISITES
  • Basic understanding of microcontrollers, specifically Picaxe chips.
  • Knowledge of circuit design, particularly with oscillators.
  • Familiarity with relay circuits for switching mains voltage.
  • Experience with voltage control and timing mechanisms.
NEXT STEPS
  • Research programming techniques for Picaxe microcontrollers.
  • Learn about designing oscillator circuits for timing applications.
  • Explore relay specifications and safety measures for mains voltage applications.
  • Investigate commercial timer switch products for comparison and safety standards.
USEFUL FOR

This discussion is beneficial for hobbyists, electronics enthusiasts, and anyone interested in DIY projects involving microcontrollers and circuit design for home automation.

Kaycee92
Messages
11
Reaction score
0
Hi,

I'd like to do a small design project. When I sleep, I switch on my mosquito repellant for about 8 hours. Sometimes I forget switching it off too. Such long durations are little poisonous and generally not required.

What I plan to do is to make a timer with a dial from 0 min to 60 min (like a clock). When the user sets a value (say 15), I want to switch the repellant on for 15 mins, off for the next 15 mins, on again for 15 mins, like that ..

Kindly let me know how I could do the same. Final device should be mounted on the switchboard.

Thanks,
Chaitanya
 
Engineering news on Phys.org
Do you have any experience at using microprocessors or building circuits using integrated circuits, without a printed circuit board?

Do you intend to use this with mains voltages?

One way is to use a micro like a Picaxe chip. This is a very easy way to do this.
You would just read an input voltage. relate this to the time required.
Make one pin of the chip go to 5 volts.
Wait the required time set by the input voltage.
Make the same pin 0 volts.
Wait the required time set by the input voltage.
Make one pin of the chip go to 5 volts.
and so on.

Another way is to make an oscillator that covers about 130 Hz to 1500 Hz.
Use a divider that divides by 16384
This would give a square wave whose period varied from 120 minutes (60 on, 60 off) to about 11 minutes (5.5 on and 5.5 off)

These two circuits give a voltage out which would be used to switch a transistor which switches a relay.
This would then turn on your mosquito repeller.
If it is toxic, why don't you use flyscreens on the windows, or mosquito netting over your bed?

However, if you have little experience and this does use mains voltages, you should look for a commercial product or seek help from someone who could guide you to do this safely.
 
Thanks! I'll see what I can do. :)
 

Similar threads

Replies
37
Views
7K
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
5
Views
2K
Replies
10
Views
2K
Replies
20
Views
6K
Replies
8
Views
14K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 25 ·
Replies
25
Views
4K