ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING Control of the radio model using a computer. Encyclopedia of radio electronics and electrical engineering Encyclopedia of radio electronics and electrical engineering / Radio control equipment 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: 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. 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; 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. Latest news of science and technology, new electronics: Machine for thinning flowers in gardens
02.05.2024 Advanced Infrared Microscope
02.05.2024 Air trap for insects
01.05.2024
Other interesting news: ▪ Cat and dog: the secrets of harmony ▪ 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 Sushenitsa marsh. Legends, cultivation, methods of application
Leave your comment on this article: All languages of this page Home page | Library | Articles | Website map | Site Reviews www.diagram.com.ua |