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

I/O device on a 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 input/output device can be used for any purpose where buttons and indication are needed. The device allows you to display numbers from 0 to 9, symbols "P, L, C, H", a minus sign and a blank "blank" on the indicators.

I/O device on a microcontroller. Device diagram
(click to enlarge)

This device is controlled via USART, 19200 baud. Every 500ms (0.5 sec.) the device sends the character "S". The accuracy was set by computer. Every 10ms, the device sends two bytes - the character "K" and, the second byte, the value of the buttons. In the second byte, the value of each bit corresponds to the status of the button (1-closed, 0-open).

To light a symbol on the indicator, you need to send 5 bytes to the device. The first byte is the character code "I", 2,3,4,5 bytes, respectively, the values ​​of the indicators.

The indicator displays numbers from 0 to 9, symbols "P, L, C, H", a minus sign and a blank "blank".
Send values ​​:
The numbers 0-9 are the corresponding number.
Symbols "P,L,C,H" - number 10-13.
Minus sign - number 14.
Void "blank" - number 15.

LEDs are lit by one byte in place with indicator dots. To light them, you need to send the "L" character and the status byte of the LEDs and dots to the device. In the status byte, bits 0,2,4,6 correspond to the values ​​of the LEDs. Bits 1,3,5,7 - the value of the indicator points.

I/O device on a microcontroller. Photo of the assembled device

The indicators are inside with registers and their own decoder, so other characters are not the same. I don't know how to replace them. But I think others with the same internal structure will do.

It must be remembered that the signals at the input of the device must be TTL level. If you plan to use the device with a computer, you need to get the level of TTL signals from the RS232 signal levels. To do this, you need to use RS232 - TTL adapters, for example eldigi.ru/site/comp/8.php, or something simpler, on several transistors. You can also connect to a USB port, for this you will need a USB to RS232 adapter. eldigi.ru/site/comp/3.php.

The device is powered by a stable 5 V supply. You can power it from a separate power source, then you will need to connect the grounds of the device and the computer. You can power the device directly from the computer, because. it also has a stabilized 5 V.

74LS245 is our 555AP6 - Bus shaper.
IR82 - register.

Download firmware

Author: Alexey Klyushnikov, Ivanovo E-Mail: al.kl [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

Skin rejuvenation for 30 years 14.04.2022

The researchers rejuvenated the skin cells of a 53-year-old woman, making them the same as those of a 23-year-old.

Scientists from the University of Cambridge have achieved incredible results: they were able to make human skin cells look younger by as much as 30 years. Scientists believe that they can do the same with other tissues of the human body. Thus, it is possible to develop treatment for diseases that occur in older people.

The origins of the method used by scientists in the new study date back to the creation of the cloned sheep Dolly in the 90s of the last century. Then scientists wanted to create the so-called human embryonic stem cells. They hoped that in this way they could be grown into certain tissues, such as muscles, cartilage, and nerve cells, to replace worn-out body parts.

In 2006, Japanese scientists came up with a new method they called IPS. With it, scientists added chemicals to the cells of an adult organism for about 50 days. This led to genetic changes that turned adult cells into stem cells. But then it was necessary to grow these stem cells into cells and tissues that a person needs. But after so many years, this has not yet yielded the desired results.

Wolf Reik and colleagues used the IPS method on the skin cells of a 53-year-old woman. But now, in the lab, scientists have added chemicals to cells not for 50 days, but for 12. These cells did not turn into embryonic stem cells, but rejuvenated and began to look and behave like they belonged to a 23-year-old girl. But this method cannot be immediately transferred from the laboratory stage of research to the clinical stage, because the IPS method increases the risk of developing cancer.

Now that it is known that cells can be rejuvenated, an alternative, safer method can be found to create the necessary human tissues to improve health, not life expectancy.

"At a minimum, we can start by developing drugs to rejuvenate the skin of older people where this skin has been damaged. And then we will check whether our new method can be applied to other human tissues," says Reik.

Scientists say that it will be possible to try to rejuvenate immune cells so that with age a person can better cope with diseases. The question of creating an anti-aging drug is not yet on the table. But perhaps new research will lead to the fact that it will be possible to achieve regeneration of the entire body, and not of its individual sections.

Other interesting news:

▪ Camera in watch

▪ Economical climate control system

▪ Photon encrypts communication

▪ Biofuels: more and cheaper

▪ Orange sky

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 Casting lots on clothes. Popular expression

▪ article How did the Japanese division of the day into hours differ from the Western one before 1873? Detailed answer

▪ article Connecting wood panels. home workshop

▪ article Hidden wiring indicator on microcircuits. Encyclopedia of radio electronics and electrical engineering

▪ article Electrochemical drill - from a medical syringe. Chemical experience

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