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

Automatic cleaning of button contacts in a microcontroller device. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Radio amateur designer

Comments on the article Comments on the article

As you know, buttons and other devices with electrical contacts have the effect of their "bounce" - uncontrolled multiple closing and opening in the first 20 ... 40 ms after the application or removal of mechanical force. From the point of view of physics, this is a series of local breakdowns of a thin oxide film covering the contact surfaces. The situation is aggravated if the contacts operate in difficult climatic conditions, for example, in a warm, humid atmosphere, as well as in the presence of dust and pollution.

To reduce the resistance of closed contacts operating at low values ​​of the switched current, it is useful to periodically pass current pulses of increased amplitude through them, to some extent cleaning the surface from oxides and wear products. For example, the MAX13036 chip used to collect information about the status of various contact sensors installed in a car works according to this principle. In its technical description [1] there is a special parameter "Wetting current", which means "wetting current" in English.

Automatic stripping of button contacts in a microcontroller device
Fig. 1

In devices based on microcontrollers, it is also possible to organize the removal of an oxide film by a current pulse, moreover, in the process of determining the state of the contact. On fig. Figure 1 shows a typical diagram of connecting the SB1 button to the IAC line of the microcontroller port with a load resistor R1 and a low-resistance resistor R2, which limits the amplitude of the "wetting current" pulse generated by the microcontroller. 2.

Automatic stripping of button contacts in a microcontroller device
Fig. 2

Initially, the IAC line is in input mode. The program periodically checks its status as soon as a low voltage level is detected here, makes an anti-bounce pause of 50 ms. If the level remains low (that is, the SB1 button is really pressed), the program switches the PXX line to the output mode and sets it to it is high level, forming a "wetting current" pulse. Then the program returns the IAC line to the input mode and works further according to the algorithm embedded in it. Of course, the positive cleaning effect will appear only when the button is pressed next.

The resistance of the resistor R2 is selected experimentally depending on the design and material of the contacts. For example, for a MAX13036 microcircuit, the amplitude of the "wetting current" pulse can be in the range of 7,5 ... 40 mA, its duration is 10 ... 35 ms, the duration of the drops is 1 ... 6 μs. Therefore, when the microcontroller supply voltage Upit = 5 V, the resistance of the resistor R2 should be 100 ... 620 Ohm.

This resistor is also useful at the prototyping stage, even without passing a current pulse through it. It will save the microcontroller from damage if a bug in the program being debugged puts a port line that should be an input into output mode.

Automatic stripping of button contacts in a microcontroller device
Fig. 3

On fig. 3 shows another common button connection diagram. Here, to save elements, a load resistor Rp is used, located inside the microcontroller. The operating current through closed contacts does not exceed tens or hundreds of microamperes.

The operation of contacts on microcurrents has its own characteristics [2]. In particular, arbitrary changes in the resistance of closed contacts with time can be observed, which is explained by the growth of sulfide and polymeric oxide films on deformed microprotrusions of the contacting surfaces. Installing a resistor R1 and passing the "wetting current" in such a case is highly recommended. The exception is buttons whose contacts are made of precious metals or coated with them. They are not susceptible to oxidation and usually work well at low current.

Automatic stripping of button contacts in a microcontroller device
Fig. 4

Automatic stripping of button contacts in a microcontroller device

The table shows a program fragment in the Wiring language for a microcontroller module of the "Arduino" family. A self-made module belonging to this family was described in [3]. To the D2 line of the module according to the circuit shown in fig. 4, the SB1 button is connected. In this case, it is not connected to a common wire, but to the power plus. This is done to show the absence of fundamental differences in the current pulse generation algorithm. Time relations correspond to fig. 2, only the low and high levels are reversed.

Literature

  1. MAX13036 Automotive Contact Monitor and Level Shifter. - datasheets.maxim - ic.com/en/ds/M AX13036.pdf .
  2. Levin A. Contacts of electrical connectors of radio-electronic equipment. - M.: Soviet radio, 1972.
  3. Ryumik S. Microcontroller module "InterDuino". - Radio, 2010, No. 10, p. 27-30.

Author: S. Ryumik

See other articles Section Radio amateur designer.

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

Smart ballpoint pen for handwriting digitization 01.05.2016

The French company Oree is known for its unusual products, such as the Oree Wooden Keyboard, a wooden wireless charger for smartphones with a built-in speaker system, and a wooden trackpad. This time, the Oree range has been replenished with a premium smart pen, which, in tandem with a special notepad, can not only write on paper, but also automatically duplicate, transferring data to a mobile device, everything “written with a pen”.

The body of the device, called the Stylograph, is made of copper, and visually it resembles a thickened ballpoint pen, which is based on ordinary ink. The elegant minimalist design and copper frame immediately hint at the rather high cost of the product, which, when using a branded notebook, will relay - digitize - your sketches, drawings and notes straight into the mobile application. The "chip" of the Oree Stylograph is the ability to preserve the tactile sensation of writing with ink on paper, while creating a copy of the handwritten material in electronic format.

As for the notebook, it is a notebook with 190 pages of A5 format, made in a traditional form factor. The accessory accessory costs $25, but the Stylograph turns out to be useless without it: the notepad uses mineral paper, on which the pen leaves barely noticeable traces. The principle of operation of the device implies that traces (prints) from a rod with a working surface of 0,7 mm will be recorded by a high-speed camera mounted in the handle. The built-in battery should last for two days of operation in moderate mode.

Data transfer from the smart pen is carried out via a Bluetooth connection with smartphones/tablets based on Android/iOS or Windows PC. The cost of new items is as much as $ 300, to which you will have to add $ 25 for a complete notebook. With this pricing, the only good thing is that the Stylograph uses a D1 type core, which can be easily replaced with a new one at any time.

Other interesting news:

▪ 90 nm and even 65 nm from SAMSUNG ELECTRONICS

▪ Fire motorcycle

▪ Bioink for 3D printing of human tissues

▪ Dogs respond better to women's voices than to men's.

▪ Avian flu in liquid nitrogen

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ site section Infrared technology. Article selection

▪ article by Jacques-Yves Cousteau. Famous aphorisms

▪ article At what competitions was the song from the film Borat played to the winner from Kazakhstan instead of the anthem? Detailed answer

▪ article Tracker of railway tracks, artificial structures and track fitter appointed for inspection. Standard instruction on labor protection

▪ article Mosquito repeller on a microcircuit. Encyclopedia of radio electronics and electrical engineering

▪ article Standards for testing electrical equipment and devices for electrical installations of consumers. Values ​​of resistance to direct current of elements of air circuit breakers. 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