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

We construct a valcoder. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Nodes of amateur radio equipment

Comments on the article Comments on the article

Valcoder - a device that changes some value depending on the rotation of the axis. Such a thing is found, for example, in a roller mouse or in a music center. Actually, the encoder itself is quite simple, but we will complicate the task by not using a microcontroller, as is practiced in all industrial designs. The valcoder is interesting because it intertwines many techniques used in digital and analog electronics. So TK: to develop a device that changes the output voltage in the range of 0 - 3V, linearly depending on the angle of rotation of the axis. The change in voltage must be reversible, with a number of gradations of at least 80. The output signal must be isolated from the operating voltages of the device (galvanic isolation). Full rise/fall of voltage occurs when the angle of rotation of the axis changes from 0 to 1440 degrees (4 turns). The device must remain operational in the supply voltage range from 8 to 15V. Provide digital voltage indication.

1. Where to start?

Let's define what they want from us:

A. Firstly, the "head" of the device will be digital, because. will count the pulses generated by the rotary knob.
B. The count of impulses must be reversible, because. the resulting value decreases and increases depending on the direction of rotation of the knob.
B. At least 80 gradations of output voltage. So to set the voltage, we need at least 8 bits of binary code (80[10] = 1010000 [2]). 80 gradations in 4 revolutions, which means that the handle should give out 20 pulses per revolution. One pulse every 18 degrees.
D. For galvanic decoupling of the output voltage, optocouplers will need to be used in the converter stage (digital --> analog).
D. At the declared supply voltage, the K561 and 564 series microcircuits work.
E. Digital indication - a simple node, but 2 more decoders will be required into a 7-segment code.

2. Now let's try to describe the operation algorithm

- When enabled, the output is 0.

- IF the output is 0 AND there is a pulse from the sensor AND the knob is turned clockwise - add 1 to the output code.

- IF the output is 0 AND there is a pulse from the sensor AND the knob turns counterclockwise - do not perform any action

- IF the output is 1010000 AND there is a pulse from the sensor AND the knob turns clockwise - do not perform any action

- IF the output is 1010000 AND there is a pulse from the sensor AND the knob is turned counterclockwise - subtract 1 from the output code

- IF the output is a number other than 0 and 1010000 AND there is a pulse from the sensor AND the knob is turned clockwise - add 1 to the output code

- IF the output is a number different from 0 and 1010000 AND there is a pulse from the sensor AND the knob is turned counterclockwise - subtract 1 from the output code.

- IF there is no pulse from the sensor - do not perform any action.

3. Draw up a block diagram of the device

Obviously, the mechanical part must report both the rotation itself and its direction. So the sensor should give 2 signals. As a result, it turns out that the device should consist of a reversible counter, a matching-decoupling unit and a digital-to-analog converter.

We construct a valcoder. Block diagram of the device

The matcher must output an overflow signal and disable the counter from adding (if the maximum is received) or subtracting (if the minimum is received).

4. Designing the sensor

Enough water has been poured out, now we can speak more specifically. Mechanics depends on electronics, and electronics on mechanics, so consider the sensor as a whole. It is quite clear that it is much more convenient to use an optical sensor than a contact one, which means we have come to a perforated wheel. Getting impulses is easy, it remains to determine the direction of rotation. There are two ways: use two optocouplers (emitter + receiver) and arrange them in such a way that first one receiver is illuminated, and then the second. Or use a damper sliding on the same axle as the wheel (the moment generated by the axle must exceed the mass of the damper and it must not rotate under its own weight).

This damper rotates synchronously with the wheel at a certain angle (no more than 4,5 degrees in both directions) and opens / obscures the additional (strobe) photodetector. This option greatly complicates the mechanics, although it is very simple in circuit implementation (logic "AND"), so let's return to the first option. Now let's estimate the time diagrams of the signals generated by the sensor.

We construct a valcoder. timing diagram

As can be seen from the figure, the receiver signals are out of phase by 90 degrees. This is easily achieved by placing the receivers side by side in one line. Thus, when the hole passes over the receivers, the first receiver is illuminated first, then both, then the second.

We construct a valcoder. Sensor 

Suppose the wheel (3) rotates clockwise around the axis (2). When the hole (1) approaches the optocouplers, the right receiver (5) is illuminated first, then both, then only the left one (4). And this is repeated 20 times in one revolution. It can be seen from the above diagrams that a certain strobe signal is formed at the trailing edge of the pulse from the right receiver. We will build the resulting sensor signal on it: firstly, it is generated in a single copy when the receivers are illuminated, and secondly, it perfectly characterizes the direction of rotation.

Coinciding with the pulse of the left sensor when rotated clockwise, it makes it possible to isolate a positive pulse using the logical element "AND". To get this miracle pulse, we need a single vibrator to get the desired duration. The initial edge is negative, so it must be inverted. Let's try to sketch a diagram: the OOS loop of a single vibrator is calculated based on the maximum wheel speed - the duration of the strobe pulse should not exceed 1/4 of the period of the "right" signal. The C1R4 chain is calculated based on the fact that the impulse generated by it should be 0,1 Tstr.

We construct a valcoder

5. Let's build the simplest block in the device - a counter

I wanted to draw a circuit on triggers, but it seemed to me a completely monstrous mockery of electronics. If interested, a flip-flop up/down counter circuit can be found in any digital IC reference book. Therefore, our task is reduced to choosing a standard counter from the traditional CMOS series. So, let's define the requirements for the counter:

- Supply voltage 8-15V

- Reverse

These conditions are met by K561IE14

We construct a valcoder. K561IE14

As you can see in the picture, the counter has preset inputs. Using these inputs, we can quickly set the required voltage at the output by calling the appropriate code from the external RAM. Of course, a certain bank of saved levels must be created in RAM. The specification does not specify such a possibility, so we use the preset inputs for reset. There is also a count inhibit input (RO). But using it to protect the encoder from overflow will not work. The fact is that this input completely blocks the counter and does not allow it to count even in the free direction, but we need that when the critical level is reached in one direction, the free direction remains free. Therefore, we will highlight the overflow signal after the decoder. With this signal we will strobe input "C".

We construct a valcoder

6. Now you can deal with relatively simple, but cumbersome nodes - a decoder and a digital-to-analog converter (DAC)

So, for example, I got a decoder. Nothing tricky: mass decoders and transistor switches for controlling optocouplers and LED-OA semiconductor indicators. The decoders are quite traditional: K561ID1 - binary to decimal converter and K561ID4 - binary to seven-segment converter.

We construct a valcoder

The DAC will be built in a similar way. The only subtle point is the definition of ranges. Mapping of adjustment limits to tens and units. We have 7 tens and 10 ones. We divide the total output voltage by 80 gradations: it turns out 0,04. Multiply by 10 - it turns out 0,4. This means that a single discharge regulates the voltage within 400mV. Therefore, the remaining 2,6V is controlled by tens. Now it remains only to pick up the resistors switched by optocouplers and, with their help, build the desired adjustment scale.

We construct a valcoder

This is what happened.

Author: Pavel A. Ulitin (Soundoverlord); Publication: cxem.net

See other articles Section Nodes of amateur radio equipment.

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

Moving sidewalks for cities 25.11.2016

Travolators or moving sidewalks can hardly be called an innovation. The first "moving sidewalk" was shown back in 1893 in Chicago (USA) at the World's Columbian Exposition, and in 1900 it premiered at the World's Fair in Paris. Travelators were already seen as the transport of the future, and H.G. Wells used them to describe London in the 1890nd century in A Tale of the Days to Come and When the Sleeper Awakes, written in the XNUMXs.

Despite the optimism of a century ago and the development of technology, travelators have remained a niche vehicle used in airports, shopping centers, museums and zoos. The use of travelator as public transport is limited to underground metro stations in different cities of the world.

Recently, employees of the Federal Polytechnic School of Lausanne (Switzerland) again returned to the topic of the travelator as urban transport. Using a mathematical model, they showed that in medium-sized European cities, moving sidewalks were able to carry 7000 passengers per hour on each lane more efficiently than buses. As a model, the researchers took Geneva, completely devoid of cars, in which passengers use the metro, trams, taxis, bicycles or city funiculars.

It turned out that the most efficient configuration of a moving sidewalk in a city of this size is a small circle around the city center, in which there are no cars. The length of the sidewalk network of 47 links and 10 exits will be 32 km on the main roads. In addition, the system provides 37 intersections connecting "slow" travelators (speed up to 15 km / h) with high-speed "highways" using bridges and tunnels in order not to collide with conventional transport.

Other interesting news:

▪ The music department was found in the brain

▪ Virus-eating bacteria discovered

▪ Men and women have different dreams

▪ Stress makes the body age faster

▪ Oppo 5G router

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ site section And then an inventor (TRIZ) appeared. Article selection

▪ article Equivalents of TV models of various companies. Directory

▪ article Why is a camel depicted on the flag of the Chelyabinsk region, although they are not found there? Detailed answer

▪ Article Nasturtium is large. Legends, cultivation, methods of application

▪ article A simple beating transistor metal detector. Encyclopedia of radio electronics and electrical engineering

▪ article Squelch for a sound card with 12 volt unipolar 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