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

Control of the radio model using a computer. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Radio control equipment

Comments on the article Comments on the article

Probably, no matter how old a person is, he will still be interested in playing with a radio-controlled toy. Let's take a radio-controlled car for example. There is not? Buy! I understand it's expensive in the store. But in the market where I bought this monster for myself in the winter of 2004, it cost 270 rubles (without batteries). I do not recommend using batteries - batteries are better. I put nickel-cadmium on 800 mlACH for myself. My car supports steering - left / right and forward / backward. That is, there are no inconveniences and restrictions. Doesn't slip on carpet. Overcomes thresholds and skirting boards up to 2.5 cm without problems. Speed ​​- a little faster than a step. The durability is excellent. Strange, but the assembly is Chinese. For 270 rubles, I consider it just a godsend.

So, there is simply no drive to manage it. My slogan is "connect everything to a computer". And the radio machine, by the way, is no exception. And do not think that it will be difficult. To make the computer control the machine, you need to somehow connect the remote control of the radio model to it through something. The easiest way is through LPT, but it's not advanced. Let's take COM. I understand that you wanted USB, but it will cost a pretty penny, because. mikruha adapter costs 150 rubles. And if you also burn it during the assembly process, then suicide cannot be avoided. So, COM is a serial port, so you will have to cheat with the transmission of signals to four branches over two wires. Mikruha k561ie10 costs 8 rubles.

COM port pinout:

Control of the radio model using a computer. RS232 pinout

The fact is that we can press the levers of the remote control in various combinations (maybe Forward & Left ...) From the computer, only + 12 volts are supplied, one control signal (in our case), the ground wire and the feedback wire. I solved this problem like this. I installed a K561IE10 binary counter. Take a look at the diagram.

Control of the radio model using a computer. Radio control scheme
(click to enlarge)

The work is as follows: the computer sends a signal to the counter over one wire to add one. At the output of the meter (pins 3.4.5.6), we get a combination of high / low voltage levels that go to transistors that are soldered by their emitter and collector to the plates, or contacts closed by the remote levers. As soon as a high voltage level appears on the base of the transistor, it will immediately open by "connecting" "what is needed" in the remote control. I do not know how private my scheme (in the sense of the console) is.

I don't think the remotes are much different. Rather, they are generally made in the same factory :). In this case, the lever closes the minus of the remote control batteries to a certain leg of the remote control microcircuit. That is, it is necessary to use npn transistors (reverse conduction). If it is necessary to close the plus to mikruha (which is unlikely), then you need to use a (pnp) transistor, for example (kt361). The diode in front of the microcircuit is any small-sized rectifier. Do not forget about the DCD wire, which is soldered to pin #6 of the mikruha. This is feedback. Without it, the computer will not be able to ensure the correct operation of the counter, and hence the machine. Below are the initial procedures for driving a wheelbarrow. But this is not a goofy delphi - it uses a component that you probably don't have. It is called ComDrv32. This is for the serial port. You can simply delve into the essence of the driver. And to control the model, you can download the program SashRRC (this is of course an alpha version, but it copes with its main duty with a bang in all operating systems). One has only to correctly connect the transistors in the remote control with a microcircuit (do not confuse the legs), otherwise when you press forward, the car will go back. The rrc program was written by me only for this scheme:

procedure resetcar; //completely stops the car

var CycleCount:Integer;

begin

if(rrcwindow.Com.Connected=false)then exit;

if(lsCD in rrcwindow.Com.GetLineStatus=True)then

begin

CycleCount:=0;

while(lsCD in rrcwindow.Com.GetLineStatus=True)do

begin

rrcwindow.Com.ToggleRTS(False); //

rrcwindow.Com.ToggleRTS(False); //

rrcwindow.Com.ToggleRTS(True); //tick to the counter

rrcwindow.Com.ToggleRTS(True); //tick to the counter

CycleCount:=CycleCount+1;

if(CycleCount>MaxCycleCount)then begin exit;end;

end

end

else

begin

CycleCount:=0;

while(lsCD in rrcwindow.Com.GetLineStatus=False)do

begin

rrcwindow.Com.ToggleRTS(False); //

rrcwindow.Com.ToggleRTS(False); //

rrcwindow.Com.ToggleRTS(True); //tick to the counter

rrcwindow.Com.ToggleRTS(True); //tick to the counter

CycleCount:=CycleCount+1;

if(CycleCount>MaxCycleCount)then begin exit;end;

end;

CycleCount:=0;

while(lsCD in rrcwindow.Com.GetLineStatus=True)do

begin

rrcwindow.Com.ToggleRTS(False); //

rrcwindow.Com.ToggleRTS(False); //

rrcwindow.Com.ToggleRTS(True); //tick to the counter

rrcwindow.Com.ToggleRTS(True); //tick to the counter

CycleCount:=CycleCount+1;

if(CycleCount>MaxCycleCount)then begin exit;end;

end;

end;

end;

procedure SendCommandToCar(chUp:boolean;chDown:boolean;chLeft:boolean;chRight:boolean); // set the desired command to the wheelbarrow

var Checksuma:Integer;

x: Integer;

begin

checksum:=0;

ResetCAR;

if(rrcwindow.Com.Connected=false)then exit;

{add anti-tampering system}

if (chUp = True) then Checksuma:=Checksuma+2;

if (chDown = True) then Checksuma:=Checksuma+1;

if (chLeft = True) then Checksuma:=Checksuma+8;

if (chRight = True) then Checksuma:=Checksuma+4;

for x:=1 to Checksuma do //wind up to the desired value

begin

rrcwindow.Com.ToggleRTS(False); //

rrcwindow.Com.ToggleRTS(False); //

rrcwindow.Com.ToggleRTS(True); //tick to the counter

rrcwindow.Com.ToggleRTS(True); //tick to the counter

end;

end;

Download program

There will be questions - write to sash_g87 {dog} mail.ru

Publication: cxem.net

See other articles Section Radio control equipment.

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

Wi-Fi bandwidth increased by 8 times 28.11.2012

Scientists from the University of North Carolina have found a way to increase the throughput of Wi-Fi networks by 700% of the current values. It is reported by ExtremeTech. Most importantly, this method is completely software-based, which means that it can also be implemented in existing networks - to instantly increase the data transfer rate.

It is easy to see that the Wi-Fi network in a cafe or airport is slower than at home. The fact is that in a public place a much larger number of devices are connected to the access point and they all work on the same wireless channel. The channel, depending on the wireless technology used, has a maximum throughput value (for example, 100 Mbps). In addition, the channel is bidirectional: that is, data flows in two directions - from the access point to the user's device and from the device to the access point.

As a result of the limited bandwidth and the connection of a large number of devices, there are interruptions in the connection of individual users, when, due to the high load on the channel, data cannot be transmitted freely and is delayed. To solve the problem, the researchers developed a software algorithm called WiFox, which is part of the Wi-Fi hotspot firmware. It monitors delays in data transfer and, if they occur, turns on the high priority mode. In this mode, the access point takes full control over the wireless channel, freeing it from data accumulation. The system then returns to normal operation.

The WiFox algorithm is a police officer that regulates traffic on a reverse road, alternately opening the way for cars traveling in different directions, cites the example of ExtremeTech. At the same time, apparently, the main difficulty in writing the algorithm was that the switching was performed very quickly.

When testing the algorithm on a Wi-Fi network with 45 connections, university scientists registered a 700% increase in throughput. However, the researchers did not provide exact numbers. Therefore, for example, even in the most modern Wi-Fi network operating on the 802.11n protocol, there could be talk of increasing throughput from 1 to 8 Mbps, ExtremeTech suggests.

Other interesting news:

▪ Cat and dog: the secrets of harmony

▪ MXene Smart Fabric

▪ 24-pin ATX connector will be replaced by 10-pin

▪ Precision temperature sensors TE Connectivity G-NIMO-00x

▪ 5G Network Performance Optimization

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ website section Television. Article selection

▪ article Drive nature through the door, it will fly in through the window. Popular expression

▪ article In which country in 2002 did the prime minister train to play football right in his office? Detailed answer

▪ article Sushenitsa marsh. Legends, cultivation, methods of application

▪ article Choice of power, current and section of wires and cables. Encyclopedia of radio electronics and electrical engineering

▪ article Using an optocoupler in a telephone ringer. 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