From an early age, I was fascinated by electronic devices, especially RC remote-controlled toys. I've always wanted to build such a vehicle myself, and now the dream has become a reality when I have an ARDUINO UNO microcontroller at my disposal. But first you had to learn much, much to be able to think about such a project at all. After a few weeks of playing with writing command lines, I decided to realize a childhood dream. So, first I gathered the necessary components that I will need to build a "mobile platform". So, I dug out a drive kit from some car, a set of metal plates of bolts and nuts from which to build a tank, a third wheel from my brother's chair, don't tell him curious when he notices its absence :)
After gathering all the mechanical parts needed and assembling them, it was the turn of the electronic parts. So our microcontroller, then I found two MOSFET field effect transistors from a computer power supply, two Zener diodes and an infrared receiver from a radio. Once the project was submitted, it was time to write the program.
It was not an easy thing to do, but after a few hours my sketch was already uploaded to the microcontroller, and so it was time for a test drive. But not all went well, the car received only one command and did not respond to others. And the uphill ride began, which went wrong? After all, everything is connected correctly, so the fault of the program. I modified it, reworked it, wrote additional conditions, but it didn't do anything. Each time there was the same effect. That's when it occurred to me that the program must be good, and I checked to see if our controller and infrared receiver were receiving signals from the remote control at all. It turned out that after disconnecting the motors, everything worked properly. The serial monitor showed the commands I sent from the remote control.
I read many forums and learned that the cause of all my problems was the interference that the engines produced. I am a newcomer, so I warn everyone from this place to be aware of the DISABILITIES!!! Because they can complicate more than one project. The solution to my problem was to use a couple of capacitors. Here I introduce and describe the project in detail: