Menu English Ukrainian russian Home

Free technical library for hobbyists and professionals Free technical library


ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING
Free library / Schemes of radio-electronic and electrical devices

Doorbell Patriot. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Calls and audio simulators

Comments on the article Comments on the article

Another hypermegadevice on a microcontroller.

Here is the diagram:

Doorbell Patriot. doorbell circuit

Nothing complicated at all. Any speaker with resistance from 4 ohms to infinity can be connected to the output of this circuit. In principle, you can simply turn on a high-impedance speaker (more than 15 kOhm) between the 1th leg of the microcircuit and the ground - and listen calmly.

And here is the source code of the controller program: patriot.asm

We look at the text of the program. We are looking for a large array in it, which is called HymnUSSR. This array contains the music of the Anthem of the USSR aka Russia. After the firmware, it will immediately begin to delight your hearing.

How? Doesn't he make you happy? Well, please - you can easily write your own melody. This is very easy to do.

Immediately after the array are the notes and their corresponding numbers. The first line corresponds to the middle octave, the 2nd line corresponds to the large octave, the 3rd line corresponds to the first.

In addition, durations are indicated by numbers in the array. That is, two numbers go to record each note. The first is the note code, the second is the duration (in conventional units). Experiment with it.

There are still pauses. A pause has the code 254. It is also written in conjunction with a duration.

The number 255 must be at the end of the melody, otherwise the program will continue to read memory outside the array and, as a result, it will happily crash :(

Also, remember that each row of the array must contain even the number of values, otherwise there will also be a glitch-s.

Perspectives.

How can this be upgraded?

You can add a melody selection module (if there are several). You can choose melodies either by sequential enumeration, or by entering a number from the keyboard, or in some other way. In addition, if you make a doorbell out of this, you can write a module for recognizing the "style" of pressing a button (such as Morse code), and in accordance with this, turn on a certain melody.

Yes, in general - a lot of things are possible ... There would be a fantasy.

Finally, I want to ask: if you write music for this device or somehow upgrade it, please share it with us. Don't be greedy. Am I not thirsty? :)

Upd. Our colleague with a nickname Masya13 sent us a couple of tunes that you can download here and more here.

Publication: radiokot.ru

See other articles Section Calls and audio simulators.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Artificial leather for touch emulation 15.04.2024

In a modern technology world where distance is becoming increasingly commonplace, maintaining connection and a sense of closeness is important. Recent developments in artificial skin by German scientists from Saarland University represent a new era in virtual interactions. German researchers from Saarland University have developed ultra-thin films that can transmit the sensation of touch over a distance. This cutting-edge technology provides new opportunities for virtual communication, especially for those who find themselves far from their loved ones. The ultra-thin films developed by the researchers, just 50 micrometers thick, can be integrated into textiles and worn like a second skin. These films act as sensors that recognize tactile signals from mom or dad, and as actuators that transmit these movements to the baby. Parents' touch to the fabric activates sensors that react to pressure and deform the ultra-thin film. This ... >>

Petgugu Global cat litter 15.04.2024

Taking care of pets can often be a challenge, especially when it comes to keeping your home clean. A new interesting solution from the Petgugu Global startup has been presented, which will make life easier for cat owners and help them keep their home perfectly clean and tidy. Startup Petgugu Global has unveiled a unique cat toilet that can automatically flush feces, keeping your home clean and fresh. This innovative device is equipped with various smart sensors that monitor your pet's toilet activity and activate to automatically clean after use. The device connects to the sewer system and ensures efficient waste removal without the need for intervention from the owner. Additionally, the toilet has a large flushable storage capacity, making it ideal for multi-cat households. The Petgugu cat litter bowl is designed for use with water-soluble litters and offers a range of additional ... >>

The attractiveness of caring men 14.04.2024

The stereotype that women prefer "bad boys" has long been widespread. However, recent research conducted by British scientists from Monash University offers a new perspective on this issue. They looked at how women responded to men's emotional responsibility and willingness to help others. The study's findings could change our understanding of what makes men attractive to women. A study conducted by scientists from Monash University leads to new findings about men's attractiveness to women. In the experiment, women were shown photographs of men with brief stories about their behavior in various situations, including their reaction to an encounter with a homeless person. Some of the men ignored the homeless man, while others helped him, such as buying him food. A study found that men who showed empathy and kindness were more attractive to women compared to men who showed empathy and kindness. ... >>

Random news from the Archive

Pico projector for mobile devices 11.03.2014

Texas Instruments has developed a mini HD Tilt & Roll Pixel (TRP) DLP Pico projector suitable for use in mobile devices and wearable electronics.

0,3-inch product allows you to form an image with a resolution of 1280x720 pixels (720p format); the frequency, according to the technical specifications, is 120 Hz. The developer claims that compared to similar solutions of the previous generation, it was possible to achieve a 100 percent increase in brightness and a 50 percent reduction in power consumption.

The pico projector is made using DLP Cinema technology. The device uses a microelectromechanical system (MEMS), which creates an image with microscopic mirrors arranged in a matrix on a semiconductor chip.

Texas Instruments says the pico projector is suitable for integration into smartphones, tablets, wearables, augmented reality systems and other gadgets.

Other interesting news:

▪ Biodegradable printed circuit boards for electronics

▪ 3D printing of chocolate desserts

▪ Good deed ransomware virus

▪ Home cleaning promotes relaxation

▪ 6-inch 720p smartphone Lava Magnum X604

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the site Spy stuff. Article selection

▪ article Light in sight. Popular expression

▪ article Why do plants have roots? Detailed answer

▪ article Mechanized complex-tool. home workshop

▪ article What is ballast? Encyclopedia of radio electronics and electrical engineering

▪ article Diligent sawfly. physical experiment

Leave your comment on this article:

Name:


Email (optional):


A comment:





All languages ​​of this page

Home page | Library | Articles | Website map | Site Reviews

www.diagram.com.ua

www.diagram.com.ua
2000-2024