{"id":114,"date":"2017-11-01T20:33:28","date_gmt":"2017-11-02T00:33:28","guid":{"rendered":"https:\/\/sites.bu.edu\/uav\/?page_id=114"},"modified":"2019-10-11T13:21:26","modified_gmt":"2019-10-11T17:21:26","slug":"step4","status":"publish","type":"page","link":"https:\/\/sites.bu.edu\/uav\/first-build\/step4\/","title":{"rendered":"Step 4: Program Control"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Step 4: Program &amp; Calibrate!<\/span><\/p>\n<p><b>NOTE: DO NOT HAVE PROPS ON YOUR DRONE AT ANY TIME DURING THIS STEP<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Setting up Cleanflight (<\/span><a href=\"http:\/\/cleanflight.com\/\"><span style=\"font-weight: 400;\">http:\/\/cleanflight.com\/<\/span><\/a><span style=\"font-weight: 400;\">):<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">Begin by installing the chrome app that will allow you to interface with your drone. Open Cleanflight and begin by downloading the suggested drivers (<\/span><b>CP210x<\/b><span style=\"font-weight: 400;\"> and <\/span><b>STM USB VCP<\/b><span style=\"font-weight: 400;\">). Instead of downloading Zadig we recommend using <\/span><b>Impulse RC Driver Fixer <\/b><span style=\"font-weight: 400;\">on Windows.\u00a0 This can be downloaded here (<a href=\"https:\/\/impulserc.blob.core.windows.net\/utilities\/ImpulseRC_Driver_Fixer.exe\">https:\/\/impulserc.blob.core.windows.net\/utilities\/ImpulseRC_Driver_Fixer.exe ).<\/a><\/span><\/p>\n<p><a href=\"\/uav\/files\/2019\/10\/coding1.png\"><img loading=\"lazy\" src=\"\/uav\/files\/2019\/10\/coding1.png\" alt=\"\" width=\"512\" height=\"242\" class=\"size-full wp-image-454 aligncenter\" \/>\u00a0<\/a><\/p>\n<p><a href=\"\/uav\/files\/2019\/10\/coding2.png\"><img loading=\"lazy\" src=\"\/uav\/files\/2019\/10\/coding2.png\" alt=\"\" width=\"512\" height=\"166\" class=\"size-full wp-image-455 aligncenter\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">In addition, you will likely need the BHeli32 Suite to manage your ESC firmware and change directions of motors electronically. (<\/span><a href=\"https:\/\/github.com\/bitdump\/BLHeli\/tree\/master\/BLHeli_32%20ARM\"><span style=\"font-weight: 400;\">https:\/\/github.com\/bitdump\/BLHeli\/tree\/master\/BLHeli_32%20ARM<\/span><\/a><span style=\"font-weight: 400;\">)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2. Connecting to your drone\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If you have completed the driver setup as above when you connect your drone for the first time, you should be able to flash it with new firmware.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To flash your firmware, you must connect the board in \u201cbootloader mode\u201d. Bootloader mode means that the board is ready to accept new programming. To put the board into bootloader mode, hold down the bootloader button while plugging in the USB cable. Leave the button pressed for a moment after plugging in the USB cable to be sure it \u201ctakes\u201d<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Once in bootloader here are the remaining steps:<\/span><\/p>\n<ol>\n<li><span style=\"font-weight: 400;\"> Go to the \u201cFirmware Flasher\u201d tab.\u00a0<\/span><\/li>\n<li><span style=\"font-weight: 400;\"> Select \u201cKAKUTEF7\u201d in the \u201cChoose a board\u201d pulldown menu. If you flash any other board type, the Kakute F7 will not function. It won\u2019t be damaged, it just won\u2019t work until you flash KAKUTEF7 to the board.\u00a0<\/span><\/li>\n<li><span style=\"font-weight: 400;\"> Select the latest version of Betaflight in the \u201cChoose a firmware version\u201d pulldown menu.\u00a0<\/span><\/li>\n<li><span style=\"font-weight: 400;\"> Click the \u201cLoad Firmware (Online)\u201d button. The button will change to read \u201cDownloading\u201d. The Flash Firmware button will change from gray to orange.\u00a0<\/span><\/li>\n<li><span style=\"font-weight: 400;\"> Click the \u201cFlash Firmware\u201d button. The screen should automatically scroll down to show the status bar, which will fill with orange as the flashing process completes.\u00a0<\/span><\/li>\n<li><span style=\"font-weight: 400;\"> Flashing will be followed by a process called \u201cVerifying\u201d. Verification sometimes fails, but this isn\u2019t a problem. If the flash completes, everything is usually fine.\u00a0<\/span><\/li>\n<li><span style=\"font-weight: 400;\"> Un-plug your board and then plug it back in again, this time without holding down the bootloader button.\u00a0<\/span><\/li>\n<li><span style=\"font-weight: 400;\"> For Windows users, the pull down menu in the upper right of the configurator will read COM3 (or some other number). For MacOS and Linux users, the pulldown will read something starting with \/dev\/tty. This is normal. If the pulldown menu reads \u201cManual Selection\u201d then your board is not being detected. This may indicate that you did not use the KAKUTEF7 target when you flashed the board. Or it may indicate that your Virtual COM Port (VCP) drivers were not installed correctly. You are ready to configure your board<\/span><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 3. Binding the Receiver:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Watch this tutorial up until 4 minutes for how to bind the receiver to the transmitter. (<\/span><a href=\"https:\/\/www.youtube.com\/watch?v=RH_RuVbF2YU\"><span style=\"font-weight: 400;\">https:\/\/www.youtube.com\/watch?v=RH_RuVbF2YU<\/span><\/a>)<\/p>\n<p><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 4. Configuring the board:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">We recommend following the manual for the Kukute F7 (<\/span><a href=\"http:\/\/www.holybro.com\/manual\/Holybro_Kakute_F7_Manual.pdf\"><span style=\"font-weight: 400;\">http:\/\/www.holybro.com\/manual\/Holybro_Kakute_F7_Manual.pdf<\/span><\/a><span style=\"font-weight: 400;\">) from page 19 to completely configure your drone.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If you have bound the receiver correctly, it should have a stable green LED when connected to any power source. Read this page for how to set up additional input including buttons and switches<\/span><\/p>\n<p><a href=\"https:\/\/oscarliang.com\/setup-switch-opentx\/\"><span style=\"font-weight: 400;\">(https:\/\/oscarliang.com\/setup-switch-opentx\/)<\/span><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Click on the Receiver tab on Cleanflight. You should be able to move the sticks on the transmitter and see the corresponding values change. If the sticks are not set up how you want, change the Control Mapping in the same tab to <\/span><b>TAER1234. <\/b><span style=\"font-weight: 400;\">The diagram below shows how you usually want the controls to be set up.\u00a0<\/span><\/p>\n<p><a href=\"\/uav\/files\/2019\/10\/controller.jpg\"><img loading=\"lazy\" src=\"\/uav\/files\/2019\/10\/controller.jpg\" alt=\"\" width=\"379\" height=\"370\" class=\" wp-image-456 aligncenter\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a05. Calibrating the motors<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To start, go to the motors tab on Cleanflight. Looking at the diagram make sure your motors are in the right numbered positions and spinning in the correct direction.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If they are not, you can either swap the positive and negative leads by un-soldering them<\/span><\/p>\n<p><span style=\"font-weight: 400;\">OR<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Use the BHeli32 Suite (<\/span><a href=\"https:\/\/github.com\/bitdump\/BLHeli\/tree\/master\/BLHeli_32%20ARM\"><span style=\"font-weight: 400;\">https:\/\/github.com\/bitdump\/BLHeli\/tree\/master\/BLHeli_32%20ARM<\/span><\/a><span style=\"font-weight: 400;\">) to switch the spin directions of the motors \u2013 Oscar Liang has a helpful guide (<\/span><a href=\"https:\/\/oscarliang.com\/blheli-32-esc-fc-passthrough\/\"><span style=\"font-weight: 400;\">https:\/\/oscarliang.com\/blheli-32-esc-fc-passthrough\/<\/span><\/a><span style=\"font-weight: 400;\">) that can help you walk through it.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Once your motors are spinning correctly you will need to calibrate them. To do this:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><b>WITH THE BATTERY DISCONNECTED.<\/b><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Arm the motors using the waiver on the bottom right, and then turn the master slider all the way to max.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\"><b>CONNECT THE BATTERY \u2013 IT WILL NOT SPIN UP.<\/b><span style=\"font-weight: 400;\"> If done correctly the motors should beep a few times.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Turn the master slider all the way to minimum and wait for it to beep.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\"><b>DISCONNECT<\/b> <b>THE BATTERY<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Reboot the drone by disconnecting and reconnecting.\u00a0<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Once done the motors should spin up at exactly the same speed (listen to their pitch).<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 6. Setting up flight modes<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Click on the modes tab on Cleanflight. It have several modes listed \u2013 most importantly ARM and HORIZON.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">ARM allows you to fly your drone and prevents injury from the accidentally starting the motors up. We recommend that you have a switch dedicated to arming the drone (that you can quickly hit to disarm)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">HORIZON is a mode that maintains the parallel to earth level of the drone. It prevents sway and corrects for all kinds of motion quickly. Beginner pilots will benefit greatly from horizon.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Add the inputs you set up before in the receiver tab as controls for the modes and make sure that you can see them within the activation range for each mode.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">With the motors, the receiver, flight controller and ESCs calibrated we are <strong>finally<\/strong> ready to try our drone out!<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/sites.bu.edu\/uav\/first-build\/step5\/\">Step 5: Fly your drone<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step 4: Program &amp; Calibrate! NOTE: DO NOT HAVE PROPS ON YOUR DRONE AT ANY TIME DURING THIS STEP Setting up Cleanflight (http:\/\/cleanflight.com\/): Begin by installing the chrome app that will allow you to interface with your drone. Open Cleanflight and begin by downloading the suggested drivers (CP210x and STM USB VCP). Instead of downloading [&hellip;]<\/p>\n","protected":false},"author":14144,"featured_media":0,"parent":31,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"page-templates\/no-sidebars.php","meta":[],"_links":{"self":[{"href":"https:\/\/sites.bu.edu\/uav\/wp-json\/wp\/v2\/pages\/114"}],"collection":[{"href":"https:\/\/sites.bu.edu\/uav\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sites.bu.edu\/uav\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sites.bu.edu\/uav\/wp-json\/wp\/v2\/users\/14144"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.bu.edu\/uav\/wp-json\/wp\/v2\/comments?post=114"}],"version-history":[{"count":21,"href":"https:\/\/sites.bu.edu\/uav\/wp-json\/wp\/v2\/pages\/114\/revisions"}],"predecessor-version":[{"id":453,"href":"https:\/\/sites.bu.edu\/uav\/wp-json\/wp\/v2\/pages\/114\/revisions\/453"}],"up":[{"embeddable":true,"href":"https:\/\/sites.bu.edu\/uav\/wp-json\/wp\/v2\/pages\/31"}],"wp:attachment":[{"href":"https:\/\/sites.bu.edu\/uav\/wp-json\/wp\/v2\/media?parent=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}