{"_id":"58a1eb7c76d9fb25004afc75","__v":0,"category":{"_id":"58a1eb7b76d9fb25004afc6e","version":"58a1eb7b76d9fb25004afc6d","project":"56835bb57af9120d007ac339","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-04-05T03:18:16.877Z","from_sync":false,"order":0,"slug":"initial-setup","title":"Initial Setup"},"parentDoc":null,"project":"56835bb57af9120d007ac339","user":"56835b733b87430d00483b77","version":{"_id":"58a1eb7b76d9fb25004afc6d","project":"56835bb57af9120d007ac339","__v":1,"createdAt":"2017-02-13T17:23:07.814Z","releaseDate":"2017-02-13T17:23:07.814Z","categories":["58a1eb7b76d9fb25004afc6e","58a1eb7b76d9fb25004afc6f","58a1eb7b76d9fb25004afc70","58a1eb7b76d9fb25004afc71"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Artifice","version_clean":"20170213.0.0","version":"20170213"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-04-05T01:15:49.407Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"# This documentation is superseded.  dRonin Documentation is now on http://dronin.org/docs/\n\nThe Naze32 is a bit different from most of the flight controllers supported by dRonin.  Unfortunately, Naze32 does not connect USB directly to the microcontroller; instead it has a USB-to-serial converter IC between the USB port and the processor.\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"There are many variants of Naze32\",\n  \"body\": \"There have been many official versions of Naze32 made, and there are also many clones.  As a result, pictures and instructions in this documentation may not exactly correspond to your flight controller.\"\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/PdKpwSo3TMhrgoQ71sMm_cp2102.jpg\",\n        \"cp2102.jpg\",\n        \"450\",\n        \"294\",\n        \"#2a2c31\",\n        \"\"\n      ],\n      \"caption\": \"In this case, a CP2102 is used for USB connectivity.\",\n      \"border\": true\n    }\n  ]\n}\n[/block]\nUnfortunately, this means that the dRonin bootloader cannot be used to install dRonin, nor can the dRonin auto-upgrade service be used.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Installing the firmware on Naze32\"\n}\n[/block]\nCurrently, the easiest path to flashing dRonin on Naze32 is to use [CleanFlight Configurator](https://chrome.google.com/webstore/detail/cleanflight-configurator/enacoimjcgeinfnnnpajinjgmkahmfgb?hl=en).  First, install dRonin GCS and CleanFlight Configurator on your computer.\n\nNext, locate the boot pads on your Naze32.  Consult your flight controller's documentation for details on where they can be found.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/az3UdDsRMiWJuteVbWrw_bootpads.jpg\",\n        \"bootpads.jpg\",\n        \"640\",\n        \"572\",\n        \"#966046\",\n        \"\"\n      ],\n      \"caption\": \"Boot pads on a Naze32 Rev5\",\n      \"border\": true\n    }\n  ]\n}\n[/block]\nBy default, the Naze32 will try and start any software that is installed on it.  By connecting the boot pads together before (and while) power is applied, the flight controller will be instructed to enter a mode where firmware can be programmed.  Short the pads together with something metallic and conductive.  Preferably, use something sharp like a fine pair of tweezers.  Then, while the boot pads are shorted, connect the flight controller to USB.\n\nStart CleanFlight Configurator.  Select the USB COM port that is connected to the Naze32 in the upper right corner, and then click \"Firmware Flasher\" on the left.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/MXXqrviST46JqYD5ETFL_cf.png\",\n        \"cf.png\",\n        \"973\",\n        \"333\",\n        \"#5eab17\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nOn the firmware flasher screen, ensure \"Full Chip Erase\" and \"No reboot sequence\" are checked.  Then click \"Load Firmware (Local)\" and select the `ef_naze32.hex` file that came with dRonin.  Then click \"Flash Firmware\".\n\nThen, it should be possible to exit CleanFlight configurator, start dRonin GCS, and connect to the Naze32.  To do so, you must select the serial port associated with it in the drop down in the lower right corner of GCS, and then click 'Connect'.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"BaseFlight / CleanFlight motor ordering conventions\"\n}\n[/block]\nCleanFlight and dRonin use different motor mapping conventions.  CleanFlight motor mappings are based on some very old Multiwii hardware; the ordering is therefore somewhat unusual.  Fortunately, it's easy to remap motors on the vehicle config pane in the GCS.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/rTRQHuqKQNCUz0caFG0b_outputmapping.png\",\n        \"outputmapping.png\",\n        \"282\",\n        \"475\",\n        \"#eb8e52\",\n        \"\"\n      ],\n      \"caption\": \"The motor output channels section on the vehicle config pane is where motors are assigned to channels.\"\n    }\n  ]\n}\n[/block]\nTo ease conversion you can assign the motors in GCS per the below table and keep your existing wiring.\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Quad-X\",\n    \"h-1\": \"Quad-P\",\n    \"h-2\": \"Tricopter\",\n    \"0-0\": \"NW: Channel 4\",\n    \"1-0\": \"NE: Channel 2\",\n    \"2-0\": \"SE: Channel 1\",\n    \"3-0\": \"SW: Channel 3\",\n    \"0-1\": \"N: Channel 4\",\n    \"1-1\": \"E: Channel 2\",\n    \"2-1\": \"S: Channel 1\",\n    \"3-1\": \"W: Channel 3\",\n    \"0-2\": \"NW: Channel 3\",\n    \"1-2\": \"NE: Channel 2\",\n    \"2-2\": \"S: Channel 1\"\n  },\n  \"cols\": 3,\n  \"rows\": 4\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Using MSP on-screen displays like OSDoge\"\n}\n[/block]\nIt's recommended that you use [MWOSD](https://github.com/ShikOfTheRa/scarab-osd).  MWOSD is an on-screen display that runs on multiple types of hardware, including MiniMOSD, Micro-MiniMOSD, and OSDoge.\n\nMWOSD speaks a protocol called Multiwii Serial Protocol (MSP), that dRonin also supports.  MSP was introduced by MultiWii and is also used by Baseflight and Cleanflight.\n\nIt is recommended you first install the latest MWOSD on the on-screen display hardware as documented [here](doc:configuring-mwosd-for-dronin).\n\nUnfortunately, the Naze32 has only two serial ports available to end-users.  One is very commonly used for radio control, leaving the other to be shared between the USB serial used for configuration and flashing.  However, dRonin is able to autodetect whether it is connected to GCS when set for 'MSP' and to choose between speaking the configuration protocol or MSP telemetry.\n\nTherefore, it is recommended you wire the OSD to 'MainPort' (the center pins on Naze32).  Then, set the configuration for MainPort on the hardware settings pane to 'MSP' and reset the flight controller.\n\nNote that you must disconnect the OSD to use USB/GCS; or if you're using OSDoge, flip the switches towards the USB port to enable use of the USB for configuration.","excerpt":"Unfortunately, the Naze32 takes a little more work to get running.","slug":"using-naze32","type":"basic","title":"Using Naze32"}

Using Naze32

Unfortunately, the Naze32 takes a little more work to get running.

# This documentation is superseded. dRonin Documentation is now on http://dronin.org/docs/ The Naze32 is a bit different from most of the flight controllers supported by dRonin. Unfortunately, Naze32 does not connect USB directly to the microcontroller; instead it has a USB-to-serial converter IC between the USB port and the processor. [block:callout] { "type": "warning", "title": "There are many variants of Naze32", "body": "There have been many official versions of Naze32 made, and there are also many clones. As a result, pictures and instructions in this documentation may not exactly correspond to your flight controller." } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/PdKpwSo3TMhrgoQ71sMm_cp2102.jpg", "cp2102.jpg", "450", "294", "#2a2c31", "" ], "caption": "In this case, a CP2102 is used for USB connectivity.", "border": true } ] } [/block] Unfortunately, this means that the dRonin bootloader cannot be used to install dRonin, nor can the dRonin auto-upgrade service be used. [block:api-header] { "type": "basic", "title": "Installing the firmware on Naze32" } [/block] Currently, the easiest path to flashing dRonin on Naze32 is to use [CleanFlight Configurator](https://chrome.google.com/webstore/detail/cleanflight-configurator/enacoimjcgeinfnnnpajinjgmkahmfgb?hl=en). First, install dRonin GCS and CleanFlight Configurator on your computer. Next, locate the boot pads on your Naze32. Consult your flight controller's documentation for details on where they can be found. [block:image] { "images": [ { "image": [ "https://files.readme.io/az3UdDsRMiWJuteVbWrw_bootpads.jpg", "bootpads.jpg", "640", "572", "#966046", "" ], "caption": "Boot pads on a Naze32 Rev5", "border": true } ] } [/block] By default, the Naze32 will try and start any software that is installed on it. By connecting the boot pads together before (and while) power is applied, the flight controller will be instructed to enter a mode where firmware can be programmed. Short the pads together with something metallic and conductive. Preferably, use something sharp like a fine pair of tweezers. Then, while the boot pads are shorted, connect the flight controller to USB. Start CleanFlight Configurator. Select the USB COM port that is connected to the Naze32 in the upper right corner, and then click "Firmware Flasher" on the left. [block:image] { "images": [ { "image": [ "https://files.readme.io/MXXqrviST46JqYD5ETFL_cf.png", "cf.png", "973", "333", "#5eab17", "" ] } ] } [/block] On the firmware flasher screen, ensure "Full Chip Erase" and "No reboot sequence" are checked. Then click "Load Firmware (Local)" and select the `ef_naze32.hex` file that came with dRonin. Then click "Flash Firmware". Then, it should be possible to exit CleanFlight configurator, start dRonin GCS, and connect to the Naze32. To do so, you must select the serial port associated with it in the drop down in the lower right corner of GCS, and then click 'Connect'. [block:api-header] { "type": "basic", "title": "BaseFlight / CleanFlight motor ordering conventions" } [/block] CleanFlight and dRonin use different motor mapping conventions. CleanFlight motor mappings are based on some very old Multiwii hardware; the ordering is therefore somewhat unusual. Fortunately, it's easy to remap motors on the vehicle config pane in the GCS. [block:image] { "images": [ { "image": [ "https://files.readme.io/rTRQHuqKQNCUz0caFG0b_outputmapping.png", "outputmapping.png", "282", "475", "#eb8e52", "" ], "caption": "The motor output channels section on the vehicle config pane is where motors are assigned to channels." } ] } [/block] To ease conversion you can assign the motors in GCS per the below table and keep your existing wiring. [block:parameters] { "data": { "h-0": "Quad-X", "h-1": "Quad-P", "h-2": "Tricopter", "0-0": "NW: Channel 4", "1-0": "NE: Channel 2", "2-0": "SE: Channel 1", "3-0": "SW: Channel 3", "0-1": "N: Channel 4", "1-1": "E: Channel 2", "2-1": "S: Channel 1", "3-1": "W: Channel 3", "0-2": "NW: Channel 3", "1-2": "NE: Channel 2", "2-2": "S: Channel 1" }, "cols": 3, "rows": 4 } [/block] [block:api-header] { "type": "basic", "title": "Using MSP on-screen displays like OSDoge" } [/block] It's recommended that you use [MWOSD](https://github.com/ShikOfTheRa/scarab-osd). MWOSD is an on-screen display that runs on multiple types of hardware, including MiniMOSD, Micro-MiniMOSD, and OSDoge. MWOSD speaks a protocol called Multiwii Serial Protocol (MSP), that dRonin also supports. MSP was introduced by MultiWii and is also used by Baseflight and Cleanflight. It is recommended you first install the latest MWOSD on the on-screen display hardware as documented [here](doc:configuring-mwosd-for-dronin). Unfortunately, the Naze32 has only two serial ports available to end-users. One is very commonly used for radio control, leaving the other to be shared between the USB serial used for configuration and flashing. However, dRonin is able to autodetect whether it is connected to GCS when set for 'MSP' and to choose between speaking the configuration protocol or MSP telemetry. Therefore, it is recommended you wire the OSD to 'MainPort' (the center pins on Naze32). Then, set the configuration for MainPort on the hardware settings pane to 'MSP' and reset the flight controller. Note that you must disconnect the OSD to use USB/GCS; or if you're using OSDoge, flip the switches towards the USB port to enable use of the USB for configuration.