ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING Doorbell Patriot. Encyclopedia of radio electronics and electrical engineering Encyclopedia of radio electronics and electrical engineering / Calls and audio simulators Another hypermegadevice on a microcontroller. Here is the diagram: 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. Latest news of science and technology, new electronics: Artificial leather for touch emulation
15.04.2024 Petgugu Global cat litter
15.04.2024 The attractiveness of caring men
14.04.2024
Other interesting news: ▪ Biodegradable printed circuit boards for electronics ▪ 3D printing of chocolate desserts ▪ 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: All languages of this page Home page | Library | Articles | Website map | Site Reviews www.diagram.com.ua |