1
0
mirror of https://github.com/taigrr/arduinolibs synced 2025-01-18 04:33:12 -08:00

Use a MOSFET to control the radio

This commit is contained in:
Rhys Weatherley 2012-06-15 15:07:45 +10:00
parent 30ab66e934
commit 08ba3a7d0f
9 changed files with 171 additions and 166 deletions

View File

@ -38,12 +38,13 @@ Field, SoftI2C, DS1307RTC (or DS3232RTC), Melody and
\li Configurable alarm timeout between 2 and 10 seconds.
\li Single button to activate the back light and/or stop the alarm.
\li Up, down, left, and right buttons to change clock settings.
\li Relay that controls the power to a separate radio circuit.
\li MOSFET that controls the power to a separate radio circuit.
\section clock_main_circuit Main circuit
The main clock circuit consists of an Arduino Uno compatible board, a 16x2
LCD module, a realtime clock chip, and a piezo buzzer for the alarm:
LCD module, a realtime clock chip, a piezo buzzer for the alarm, and an
MOSFET for controlling the radio:
\image html alarm_circuit.png
@ -59,7 +60,7 @@ clock module instead of a DS1307-based module.
The whole circuit is built on a prototyping shield, with ribbon cables
connecting to the LCD. The Stop Alarm button, piezo buzzer, and radio
relay are not shown in this picture and some of the components are
controller are not shown in this picture and some of the components are
soldered to the bottom of the shield:
\image html clock_shield.jpg
@ -90,17 +91,21 @@ Arduino designs should also work.
\section clock_radio Controlling a radio
The relay connected to D11 can be used to control the power to a separate
radio circuit so that the radio can be used as an alarm. The relay switch
should be inserted between the radio's power supply and the main radio circuit.
When the relay is off, no power is applied to the radio. If the radio is
powered off 5V, then the relay circuit can be altered as follows to power
the radio directly from the Arduino's power supply:
The MOSFET connected to D11 can be used to control the power supply to a
separate radio circuit so that the radio can be used as an alarm. In the
following circuit, RadioV+ is the radio's power supply voltage (which may
be the Arduino's 5V supply if the radio can run off 5V):
\image html relay_control.png
\image html radio_controller.png
Double-tapping the Alarm Stop button will turn the radio on. Single-tapping
the Alarm Stop button will turn the radio off. A settings field can also
The output of the MOSFET can be used to control almost any kind of
circuit; for example an extremely loud mechanical alarm bell. It doesn't
have to be a radio. A 2N7000 or equivalent MOSFET is suitable for light
loads up to 200mA. For larger currents, a higher-rated MOSFET should be
used instead.
Double-tapping the Stop Alarm button will turn the radio on. Single-tapping
the Stop Alarm button will turn the radio off. A settings field can also
be used to turn the radio on and off.
\section clock_ds3232 Using DS3232 instead of DS1307

View File

@ -423,53 +423,58 @@ Single
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
10575 4275 10480 4275
-6
6 4815 6075 4950 6525
5 1 0 1 0 -1 0 0 -1 0.000 1 1 0 0 4950.000 6390.000 4950 6345 4905 6390 4950 6435
5 1 0 1 0 -1 0 0 -1 0.000 1 1 0 0 4950.000 6300.000 4950 6255 4905 6300 4950 6345
5 1 0 1 0 -1 0 0 -1 0.000 1 1 0 0 4950.000 6210.000 4950 6165 4905 6210 4950 6255
6 4680 5985 4770 6435
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
4725 6340 4725 6435
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 7
4725 6075 4685 6102 4765 6156 4685 6210 4765 6264 4685 6318
4725 6345
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
4725 5985 4725 6080
-6
6 5400 7425 5580 7695
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5475 7695 5505 7695
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5440 7650 5540 7650
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5400 7605 5580 7605
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5490 7425 5490 7605
-6
6 5175 6525 5625 7065
1 3 0 1 0 -1 0 0 -1 0.000 1 6.2832 5410 6795 191 191 5410 6795 5601 6795
2 3 0 1 0 -1 0 0 20 0.000 0 0 0 0 0 4
5410 6795 5455 6815 5455 6775 5410 6795
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 3
5400 6885 5490 6885 5490 7065
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 3
5400 6795 5490 6795 5490 6885
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 3
5400 6705 5490 6705 5490 6525
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 3
5355 6660 5355 6930 5175 6930
2 1 0 1 0 -1 0 0 -1 0.000 0 1 -1 0 0 2
4950 6435 4950 6525
5400 6860 5400 6915
2 1 0 1 0 -1 0 0 -1 0.000 0 1 -1 0 0 2
4950 6165 4950 6075
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
4880 6165 4880 6435
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
4850 6165 4850 6435
5400 6766 5400 6827
2 1 0 1 0 -1 0 0 -1 0.000 0 1 -1 0 0 2
5400 6674 5400 6733
-6
6 5355 6075 5445 6435
2 1 0 1 0 -1 0 0 20 0.000 1 0 -1 0 0 4
5400 6210 5445 6300 5355 6300 5400 6210
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5355 6210 5445 6210
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5400 6300 5400 6435
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5400 6210 5400 6075
6 4680 6885 4770 6975
1 3 0 1 0 -1 0 0 20 0.000 1 0.0000 4725 6930 30 30 4725 6930 4725 6960
-6
6 5085 6750 5265 7020
6 5445 7380 5535 7470
1 3 0 1 0 -1 0 0 20 0.000 1 0.0000 5490 7425 30 30 5490 7425 5490 7455
-6
6 4860 7380 5310 7470
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5160 7020 5190 7020
4955 7425 4860 7425
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 7
5220 7425 5193 7385 5139 7465 5085 7385 5031 7465 4977 7385
4950 7425
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5125 6975 5225 6975
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5085 6930 5265 6930
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5175 6750 5175 6930
-6
6 5130 5805 5220 5895
1 3 0 1 0 -1 0 0 20 0.000 1 0.0000 5175 5850 30 30 5175 5850 5175 5880
-6
6 5130 6705 5220 6795
1 3 0 1 0 -1 0 0 20 0.000 1 0.0000 5175 6750 30 30 5175 6750 5175 6780
-6
6 4365 6120 4455 6210
1 3 0 1 0 -1 0 0 20 0.000 1 0.0000 4410 6165 15 15 4410 6165 4425 6165
-6
6 4365 6255 4455 6345
1 3 0 1 0 -1 0 0 20 0.000 1 0.0000 4410 6300 15 15 4410 6300 4425 6300
-6
6 4365 6390 4455 6480
1 3 0 1 0 -1 0 0 20 0.000 1 0.0000 4410 6435 15 15 4410 6435 4425 6435
5310 7425 5215 7425
-6
2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
4500 1350 7425 1350 7425 5400 4500 5400 4500 1350
@ -554,24 +559,23 @@ Single
11475 3960 11475 4050
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
10575 4275 11115 4275
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 4
4950 6075 4950 5850 5400 5850 5400 6075
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 4
4950 6525 4950 6750 5400 6750 5400 6435
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
5175 5850 5175 5400
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 4
4410 6165 4725 6165 4680 6210 4635 6165
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 4
4410 6435 4725 6435 4680 6390 4635 6435
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
4410 6300 4725 6210
4725 5985 4725 5400
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 3
4725 6435 4725 6930 5220 6930
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 3
4905 7425 4725 7425 4725 6885
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 3
5310 7425 5490 7425 5490 7020
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2
1 1 1.00 60.00 120.00
4410 6300 3375 6300
5490 6075 5490 5895
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2
1 1 1.00 60.00 120.00
4410 6435 3375 6435
5490 6075 5985 6075
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2
1 1 1.00 60.00 120.00
5490 6525 5985 6525
4 0 0 50 -1 0 12 0.0000 4 135 450 4590 1710 Reset\001
4 0 0 50 -1 0 12 4.7124 4 135 405 8730 1710 GND\001
4 0 0 50 -1 0 12 4.7124 4 135 240 8955 1890 5V\001
@ -627,8 +631,11 @@ Single
4 0 0 50 -1 0 12 0.0000 4 180 1215 11610 3735 33R (adjust for\001
4 0 0 50 -1 0 12 0.0000 4 180 840 11745 3960 LED type)\001
4 0 0 50 -1 0 12 0.0000 4 135 675 5535 2655 Arduino\001
4 0 0 50 -1 0 12 0.0000 4 135 615 5535 6345 IN4001\001
4 0 0 50 -1 0 12 0.0000 4 135 345 5040 5310 D11\001
4 0 0 50 -1 0 12 0.0000 4 135 240 4455 6705 5V\001
4 0 0 50 -1 0 12 0.0000 4 180 480 4365 6885 Relay\001
4 0 0 50 -1 0 12 0.0000 4 135 765 2430 6435 To Radio\001
4 0 0 50 -1 0 12 0.0000 4 135 345 4680 5265 D11\001
4 0 0 50 -1 0 12 0.0000 4 135 735 5220 5805 RadioV+\001
4 0 0 50 -1 0 12 0.0000 4 135 765 5580 6345 To Radio\001
4 0 0 50 -1 0 12 0.0000 4 135 345 4905 7695 10K\001
4 0 0 50 -1 0 12 0.0000 4 135 240 4320 6255 1K\001
4 0 0 50 -1 0 12 0.0000 4 105 105 6075 6120 +\001
4 0 0 50 -1 0 12 0.0000 4 15 60 6075 6570 -\001
4 0 0 50 -1 0 12 0.0000 4 135 660 5715 6930 2N7000\001

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 39 KiB

View File

@ -0,0 +1,88 @@
#FIG 3.2 Produced by xfig version 3.2.5b
Landscape
Center
Metric
A4
100.00
Single
-2
1200 2
6 4455 2655 4545 3105
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
4500 3010 4500 3105
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 7
4500 2745 4460 2772 4540 2826 4460 2880 4540 2934 4460 2988
4500 3015
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
4500 2655 4500 2750
-6
6 5175 4095 5355 4365
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5250 4365 5280 4365
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5215 4320 5315 4320
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5175 4275 5355 4275
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5265 4095 5265 4275
-6
6 4950 3195 5400 3735
1 3 0 1 0 -1 0 0 -1 0.000 1 0.0000 5185 3465 191 191 5185 3465 5376 3465
2 3 0 1 0 -1 0 0 20 0.000 0 0 0 0 0 4
5185 3465 5230 3485 5230 3445 5185 3465
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 3
5175 3555 5265 3555 5265 3735
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 3
5175 3465 5265 3465 5265 3555
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 3
5175 3375 5265 3375 5265 3195
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 3
5130 3330 5130 3600 4950 3600
2 1 0 1 0 -1 0 0 -1 0.000 0 1 -1 0 0 2
5175 3530 5175 3585
2 1 0 1 0 -1 0 0 -1 0.000 0 1 -1 0 0 2
5175 3436 5175 3497
2 1 0 1 0 -1 0 0 -1 0.000 0 1 -1 0 0 2
5175 3344 5175 3403
-6
6 4455 3555 4545 3645
1 3 0 1 0 -1 0 0 20 0.000 1 0.0000 4500 3600 30 30 4500 3600 4500 3630
-6
6 5220 4050 5310 4140
1 3 0 1 0 -1 0 0 20 0.000 1 0.0000 5265 4095 30 30 5265 4095 5265 4125
-6
6 4635 4050 5085 4140
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
4730 4095 4635 4095
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 7
4995 4095 4968 4055 4914 4135 4860 4055 4806 4135 4752 4055
4725 4095
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5085 4095 4990 4095
-6
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2
1 1 1.00 60.00 120.00
4500 2655 4500 2250
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 3
4500 3105 4500 3600 4995 3600
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 3
4680 4095 4500 4095 4500 3555
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 3
5085 4095 5265 4095 5265 3690
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2
1 1 1.00 60.00 120.00
5265 2745 5265 2250
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2
1 1 1.00 60.00 120.00
5265 2745 5760 2745
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2
1 1 1.00 60.00 120.00
5265 3195 5760 3195
4 0 0 50 -1 0 12 0.0000 4 135 765 5355 3015 To Radio\001
4 0 0 50 -1 0 12 0.0000 4 135 345 4680 4365 10K\001
4 0 0 50 -1 0 12 0.0000 4 135 240 4095 2925 1K\001
4 0 0 50 -1 0 12 0.0000 4 105 105 5850 2790 +\001
4 0 0 50 -1 0 12 0.0000 4 15 60 5850 3240 -\001
4 0 0 50 -1 0 12 0.0000 4 135 660 5490 3600 2N7000\001
4 0 0 50 -1 0 12 0.0000 4 135 345 4365 2160 D11\001
4 0 0 50 -1 0 12 0.0000 4 135 735 4995 2160 RadioV+\001

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@ -1,95 +0,0 @@
#FIG 3.2 Produced by xfig version 3.2.5b
Landscape
Center
Metric
A4
100.00
Single
-2
1200 2
6 4815 6075 4950 6525
5 1 0 1 0 -1 0 0 -1 0.000 1 1 0 0 4950.000 6390.000 4950 6345 4905 6390 4950 6435
5 1 0 1 0 -1 0 0 -1 0.000 1 1 0 0 4950.000 6300.000 4950 6255 4905 6300 4950 6345
5 1 0 1 0 -1 0 0 -1 0.000 1 1 0 0 4950.000 6210.000 4950 6165 4905 6210 4950 6255
2 1 0 1 0 -1 0 0 -1 0.000 0 1 -1 0 0 2
4950 6435 4950 6525
2 1 0 1 0 -1 0 0 -1 0.000 0 1 -1 0 0 2
4950 6165 4950 6075
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
4880 6165 4880 6435
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
4850 6165 4850 6435
-6
6 5355 6075 5445 6435
2 1 0 1 0 -1 0 0 20 0.000 1 0 -1 0 0 4
5400 6210 5445 6300 5355 6300 5400 6210
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5355 6210 5445 6210
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5400 6300 5400 6435
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5400 6210 5400 6075
-6
6 5085 6750 5265 7020
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5160 7020 5190 7020
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5125 6975 5225 6975
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5085 6930 5265 6930
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
5175 6750 5175 6930
-6
6 5130 5805 5220 5895
1 3 0 1 0 -1 0 0 20 0.000 1 0.0000 5175 5850 30 30 5175 5850 5175 5880
-6
6 5130 6705 5220 6795
1 3 0 1 0 -1 0 0 20 0.000 1 0.0000 5175 6750 30 30 5175 6750 5175 6780
-6
6 4365 6120 4455 6210
1 3 0 1 0 -1 0 0 20 0.000 1 0.0000 4410 6165 15 15 4410 6165 4425 6165
-6
6 4365 6255 4455 6345
1 3 0 1 0 -1 0 0 20 0.000 1 0.0000 4410 6300 15 15 4410 6300 4425 6300
-6
6 4365 6390 4455 6480
1 3 0 1 0 -1 0 0 20 0.000 1 0.0000 4410 6435 15 15 4410 6435 4425 6435
-6
6 3960 6660 4140 6930
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
4035 6930 4065 6930
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
4000 6885 4100 6885
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
3960 6840 4140 6840
2 1 0 1 0 -1 0 0 -1 0.000 0 0 -1 0 0 2
4050 6660 4050 6840
-6
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 4
4950 6075 4950 5850 5400 5850 5400 6075
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 4
4950 6525 4950 6750 5400 6750 5400 6435
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 4
4410 6165 4725 6165 4680 6210 4635 6165
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 4
4410 6435 4725 6435 4680 6390 4635 6435
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
4410 6300 4725 6210
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2
1 1 1.00 60.00 120.00
4410 6435 3375 6435
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 3
1 1 1.00 60.00 120.00
4410 6300 4050 6300 4050 5400
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2
1 1 1.00 60.00 120.00
5175 5850 5175 5400
2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2
1 1 1.00 60.00 120.00
4050 6660 3375 6660
4 0 0 50 -1 0 12 0.0000 4 135 615 5535 6345 IN4001\001
4 0 0 50 -1 0 12 0.0000 4 135 240 4455 6705 5V\001
4 0 0 50 -1 0 12 0.0000 4 180 480 4365 6885 Relay\001
4 0 0 50 -1 0 12 0.0000 4 135 345 4995 5355 D11\001
4 0 0 50 -1 0 12 0.0000 4 135 240 3960 5355 5V\001
4 0 0 50 -1 0 12 0.0000 4 135 765 2520 6615 To Radio\001

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB