Home Heating DIY police quack on PIC. DIY police quack on PIC Circuit diagram of a siren with a power amplifier

DIY police quack on PIC. DIY police quack on PIC Circuit diagram of a siren with a power amplifier

DIY police quack on PIC

I offer you to repeat the circuit of a sound device that simulates the signal of a “Police Siren”. The device is done on microcontroller PIC16F628. The circuit has two different sirens and a “Quack”.

Basically, a police quack is installed in a car, so look at other diagrams for cars

You will also need a programmer for PIC, here is the diagram


When you press the "Quack" button, a one-time imitation of the "Police Quack" is activated. When you press the "Start" button, "Siren No. 1" turns on, when you press it again, "Siren No. 2" turns on. There is also an effect that simulates the end of the sound of the first siren; to enable this effect, press the "End" button. To stop playing the sound effect, press the "Stop" button. This circuit is easy to assemble and does not require configuration.

“PA” – Power amplifier, it is not shown in the diagram. This circuit is assembled on a printed circuit board; there is also a simple stabilizer on the printed circuit board to power the microcontroller.


The buttons for this device were taken from the panel of an old car radio, but simple tact buttons can also be used. The housing for the device is made of plastic, size (55X35X15).

I offer you to repeat the circuit of a sound device that simulates the signal of a “Police Siren”. The device is made on a PIC16F628 microcontroller. The circuit has two different sirens and a “Quack”.

When you press the "Quack" button, a one-time imitation of the "Police Quack" is activated. When you press the "Start" button, "Siren No. 1" turns on, when you press it again, "Siren No. 2" turns on. There is also an effect that simulates the end of the sound of the first siren; to enable this effect, press the "End" button. To stop playing the sound effect, press the "Stop" button. This circuit is easy to assemble and does not require configuration.

“PA” – Power amplifier, it is not shown in the diagram. This circuit is assembled on a printed circuit board; there is also a simple stabilizer on the printed circuit board to power the microcontroller.

The buttons for this device were taken from the panel of an old car radio, but simple tact buttons can also be used. The housing for the device is made of plastic, size (55X35X15).

You can download printed circuit boards, project in , firmware below

List of radioelements

Designation Type Denomination Quantity NoteShopMy notepad
MK PIC 8-bit

PIC16F628A

1 To notepad
Capacitor33 pF2 To notepad
Quartz resonator4 MHz1 To notepad
ButtonWithout fixation4 To notepad
Add all

To sound children's toys, motorcycles and battery-powered cars, I suggest you make a simple circuit of a sound device that simulates the signal of a “Police siren”. The circuit is simple, contains a small number of parts and does not require configuration. It is not difficult to assemble; you can order stitched microcontrollers using the link at the end of the article.

The siren device is assembled on a programmable microcontroller PIC16F628.

The firmware has two different sirens and a “Quack”.

Schematic diagram of a siren with a power amplifier

Printed circuit board for siren with PA

How to use a siren?

When you press the “Quack” button, a one-time imitation of the “Police Quack” is activated. When you press the “Start” button, “Siren No. 1” turns on, when you press it again, “Siren No. 2” turns on. There is also an effect that simulates the end of the sound of the first siren; to turn on this effect, click the “End” button. To stop playing a sound effect, press the Stop button. This circuit is easy to assemble and does not require configuration.

“UM” – Power amplifier, circuit above. This circuit is assembled on a printed circuit board; there is also a simple stabilizer on the printed circuit board to power the microcontroller.

The buttons for this device were taken from the panel of an old car radio, but simple tact buttons can also be used.

You will also need a PIC programmer. There are many different programmer schemes on the Internet.

A USB or COM port is usually used for data transfer.

You can buy a ready-made programmer that you need inexpensively in China.

Modification: “Quack with flashing light”

If you wish, you can also add an LED flasher on the PIC12F675 to the “quack” circuit!

Photo of the assembled board with a flasher

Video of a siren and flasher working

If you want to assemble the proposed siren with a flasher, you can purchase a kit for its assembly with stitched microcircuits at the link: vsmaster.ru

Sergey V. Kamyshin. (For all questions: [email protected])


P O P U L I R N O E:

    Cars often have two horns installed, resulting in a two-voice sound - both sound at the same time. One signal is a high tone with a sound frequency of about 430 Hz, the other is a low tone with a frequency of about 320 Hz.

    But when the horns sound alternately, the car signal contrasts sharply with the background of similar ones. Previously we looked at a similar scheme:

    There is another option...

Before starting the article, I want to warn you that the use of such signaling devices is illegal, at best you will face a hefty fine. VIP signals have always been considered a luxury item and there are many car enthusiasts who would like to have such a device in their car. This is a device that generates powerful low-frequency sound signals.


The signal consists of three main parts.
1) Control panel - in new models, very often the entire generator circuit is located in the control panel. Models such as the right have only one MK, which is programmed and has several operating modes.


2) Power amplifier - Amplifies the signal and supplies it to the emitter
3) Emitter - a loudspeaker that is designed to reproduce a signal.
The generator produces sawtooth pulses and feeds them to the pre-amplifier, then the signal from the pre-amplifier goes to the main power amplifier, in our case this amplifier is made using a cheap TDA2003 monophonic microcircuit.


The circuit has a matching transformer; the signal from the UMZCH goes to the primary winding of this transformer. The secondary windings of the transformer are connected to the bases of powerful key transistors. The signal forces the transistors to open, the latter supply voltage to the primary winding of a more powerful (power) transformer.


At the output of this transformer we already receive an amplified rectangular signal, which is fed to the loudspeaker.


The generator (imitation of a cracker) is built on a two-channel pulse generator and divider counters. To simulate the sound of a siren, the circuit has a separate microcircuit.

The design scheme is available in the full archive, the download link of which you can find at the end of the article (free download).

When you press the "Start" button, the "Wail" siren starts, by pressing the "Start" button again, the siren changes to "Yelp", in which you can press "End", which also starts once when there is no siren. All sirens are interrupted by a quack - the "AirHorn" signal. The Stop button stops all sounds instantly.

My development board looks like this.

The siren is generated by the PIC16F628A microcontroller with 220 µs pulses. The project in proeus looks like this.

I didn't make the printed circuit board, I'll leave it up to your discretion. The amplifier for this siren can be successfully used from my
There is also a version on PIC12F629. There is a "Wail" blueprint on board. It is turned on and off with one “Siren” button, which is also interrupted by a crack when you press the “Crack” key. The connection diagram is similar, only 2 control buttons are added. In Proteus it looks like this.

The result was an option at 629/675 peak, all three sirens without using quartz. In Proteus it looks like this.




Paying attention: do not overwrite the calibration constant when programming

The result was a version based on PIC16F84A, the pins were reassigned. Don't forget to pull the reset pin to the power supply.
Quartz at 4 MHz

New on site

>

Most popular