ASSALAMUALAIKUM Saya mau berbagi informasi yg mungkin berguna buat agan agan sekalian :D, semoga saja kgk :repost: :repost: pertama,siapkan peralatan buat motong,body rc (masih bening),sama plester 1. 2. 3. NOTE:*Nge catnya dari dalem yak :D potong pake alat pemotong tadi,sesuai di buku petunjuk waktu beli lexan body rcnya,lalu pasang sticker slide tape pada kaca jendela dan pasang plester u Tempo de leitura 4 minutesCarro Arduino Bluetooth RCO que vocĂȘ aprenderĂĄ no carro bluetooth ArduinoComponentes necessĂĄrios para fazer o carro Arduino Bluetooth RCDiagrama de conexĂŁo para carro controlado por Bluetooth usando ArduinoCarro controlado por Bluetooth usando cĂłdigo ArduinoComo configurar o aplicativo AndroidCarro Arduino Bluetooth RCNeste artigo explicaremos como fazer um carro Arduino Bluetooth RC. este Ă© um projeto muito simples e bĂĄsico do Arduino. e tambĂ©m um projeto muito popular como o Smart Dustbin. hĂĄ muita procura por este projeto. entĂŁo, decidimos fazer os projetos com todas as instruçÔes necessĂĄrias para que isso fosse possĂ­vel. O que isso faz? move-se de acordo com as suas instruçÔes que lhe daremos no seu Celular. e vocĂȘ pode usar este robĂŽ de carro RC em muitas aplicaçÔes, por exemplo, vocĂȘ pode usar este robĂŽ em sua casa para transportar a comida. ou podemos usar este robĂŽ para limpar nosso chĂŁo. isso depende de onde vocĂȘ pode usar este robĂŽ incrĂ­vel. para saber como fazer o robĂŽ, leia o artigo completo passo a passo. hĂĄ algum Ă­ndice conforme fornecido a que aprenderemos neste funciona?Componentes necessĂĄrios para fazer o de ligaçãoCĂłdigo do configurar o aplicativo fazer upload do que vocĂȘ aprenderĂĄ no carro bluetooth ArduinoComunicação em sĂ©rieO que Ă© comunicação serial e por que ela Ă© necessĂĄria? Temos muitos dados paralelos. por exemplo, se eu tenho os dados “ASKONIZATION” que precisam ser transferidos, entĂŁo precisamos de 12 fios ou 12 caminhos para transferir os dados de um dispositivo para outro. mas como estamos usando comunicação serial, os dados organizados em serial com a ajuda de algum registrador de deslocamento podem ser transferidos por um Ășnico fio. esta Ă© uma maneira muito fĂĄcil e simples de transferir muitos dados com um Ășnico fio, em vez de usar vĂĄrios caminhos ou usar o mĂłdulo Bluetooth hc-05 com ArduinoComo discutimos no parĂĄgrafo acima sobre comunicação serial, agora aprenderemos como transferir os dados por Bluetooth usando comunicação serial. Existem quatro pinos no mĂłdulo Bluetooth Rx, Tx, VCC e terra. conecte-se corretamente de acordo com o diagrama de circuito fornecido para carro controlado por Bluetooth usando Arduino. Usaremos a taxa de transmissĂŁo 9600 na qual um Bluetooth hc-05 pode se comunicar com o Arduino. O mĂłdulo Bluetooth HC-05 Ă© fĂĄcil de usar porque temos muitas bibliotecas dentro do IDE do Arduino. o que ajuda a escrever o funciona?no carro Arduino Bluetooth os dados enviam do celular para o mĂłdulo Bluetooth hc-05 que estĂĄ conectado ao Arduino e o Arduino toma decisĂ”es de acordo com os dados recebidos via Bluetooth. se vocĂȘ enviar uma instrução para a esquerda do seu telefone celular, o Arduino enviarĂĄ a instrução para o motor mover para a direita. mas vocĂȘ deve conectar o dispositivo mĂłvel ao seu carro RC Bluetooth. e hĂĄ um aplicativo que controla o feedback de toque para qualquer necessĂĄrios para fazer o carro Arduino Bluetooth RCArduino UnoMĂłdulo Bluetooth HC-05Jumper WiresChassisModulo L298NBateria 12VDiagrama de conexĂŁo para carro controlado por Bluetooth usando ArduinoCarro controlado por Bluetooth usando cĂłdigo Arduinochar m=0; void setup { pinMode9, OUTPUT; pinMode10, OUTPUT; pinMode11, OUTPUT; pinMode12, OUTPUT; } void loop { if { m= } if m=='R' { digitalWrite9, HIGH; digitalWrite10, LOW; digitalWrite11, HIGH; digitalWrite12, LOW; } else if m=='L' { digitalWrite9, LOW; digitalWrite10, HIGH; digitalWrite11, LOW; digitalWrite12, HIGH; } else if m=='F' { digitalWrite9, HIGH; digitalWrite10, LOW; digitalWrite11, LOW; digitalWrite12, HIGH; } else if m=='B' { digitalWrite9, LOW; digitalWrite10, HIGH; digitalWrite11, HIGH; digitalWrite12, LOW; } else if m=='S' { digitalWrite9, LOW; digitalWrite10, LOW; digitalWrite11, LOW; digitalWrite12, LOW; } }Como configurar o aplicativo AndroidBaixe o controlador RC Bluetooth da Play StoreClique no Ă­cone ConfiguraçÔes e conecte-se ao seu dispositivo BluetoothNa foto acima os cĂ­rculos em amarelo, sĂŁo os comandos que vocĂȘ movimentar programada no CĂłdigo acima. Visits 2 Visits 1713287

Cobalihat katalog rc car police remote harganya mulai Rp 48.900 tersebar di berbagai toko online, bandingkan jual Rc Car Police Remote ori dan Rc Car Police Remote kw dengan harga murah Selamat Datang di Semoga Rezekinya semakin banyak & berkah 10000x lipat

Introduction Make a RC Boat From Old RC CarThese is simple and easy steps to convert an old RC car to RC 1 car plate container card glueStep 2 Placing Parts on the Cork Platesee the 3 The Plastic Container1hole for the on/off switch 2hole for the DC jack 3 and 4 holes for the shaftStep 4 Steering the Boatusing the same steering motor for the RC car. we need to make a fan from the plastic card. see the photos. use superglue to connects the 5 Set Up the Motors in the Front and Backyou need to make a rectangular hole in the front for the steering motor. set up the plastic container see the second photo.Step 6 Finishcharging first.... then enjoy your new boat.. D
\n cara buat rc car
RCCar Damper Untuk drifting biasanya posisi shock belakang lebih tegak, dan posisi shock depan lebih miring mengarah ke tengah chassis Ada 2 cara untuk mengatur kelembutan atau kekerasan suspensi: Dengan menggunakan "PER aka Spring" yang lembut.

Kali ini kita akan membuat sebuah Mobil Remote Control atau bisa di sebut RC Robot yang berjenis Mobile Robot robot berroda robot ini akan dikendalikan menggunakan sebuah smartphone Android melalui koneksi bluetooth dengan menggunakan aplikasi Arduino Bluetooth RC Car yang dapat di download secara gratis di google play module bluetooth yang digunakan adalah Module Bluetooth HC-05 yang terkoneksi dengan Pin digital Arduino Uno sebagai kontrol utama, dan untuk body robot sendiri bisa di beli atau di rancang sendiri, kalau saya sendiri untuk body robotnya buat sendiri dengan bahan Acrylic yang tebalnya 3mm, untuk lebih lengkapnya ikuti langkah-langkah komponen yang di perlukan sebagai berikut Arduino Uno satu saja Driver Motor H-Bridge L298N satu saja Modul Bluetooth HC-05 satu saja Motor DC dengan Gearbox sepasang Roda sepasang Freewheel/Roda depan pakai roll on bekas parfume/freshcare satu saja Body Robot/Casis 1x satu saja Spacer secukupnya Kabel Jumper secukupnya Switch satu saja Baterai Lipo satu saja Smartphone Aplikasi Bluetooth RC Controller download di sini Setelah semua komponen sudah lengkap selanjutnya masuk proses perakitan untuk Skema perakitan/Diagram rangkaian sebagai pada DRIVER MOTOR dengan MOTOR DC dan membuat kabel koneksi pada PIN INPUT yang ada di DRIVER MOTOR untuk ke PIN ARDUINO nantinya dan pasang SWITCH ON/OFF. Memasang SPACER dan menghubungkan PIN dari ARDUINO ke PIN INPUT yang ada di DRIVER MOTOR sesuai dengan diagram rangkaian, hubungkan juga 5V,GND dari DRIVER MOTOR menuju 5V,GND yang ada di ARDUINO dan letakkan BATERAI di bawah ARDUINO. Selanjutnya pasang MODULE BLUETOOTH sesuai dengan diagram rangkaian TX ke PIN 12 dan RX ke PIN 13 ARDUINO, jangan lupa hubungkan power untuk BLUETOOTH yaitu VCC ke dan GND ke GND ARDUINO, untuk menghidupkan MODULE BLUETOOH ini dengan tegangan sudah bisa berfungsi dengan baik. Hubungkan BATERAI dan cek kembali rangkaian coba untuk menyalakan untuk test koneksi kabel-kabel. Pasang roda FREEWHEEL. Berikutnya PROGRAMING dengan ARDUINO IDE, hubungkan kabel arduino ke PC/Laptop dan UPLOAD PROGRAM. Silahkan langsung copy coding arduino berikut ke software arduino. Langkah selanjutnya coba koneksikan ROBOT dengan SMARTPHONE/ANDROID dengan cara PAIRING /SANDINGKAN telebih dahulu BLUETOOTH HC-05 biasanya masukkan PASSWORD default PASS 1234, setelah di sandingkan buka aplikasi Bluetooth RC Controller pilih menu GEAR pilih CONNECT TO CAR. SELESAI. test dengan menekan tombol pada aplikasi. Sekian artikel kali ini, semoga bisa di coba dan berhasil, jika ada yang kurang jelas ingin ditanyakan silahkan tinggalkan komentar . semoga bermanfaat, Terimakasihh..Oke, Untuk hasilnya lihat pada video berikut.

JualRadio Rig Hytera MD788 dan cari produk terbaik lainnya dari kategori Radio Rig dari Merk Hytera Gratis biaya pengiriman untuk wilayah Jakarta-Depok dan dapat dikirim ke seluruh Indonesia. Dapatkan hanya di toko online Indotelecom.id, belanja online alat ukur dan alat survey mudah dan aman.. berbagai produk dari supplier dan distributor resmi yang tersebar.

Nothing beats the thrill of driving a scale model RC car that you built yourself. It feels great because you’ll feel confident knowing that you’re racing a piece of gear that you put together without any outside help. That being said, you’ll want to take a few moments to pick out a vehicle model that fits your current skill level. You’ll feel even more confident if you finish a project the first time and walk away with something you can drive. That’ll also give you the skills you need to move onto a more complex project in the an Appropriate Model Kit Technicians from Traxxas have been putting together model kits for a variety of different skill levels for quite some time. That means you shouldn’t run into any difficulty with finding something that fits your experience. Consider starting with something like the Traxxas Stampede 4×4 XL-5 Kit. It comes with all of the electronics that you might need to put one together. Those who want to make some additional customizations can try a Pro-Line Racing body. Check out a wide variety of RC truck bodies, such as the early 50s Chevy body or a Ford F-100 RC Car Kits Hobbyists who are ready to move up in their modeling can pick something like the Traxxas TRX-4 4WD Crawler Kit. It includes a chassis and a TQi GHz radio system, but still offers plenty of places for you to go your own way with it. Individuals who’d prefer more options and want to source the electronics themselves can instead opt for the Traxxas TRX-4 Sport Crawler Kit. While it includes everything you’d need to put together a physical body and some scale components, it lacks electronics so you can feel free to make your own decisions during the assembly process. Scale model racers who are serious about details may wish to add things like the RPM Chrome Mock Intake and Supercharger set to nearly anything that they’re working on. It can add quite a bit of realism as well as the look of some genuine muscle power. Keep in mind that if you’re building your own RC car from scratch, there’s no reason that you have to follow any specific pattern or prototype. There are some people who prefer to strictly adhere to certain guidelines or model after a vehicle driven by a particular racer. That’s why Tamiya has provided polycarbonate paint products that match the look of those used on actual vehicles. Some people, though, would like to just go wild with their designs. If that’s what you prefer, then you can feel free to Your Own Particular Sense of RC Car Style Whether you’re a strict scale modeler or prefer to drive more sporty designs, you’ll want to find something that feels right for you. Take a few moments to browse our catalog. Once you’re ready to learn more about the different options for scratch building RC cars, make sure to contact us online. Our experienced team will help you put together a collection of compatible parts.
caramembuat mobil RC. Bermain mobil-mobilan yang dikendalikan lewat sinyal radio merupakan permainan yang menarik. Mobil mainan yang banyak digemari anak-anak, dengan ditambah rangkaian sederhana ini akan menjadi mobil mainan idaman. Rangkaian ini mengggunakan IC digital keluarga CMOS yang memerlukan arus listrik sangat kecil, sehingga tidak Helo temen-temen Pada kesempatan kali ini saya akan menulis artikel tentang Tutorial Lengkap Membuat Robot Remote Control Bluetooth HC-05. Robot Mobil Remot Control dengan Arduino Nano dan Bluetooth HC-05 saya buat dengan bahan case seadanya, yaitu bekas akrilik yang tidak yang dibutuhkan untuk membuat robot mobil remote control sebagai berikut Arduino Nano V3PCB LubangMotor DC dan RodaIC L293DBluetooth HC-05Pin HeaderLangkah LangkahRakit terlebih dahulu Robot RC Car dengan bahan seadanya, atau dengan case yang sudah dibuat dengan akrilik atau 3D printBuat PCB yang menyatukan komponen Arduino, IC Driver dan BluetoothBuat program bluetooth untuk melakukan testing komunikasi hp android dengan arduinoBuat program untuk mengetes motor DCSatukan program komunikasi bluetooth dan motor DCRangkaian SkematikBerikut adalah rangkaian skematik arduino, bluetooth hc-05, dan driver motor dc l293DBerikut adalah code arduino yang sudah saya buat/* * Code RC Anak Kendali * 2020 */ define dira 2 define dirb 4 define pwma 3 define pwmb 5 define vccbt 9 define gndbt 10 define txbt 11 define rxbt 12 String data; include SoftwareSerial Serialbt txbt, rxbt; void motorint a, int b { if a >= 0 { digitalWrite dira, 0; analogWrite pwma, a; } else if a = 0 { digitalWrite dirb, 0; analogWrite pwmb, b; } else if b 0 { delay10; char c = data += c; } if > 0 { if data == "SS" { motor0, 0; } else if data == "FF" { motor255, 255; } else if data == "GG" { motor100, 255; } else if data == "II" { motor255, 100; } else if data == "LL" { motor0, 255; } else if data == "RR" { motor255, 0; } else if data == "BB" { motor-255, -255; } else if data == "HH" { motor-100, -255; } else if data == "JJ" { motor-255, -100; } else if data == "HH" { motor-100, -255; } else if data == "JJ" { motor-255, -100; } data = "";; } // motor100, 255; // serong kiri // motor255, 100; // serong kanan // motor0, 255; // hadap kiri // motor255, 0; // hadap kanan // motor255, -255; // maju // motor-255, -255; // mundur // motor0, 0; // berhenti // motor-100, -255; // serong kiri mundur // motor-255, -100; // serong kanan mundur // motor0, -255; // hadap kiri mundur // motor-255, 0; // hadap kanan mundur }Video TutorialUntuk lebih lengkap dan lebih jelasnya, silahkan lihat dan tonton video dibawah ini.
PembuatanRC Boat dan miniatur merupakan apliksi ilmu yang didapat selama menimbah ilmu kurang lebih 3 tahun di SMK Negeri 5 Batam khusunya jurusan RBK. Produk yang dihasilkan bukan hanya berorientasi pada hasil, tapi lebih ke proses yang dilalui selama pembuatan produk. Karena dalam proses yang dijalani membutuhkan rencana, strategi, kerja sama dan kekompakan
- Kenangan masa kecil dengan mobil milik orang tua pada masa kecil pun bisa jadi kenangan yang akan terus diingat. Seperti yang dialami oleh R. Ris Triono Agung, salah satu penghobi R/C Adventure dari Bandung. Kenangan masa kecil dengan Mercedes-Benz G-Class keluaran 1986 milik Sang Ayah, membuatnya tergila-gilanya dengan G-Class. Segala macam mainan berbentuk buatan kolaborasi antara Steyr-Puch dan Mercedes-Benz ini pun tidak pernah luput dari incarannya. RC Adventure kesayangan Agung pun tidak lepas dari MB G-Class. Tapi, mendapatkan bodi G-Class untuk R/C berskala 1/10 tidak mudah. Baca Juga Coba Tebak, Berapa Harga Toyota Land Cruiser Seri 80 Ketika Meluncur 1995? Akhirnya langkah Scratchbuild pun terpaksa dilakukan dengan menggunakan bahan yang bisa ditemui sehari-hari, seperti plastik atau kayu. Dengan bermodal referensi dari internet, die-cast, dan melihat langsung mobil aslinya, Agung pun membuat bodi G-Class secara handmade. Setelah menemukan dimensi bodi yang pas dengan kit R/C Axial yang menjadi basic RC Adventure nya, kerajinan tangan pun dimulai. Raw material plastik jenis styrene dipilih Agung untuk bahan bakunya. body rc handmade
· Cara self healing. Dalam Islam, kita bisa menemukan cara-cara yang akan menyembuhkan diri kita secara psikis. Dengan cara berikut, kita bisa lebih mendekatkan diri kepada Allah yang Maha Menyembuhkan setiap hamba-Nya. Baca Juga: Salah Kaprah Makna Healing. Cara Self Healing yang Mudah. .
Electronics and Programming are not that Scary Most of us here, write a lot of code and very rarely have any kind of interaction with electronics, which indeed run our codes. Another thing is a common myth that electronics are very difficult to understand and that we need at least an electronic engineer title to get started with it. As a technician, petrolhead and coding enthusiast, Arduino was always somewhere on my list. I also had an RC car when I was a kid and always wanted to buy another one in my adulthood, so now when I have started learning to code, got an Arduino kit, it was the best time to make this childhood dream come true. Before and if you proceed to the next part I want to add a few more things. First of all, this is an old article that I have published before on some technical websites related to microcontrollers, so you can treat this one just as a remastered version. This tutorial is heavily based on the technical explanation, however, in the second part of the tutorial, I explain the code written in Arduino IDE. Last but not least, even though ArduCar is my own application written in Java, I have not provided the source code nor an explanation of it in this tutorial. Let's have some fun! In this instruction, you will learn how to create an Arduino based RC car from a scratch. No prior programming, Arduino, or electronics experience needed. Even though having some previous experience in those fields can be helpful, everyone should be able to finish this project without any problems. You may also ask, why Power bank? These days, those devices are becoming more and more affordable, in some cases, they are even cheaper than batteries, many of us have them at our own houses, they can be reused, and recharged anytime we want. The project covers the basics principles of creating such a car, with a minimalistic approach on materials, and explains the code in details. Moreover, provided instructions can be also used in different projects, so let's start! As a hobbyist, I didn't have many tools like soldering iron etc. So I have tried to make use of some old electronic things such as USB cable or power bank, that most of you may have somewhere at home. You may follow all of my instructions, but feel free to change some parts and be creative. Below, the list of the materials can be found Arduino UNO car chassis, with wheels and motors, kit male - male, and female - male jumper wires electrical insulation tape Bluetooth module HC-06 or HC-05 DC motor controller L298N Power Bank with 2 USB outputs Piezo buzzer Android mobile phone PC with Arudino IDE installed ArduCar - Arduino RC Car Bluetooth Controller Step 1 Chassis Assembly First of all, we will need to assembly the chassis of our car. If you have a kit, most probably you also got the instructions with it, but just in case the steps can be found below Prepare the main part of the chassis, 4 small plastic brackets which will mount motors on the chassis frame 2 for each, screws, brass spacers, nuts, motors, useless USB cable, and 4 cables/ jumper wires. Connect one wire to each pin of a motor, you can solder them but if you don't have soldering iron, just try to "knot" the cables to each pin. Now take your old/spare USB cable, and cut it so there is around 20 cm of cable left. Strip a few centimetres of cable covering so you can see the cables inside it; there should be 4/5 cables inside, but we are interested just in two cables, GND - black one, and Plus - Red one. Strip 2-4 cm of covering from both red and black cable. You can leave it like that, or to make it stronger just "knot" it or solder with longer, stronger cable/ jumper wires so that the connection is firm enough. Take the motor, and mount it to the chassis frame with plastic brackets 2 for each, using screws and nuts. Please note that, each motor has a small "dot" on one side, and that dot should face inward so that when two motors are on place, these dots face each other. Once the motors are on their place, it is time for the 3rd nylon supporting wheel. When you look at the end of the frame, there should be 4 small holes next to each other, looking like a square shape. Take the brass spacers and mount them to these holes with screws, so brass spacers are on the same side of the frame with motors. Mount the nylon supporting wheel to the brass spacers with screws. Install the wheel to each motor. Note that, there is a shape inside of the wheel hub so be sure to put it in the right place. Most probably there will be a huge resistance, but you have to be gentle with it and use some power at the same time. We are almost done with assembling the car, at this point you can install Arduino module and DC motor controller to the frame. I used 3 screws with nuts that were left from the kit and covered wires with electrical insulation tape where it was necessary. Step 2 Wiring Once we have our car assembled with both Arduino and DC motor controller onboard, it is time for wiring. Prepare the jumper wires, both male - male and female - male. Take the cables that are connected to the motors and install them to the DC motor controller. Let's say that lower pins, the ones closer to the ground, are the plus pins, and the ones closer to the frame are minus GND. The circuit should look like this OUT1 - Left motor - GND cable OUT2 - Left motor + cable OUT3 - Right motor + cable OUT4 - Right motor - GND cable Now let's connect Arduino to the DC motor controller, in order to do that, we will use pins with tiny names IN1, IN2, IN3, and IN4. Previous OUT1, 2, 3, 4 sockets were responsible for transferring the power to the electric motors, but with IN1, 2, 3, 4 pins, we will send commands to the controller from our Arduino device. This time you may need female - male wire jumpers, but if you don't have such a wire just try to modify male - male wire jumper or solder the wires to the pins. IN1 - DIGITAL 5 IN2 - DIGITAL 6 IN3 - DIGITAL 10 IN4 - DIGITAL 11 Bluetooth module is the last crucial thing we will need for our steering, when you look at the Bluetooth module it should have 4 pins and each pin is signed as follows VCC - POWER, GND - Ground -, TXD - transfer data, RXD - receive data. Female - male jumper wires may be needed once again this time. VCC - POWER 5V GND - POWER GND TXD - DIGITAL 0 RXD RXD - DIGITAL 1 TXD As you can see, data will be exchanged between Arduino and our Bluetooth module, that is why data cables are connected in the opposite way. Piezo buzzer has 2 legs, a longer one, Anode +, and shorter one Cathode-. It is recommended to use 330 Ohm resistor between piezo buzzer and Anode because it is a very sensitive and tiny instrument, but I didn't use one, as the resistor makes my piezo buzzer very silent. Note Female - male wire jumpers may be helpful again. Anode+ long leg - DIGITAL 3 Cathode- short leg - POWER GND We are almost there! Now we need to power our Arduino board and DC motor controller. Take the USB cable part that we have prepared in the previous part and connect those two cables; red and black to DC motor controller. Red cable + - 12 V Black cable - - GND The last step is to connect two USB cables, one to Power bank and Arduino board, and other one that connected to the DC motor controller, to Power bank as well. Last thing is to mount your Power bank on the frame, I used an electrical insulation tape to stick it to the frame, but there are many other ways to mount it. Note some Power banks may have a switch or button on them, so to power the circuit you may need to switch the power on. All of the parts and wiring are on its' place, but still there is no code in Arduino and no application on the mobile phone to control the car. Step 3 Programming Now that we have our RC car ready, the last part is to upload the code to the Arduino board and download the application on an Android mobile phone. For this step, you will need the Arduino IDE program on your computer, which can be downloaded from the Arduino official website. Once you have it installed, there are two options that need to be set. Open the Arduino IDE program and you will see a few options on the upper bar, pick "Tools" and then you should see the list, find the option called "Board" and pick your Arduino board from the list most of the time it is Arduino UNO. Later, right under the "Board" option, click on the "Port" option, if there are no USB devices connected to your PC, it may be greyed out/disabled, once you connect your Arduino board with a USB cable this option should become available, you may have to choose one port, for example in my case it is PORT 5. Even though I have 3 USB ports on my laptop, just one of them works as a PORT. You can try with different USB sockets on your computer till it works. Before we move on to uploading the code to Arduino, you have two options Just download the attached file, open it with Arduino IDE program and simply upload it. Go to Arduino IDE program, click on File - New, copy the code from here, and click on the "Upload" icon. Remember that while uploading your code Arduino board should be connected to your PC via the right USB socket, on which the port is set. Note While uploading the code to Arduino, DIGITAL 0 RX, DIGITAL 1 TX sockets should be unplugged, when those sockets are connected to the Bluetooth module, Arduino may not accept the incoming data from your PC and the program may freeze at "uploading" state. Below you can find the code with explanations. After uploading the code to the Arduino board, it is time to reconnect DIGITAL 0 RX and DIGITAL 1 TX pins to the Bluetooth module and reconnect the USB cable Arduino - Power bank to the Power bank. last step to make your RC car work, is to download the Android application from Google Play Store, and start having fun! You may also download different applications, as long as they send the matching serial codes, or even create your own mobile application. Thank you for your attention, and wish you have a lot of fun with it. In case of any questions or suggestions, please let me know about it down below in the comments section. define in1 5 define in2 6 define in3 10 define in4 11 int state; int piezo = 3; void setup { pinModein1, OUTPUT; pinModein2, OUTPUT; pinModein3, OUTPUT; pinModein4, OUTPUT; pinModepiezo,OUTPUT; } void loop { if > 0 { state = Stop; switch state { case 'F' forward; soundFX break; case 'G' forwardleft; soundFX break; case 'D' forwardright; soundFX break; case 'N' backright; soundFX break; case 'C' backleft; soundFX soundFX soundFX soundFX break; case 'B' back; soundFX soundFX soundFX soundFX break; case 'L' left; soundFX soundFX soundFX soundFX break; case 'R' right; soundFX soundFX soundFX soundFX break; case 'H' soundFX soundFX soundFX soundFX } } } void forward { analogWritein1, 255; analogWritein3, 255; } void forwardleft { analogWritein1, 50; analogWritein3, 255; } void forwardright { analogWritein1, 255; analogWritein3, 50; } void back { analogWritein2, 255; analogWritein4, 255; } void backright { analogWritein2, 50; analogWritein4, 255; } void backleft { analogWritein2, 255; analogWritein4, 50; } void left { analogWritein4, 255; analogWritein1, 255; } void right { analogWritein3, 255; analogWritein2, 255; } void Stop { analogWritein1, 0; analogWritein2, 0; analogWritein3, 0; analogWritein4, 0; } void soundFXfloat amplitude,float period{ int uDelay=2+amplitude+amplitude*sinmillis/period; forint i=0;i 0 { First statement in the loop starts with if, inside the brackets we can see a condition, it says > 0 - simply it means, if Serial, in our case Bluetooth module, is available, greater than 0, remember the binary code 1 - true, 0 - false, do the following { } - everything in those curly braces will be executed. state = Remember that state variable at the beginning of the code? This is the time when we assign the value to that variable = so our state variable now is equal to which means that the variable will change according to what is read from the Bluetooth module. Stop; Those two brackets after a name indicates that it is a function, and it has to be explained somewhere in the code. The same with this one, the first function to be executed in this code is the function named Stop, which will just literary cut off the power from the wheels and make our RC car stop. switch state Right after the Stop function, we have another one, this time it is the global function, that exist in nearly every programming language, and it is called switch - what literary means that there will be few functions inside, and we will just switch between them. This time you can see that inside the brackets we have a condition, and the condition is a variable called state, which value was assigned to everything that is received from the Bluetooth module. case 'F' As you can see, each possible function inside the switch, will be marked as "case" and in the single quotations we can see the possible value of the state variable. In this case, if the state equals 'F' - such a character is sent to the Bluetooth module via the mobile application, some functions will be executed. forward; The first function to be executed soundFX 30+400*1+sinmillis/5000; The second function to be executed, this time with some conditions inside the brackets. break; break means to stop executing this case, you always have to finish each case with break; statement. case 'G' forwardleft; soundFX 60; break; Enter fullscreen mode Exit fullscreen mode Almost everything is explained now, but there were some functions like forward, soundFX etc. in the code, but they were not explained in the void setup { }, nor in the void loop { } part of the code. If there are such functions in the code, they should be explained at the end of the code. Below you can see an example. void forward Again, in order to call a function firstly void should be written, and after a space, name of the function should be written, for example forward. Inside the curly brackets we can see the explanation of the 255; analogWrite means that we are sending a signal, in case we were receiving, it should be written as analogRead. Inside the brackets there are two values in1 - the name of the pin that we are referring to, and 255 - the value of the electrical wave frequency, that can range from 0 to 255 - 0 means 0%, and 255 means 100%. It can be also written as LOW - 0, HIGH - 255. As you can see, this is the place where you can change the speed of each electric motor. analogWritein3, 255; In this way, we can say that by changing pins in1, 2, 3, 4, and values, we can control the side from which the electricity will enter the motors, what will be the voltage, and as a result the speed and direction. void soundFXfloat amplitude, float period This is the part that I have found on Arduino official forums, on the topic of SciFi sounds for the Piezo buzzer. You can find this code in the last post, for further explanations you can go to the link below. int uDelay=2+amplitude+amplitude*sinmillis/period; forint i=0;i<5;i++{ digitalWritepiezo, HIGH; delayMicrosecondsuDelay; digitalWritepiezo, LOW; delayMicrosecondsuDelay; } } Enter fullscreen mode Exit fullscreen mode It is how it works. From now on, hopefully you can also make your own contribution to the code, change something, add some new functions, or rewrite it in your own way. Bluetooth Configuration At the last, but not least, there is one more important thing to mention. HC-05 and HC-06 Bluetooth modules generally come up with default settings, such as baud rate, name, password etc. But if you would like to configure your Bluetooth module, you can use Arduino IDE program for this purpose. However, you may need to change the pins that Bluetooth module is connected to, and change Arduino code for the configuration time. Moreover, it is recommended to use resistors, in order to protect the Bluetooth module, as the data pins work at while the default output voltage of Arduino is 5V. Please keep all of those things in mind, I won't go throughout the whole process here, but there are plenty of tutorials available, just simply google it. If there are any suggestions, or questions please let me know in the comments' section below. Thank you for your attention once again, and don't forget to share your own projects below!
4lyT4r.
  • bgu7squ0n5.pages.dev/307
  • bgu7squ0n5.pages.dev/213
  • bgu7squ0n5.pages.dev/108
  • bgu7squ0n5.pages.dev/1
  • bgu7squ0n5.pages.dev/237
  • bgu7squ0n5.pages.dev/294
  • bgu7squ0n5.pages.dev/188
  • bgu7squ0n5.pages.dev/309
  • bgu7squ0n5.pages.dev/167
  • cara buat rc car