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

The PIC controller controls the motor. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Electric motors

Comments on the article Comments on the article

This compilation is about two designs on a PIC controller, described on the website of the Japanese radio amateur Seiichi Inoue. The first of them is designed to control the speed of the DC motor, the second - the stepper motor.

Schematic diagram of the DC motor shaft speed controller is shown in fig. 1 (a detailed description in English can be found at ).

PIC controller controls the electric motor

The device is made on the microcontroller (MK) PIC16F873. Its clock frequency (10 MHz) is set by a ZQ1 quartz resonator. Power is supplied to the main electric motor M1 through a powerful field-effect transistor VT2, the gate of which receives rectangular pulses from the output of the microcontroller CCP1 through a matching stage on the transistor VT1. The pulse frequency is constant, and the duty cycle can be changed, thus adjusting the speed of the motor rotor.

The shaft of the electric motor M1 is mechanically (through a 1:1 gear two-stage transmission) connected to the second electric motor, which is used as a generator. The voltage generated by it through the diode bridge VD1 and the voltage divider R1 - R3 is fed to the input AN0 of the analog-to-digital converter, which is part of the MK. Zener diode VD2 with a stabilization voltage of 5 V protects this input from damage, capacitor C5 smoothes out the ripple of the rectified voltage.

The required speed is set by a variable resistor R2 with a functional characteristic A.

An increase in the voltage supplied to the AN0 input indicates that the motor shaft speed is increasing. In response to this, the MK reduces the duration of the pulses at the output of the SSR1, and the rotational speed returns to the previous value. When the voltage generated by the motor-generator decreases, the duration of the pulses increases and the rotational speed increases.

The line of LEDs HL1 - HL8 allows you to visually control the speed of the motor shaft: the number of luminous LEDs increases with its increase.

The device is powered by a stabilized voltage of 5 V, taken from the output of the integral stabilizer DA1. The motor M1 receives an unstabilized voltage from a separate source.

The controller is assembled on a 70x45 mm breadboard.

Stepper motor control devices usually contain shift registers that form the necessary sequence of pulses supplied to the windings. The proposed device on the PIC controller also allows you to change the direction and adjust the speed of the rotor. Description of the design, drawing of the circuit board and commented source codes of the microcontroller program are located at .

The schematic diagram of the device is shown in fig. 2.

PIC controller controls the electric motor

The main one is MK PIC16F84A. The clock frequency (4 MHz) sets the quartz resonator ZQ1. On the elements R8-R10, C6 and the transistor VT5, a generator is assembled, the frequency of which can be smoothly changed by a variable resistor R9 with a functional characteristic A. The voltage from the capacitor C6 is fed to the input of RB5 MK DD1. After it exceeds the threshold, a high level voltage appears at the output of RB7. The opened transistor VT5 discharges the capacitor, after which the cycle repeats.

When moving the engine of the resistor R9 from one extreme position to another, the engine speed M1 changes from 27 to 128 min-1. It should be noted that with increasing speed, the torque on the motor shaft decreases. The device has no feedback, so the rotational speed depends both on the resistance of the input part of the resistor R9, and on the load on the shaft.

The outputs RA0 - RA3 MK through the keys, made on composite transistors VT1 - VT4, switch the voltage on the windings of the stepper motor. Diodes VD1 - VD4 protect transistors from breakdown by voltage pulses that occur at the moment they are closed.

Buttons SB0 - SB2 are connected to the first three bits of the RB port (RB1 - RB3) of the MK, with the help of which they change the direction of rotation of the motor shaft and stop it.

All parts (with the exception of the motor and variable resistor) are mounted on a 70x45mm breadboard. The appearance of the device is shown in fig. 3.

PIC controller controls the electric motor

Stabilizers 78L05 and 7805 are replaceable by domestic KR142EN5A (B), transistor 2SC1815 - by any of the KT3102 series, zener diode RD-5A - by domestic KC147A. Transistors VT1-VT4 (see Fig. 2) must withstand the current of the motor windings and have a base current transfer coefficient of about 4000. The VD1 rectifier bridge (see Fig. 1) is KTS407A or assembled from low-power silicon diodes. LEDs HL1 - HL8 - any of the AL307 series.

Source texts of programs

See other articles Section Electric motors.

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

The oldest wheel 09.12.2003

In Slovenia, near Ljubljana, among the remains of a pile settlement in a swamp, an ancient wooden wheel was found. Carbon-14 dating shows the age of this oak and ash piece as between 5100 and 5350 years.

The previous record was held by two wheels found in Switzerland and southern Germany, they are 5000 years old. The diameter of the Slovenian wheel is 140 centimeters, the thickness is 5 centimeters. An oak axle was found nearby, on which, apparently, two such wheels were mounted.

The oldest images of wheels are known from Mesopotamia, they are about 6000 years old, but the originals themselves have not yet come across to archaeologists.

Other interesting news:

▪ Silicon Carbide Mass Production Plant

▪ Metallic iron rises from the depths of the sea

▪ Bloodhounds of mercury

▪ Minibus without a driver

▪ Unsatisfied eyes tempt the stomach

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the site Personal transport: land, water, air. Article selection

▪ article There are no others, and those are far away. Popular expression

▪ article Whose language names trees according to the sound the wind makes when it blows through them? Detailed answer

▪ article Deputy director for educational and production work. Standard instruction on labor protection

▪ article Built-in digital voltmeter with a measurement range of -199,9 ... +199,9 mV. Encyclopedia of radio electronics and electrical engineering

▪ article Half-bridge inverter in the charger. 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