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

LED garland on the microcontroller. 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

This microcontroller led string project is good for beginners. The scheme is distinguished by its simplicity and contains a minimum of elements.

This device controls 13 LEDs connected to the ports of the microcontroller. As a microcontroller, an MK from ATMEL is used: ATtiny231320PI. Due to the use of an internal generator, pins 4 and 5 are used as additional ports of the microcontroller PA0, PA1. The circuit provides the execution of 12 effect programs, 11 of which are individual combinations, and the 12th program is a sequential one-time repetition of the previous effects. Switching to another program is carried out by pressing the SB1 button. Effects programs include running single fire, rising fire, running shadow and more.

LED garland on the microcontroller. The scheme of the LED garland on the MK
(click to enlarge)

The device has the ability to adjust the speed of changing combinations during the execution of the program, which is carried out by pressing the buttons: SB2 - increase the speed and SB3 - decrease the speed, provided that the switch SA1 is in the "Program speed" position. It is also possible to adjust the frequency of the LED burning (from a stabilized glow to a slight flicker), which is carried out by pressing the buttons: SB2 - decrease (to flicker) and SB3 - increase, provided that the SA1 switch is in the "Flicker frequency" position. At switch SA2, the closed position corresponds to the mode for adjusting the speed of program execution, and the open position corresponds to the mode for adjusting the frequency of LED burning.

The numbering order of the LEDs in the circuit corresponds to their firing order when the program is executed. If necessary, the RESET pin can be used for reset, but it is not used as a PA2 port. During programming, the device selected a clock frequency of 8 MHz from the internal generator (fuses CKSEL3..0 - 0100). Although it is possible to use a frequency of 4 MHz (fuses CKSEL3..0 - 0010) with corresponding changes in the time intervals of the circuit.

The type of LEDs indicated in the diagram was used in a prototype, any LEDs with a supply voltage of 2-3 volts are suitable for the circuit, resistors R1-R17 can be used to adjust the brightness of the LEDs.

LED garland on the microcontroller. Photo of the finished device

Documentation (Datashit) for MK ATtiny231320PI

Firmware HEX, as well as program files in assembler, you can download here (30 kb)

Author: Anton Garkusha (AntonIOCifra), gam-rainers[dog]mail.ru; Publication: cxem.net

See other articles Section Microcontrollers.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Machine for thinning flowers in gardens 02.05.2024

In modern agriculture, technological progress is developing aimed at increasing the efficiency of plant care processes. The innovative Florix flower thinning machine was presented in Italy, designed to optimize the harvesting stage. This tool is equipped with mobile arms, allowing it to be easily adapted to the needs of the garden. The operator can adjust the speed of the thin wires by controlling them from the tractor cab using a joystick. This approach significantly increases the efficiency of the flower thinning process, providing the possibility of individual adjustment to the specific conditions of the garden, as well as the variety and type of fruit grown in it. After testing the Florix machine for two years on various types of fruit, the results were very encouraging. Farmers such as Filiberto Montanari, who has used a Florix machine for several years, have reported a significant reduction in the time and labor required to thin flowers. ... >>

Advanced Infrared Microscope 02.05.2024

Microscopes play an important role in scientific research, allowing scientists to delve into structures and processes invisible to the eye. However, various microscopy methods have their limitations, and among them was the limitation of resolution when using the infrared range. But the latest achievements of Japanese researchers from the University of Tokyo open up new prospects for studying the microworld. Scientists from the University of Tokyo have unveiled a new microscope that will revolutionize the capabilities of infrared microscopy. This advanced instrument allows you to see the internal structures of living bacteria with amazing clarity on the nanometer scale. Typically, mid-infrared microscopes are limited by low resolution, but the latest development from Japanese researchers overcomes these limitations. According to scientists, the developed microscope allows creating images with a resolution of up to 120 nanometers, which is 30 times higher than the resolution of traditional microscopes. ... >>

Air trap for insects 01.05.2024

Agriculture is one of the key sectors of the economy, and pest control is an integral part of this process. A team of scientists from the Indian Council of Agricultural Research-Central Potato Research Institute (ICAR-CPRI), Shimla, has come up with an innovative solution to this problem - a wind-powered insect air trap. This device addresses the shortcomings of traditional pest control methods by providing real-time insect population data. The trap is powered entirely by wind energy, making it an environmentally friendly solution that requires no power. Its unique design allows monitoring of both harmful and beneficial insects, providing a complete overview of the population in any agricultural area. “By assessing target pests at the right time, we can take necessary measures to control both pests and diseases,” says Kapil ... >>

Random news from the Archive

Medical mask that you can eat in 31.05.2020

Now the whole planet is forced to wear masks in order not to catch Covid-19 - they are uncomfortable, unusual, hot, but relatively safe. Since the coronavirus pandemic has been with us for quite a long time, there were craftsmen in the world who decided to slightly modernize this accessory so that, for example, you can eat in it.

Yes, it is obvious that sane people are unlikely to do this in those places where you can pick up something, but this is not about today, but about the near future, when such properties of masks can really come in handy. This concept was developed by employees of the Israeli company Avtipus Patents and Inventions.

A special switch is attached to the mask, by pressing on which it can be opened at the right time. So far, this mask is easy to use with solid food, but sauces and ice cream can be a problem.

At the moment, the company has only filed a patent for the development, but its employees are preparing to launch mass production soon and promise that the mask will open automatically when a cutlery is brought to it.

Employees at Avtipus Patents and Inventions do not see their mask as something funny and claim that with the help of their product, people will feel calmer in restaurants and other public places for the first time after the threat of the virus subsides.

Other interesting news:

▪ space catapult

▪ In 40 years, the Arctic will lose ice

▪ Intel Alder Lake-HX mobile processors

▪ 512 GB SSD from Samsung in BGA chip format

▪ Power supplies Dark Power 12

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the site House, household plots, hobbies. Article selection

▪ article Socialism with a human face. Popular expression

▪ article How was coal formed? Detailed answer

▪ article Construction worker, building materials industry and housing and communal services. Standard instruction on labor protection

▪ article Security device controlled by iBUTTON with the ability to connect a cell phone. Encyclopedia of radio electronics and electrical engineering

▪ article AON power supply. Encyclopedia of radio electronics and electrical engineering

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