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

Musical call for 120 melodies. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Microcontrollers

Comments on the article Comments on the article

On the pages of magazines you can find many schemes and descriptions of musical calls, but they all have one drawback - the number of melodies is limited (no more than 16), so they are quickly remembered and bored. The proposed device is capable of synthesizing up to 120 melodies, which are played sequentially with each next press of the bell button.

Schematic diagram of the call is shown in the figure. Its basis is the AT90S8515-8PI microcontroller from ATMEL. When the bell button SB 1 is pressed, the device is powered on, the program stored in the microcontroller memory starts working, and a log voltage appears at pin 39 (RAO). 1. As a result, transistor VT1 opens, relay K1 is activated and with its contacts K 1.1 blocks the call button.

Musical call for 120 melodies
(click to enlarge)

To form 3H oscillations, the microcontroller timer is used and its operation mode is to switch the external output PD5 (to obtain the desired audio frequency, the timer frequency must be multiplied by two). The signal taken from this output is amplified by the composite transistor VT2VT3, in the collector circuit of which the dynamic head BA1 is included. To control the volume in series with it, you can turn on the tuning resistor R5 (depicted by a dashed line).

After playing the melody, the program writes a pointer to the next melody into the non-volatile memory (EEPROM) of the microcontroller, the high level at its output 39 is replaced by a low one and the relay breaks the power circuit until the next press of the SB1 button.

The melodies for the call are taken from the Melody Player for Motorola program (located in the mp4m.rar archive). To convert melodies into assembly language, the motcvt program was written (located in the motcvt.gag archive). Using it, it is easy to change/add/remove any melody. When launched, the command line specifies the name of the file with melodies from mp4m and the name under which the resulting file should be written (for example, mel.inc).

The source texts of the program for the microcontroller are in the zvonok.rar archive, the main points are commented. When using a quartz resonator for a different frequency, it is necessary to change the frequency value (3618400) to the one actually used (in hertz) in the .equ fsck = 3618400 line of the zvonok.asm file. Everything else will be calculated by the assembler. The program was written and debugged using AVRStudio 4.0 Build 181.

Power supply U1 - any stabilized with an output voltage of 5 V (you can also use a battery made up of galvanic cells or batteries). Instead of BESTAR BT-5S, it is possible to use any relay with an operating voltage of not more than 4,5 V and contacts designed for switching mains voltage of 220 V.

In the process of debugging the device, it was found that the contents of the non-volatile data memory of the microcontroller can be corrupted if, after turning off, the supply voltage drops to 0 slowly (more than 10 ms). The fact is that when it is smoothly lowered, the microcontroller continues to work for some time, and this can cause incorrect decoding and (or) fetching of commands, which, in turn, can provoke unauthorized writing to EEPROM. To prevent damage to the contents of the memory, you can use the so-called supply voltage drop detector (domestic KR1171SP47 or its foreign analogue PST529), which, when the supply voltage drops below the set threshold, issues a Reset signal, thereby stopping the operation of the microcontroller. For this purpose, the author used the resistor R6 connected to the output of the power source as an additional load (shown in the diagram with a dashed line).

Project files

Author: M.Beletsky, Ufa

See other articles Section Microcontrollers.

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

Pocket DNA Sequencer 07.12.2020

American scientists have developed the world's first handheld device with a connected application that can decipher the genome of any living creature, no matter where the user is.

It is noted that at the moment the device is associated with the application for iOS. The portable device is intended, first of all, for scientists who conduct field work on the study of DNA of various animal and human species.

The tiny device for analyzing the genetic sequence was created by the Oxford Nanopore company, and the staff of the Laboratory at Cold Spring Harbor created the concept of the device and the application for it. According to the authors, you can transfer data from a device to an iPhone or iPad and save it even without Internet access. This feature enables sequencing in the most remote locations on the globe.

Scientists have already demonstrated how the device can decipher the DNA sequences of viral pathogens such as influenza or Zika, as well as identify mutations that are important for the diagnosis and treatment of these pathologies. The authors created an online tutorial to analyze other viral genomes, for example from a patient with SARS-CoV-2. In the future, the developers plan to send the device to the ISS to conduct DNA analysis of biological objects on the station.

Other interesting news:

▪ TPA6211A1 - audio amplifier chip

▪ The world's oceans set a new temperature record

▪ Dream Chaser spaceplane tested

▪ Greenland ice is melting fast

▪ JUKEBOX by TDK

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the Radio Control website. Article selection

▪ article by Pasteur Louis. Biography of a scientist

▪ article What does historical science study? Detailed answer

▪ article Teacher-psychologist. Job description

▪ article Connecting a three-phase motor to a single-phase network. Encyclopedia of radio electronics and electrical engineering

▪ The Appearance of the Magic Wand. Focus Secret

Leave your comment on this article:

Name:


Email (optional):


A comment:




Comments on the article:

Alexander
What fuse bits do you need to set or can you leave the factory defaults?

puh57
Repeated your call. Thanks, everything is fine


All languages ​​of this page

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

www.diagram.com.ua

www.diagram.com.ua
2000-2024