element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Make Life Accessible
  • Challenges & Projects
  • Design Challenges
  • Make Life Accessible
  • More
  • Cancel
Make Life Accessible
Blog Make Life Accessible - NXP Motor Control Installation - blog 6
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: dougw
  • Date Created: 22 May 2016 10:03 PM Date Created
  • Views 852 views
  • Likes 4 likes
  • Comments 6 comments
  • accessibility_projects
  • make_life_accessible
  • mla
  • clear_walk
Related
Recommended

Make Life Accessible - NXP Motor Control Installation - blog 6

dougw
dougw
22 May 2016

There is an extensive step-by-step tutorial series on getting started with the  FRDM-KV31FFRDM-KV31F Development Platform here

FRDM-KV31F|Freedom Development Platform|Kinetis MCU|NXP

Following through the steps and installing all the software took a couple of hours on a very fast PC - lots of steps and lots of software. Here are some of the software packages that are part of the process:

Kinetis SDK 1.3.0 Mainline - Windows.exe (Kinetis Software Development Kit - 312 MB)

kinetis-design-studio_3.2.0.exe (Kinnetis Design Studio - 701MB)

Eclipse add-on to add Kinetis SDK V2.x Project Wizard.zip (Elcipse upgrade for the Software Development Kit - 243 KB)

KinetisMotorSuite.exe (Kinetis Motor Control Suite - 120 MB)

KSDK-Project-Generator.zip (Kinetis Software Development Kit Project Generator - 32 MB)

Additionally, some of these packages need to be upgraded immediately through an online process.

I was trying for a vanilla default installation using all the default options, but it did not go smoothly for me.

Before installation I had spent a lot of time to collect all the info I could find on all the hardware and software involved in the kit. One issue I ran into was documentation of the motor. After lots of searching I found several different datasheets on the motor, but none of them had any detail on what the 8 wires were coming out of the motor. Freescale had lots of documentation on how a 3 phase brushless DC motor works, but again, almost no information on wiring this particular motor up. They seem to use this same motor for many of their demo applications for other products, so eventually I came across a note that indicated it didn't matter which phase was connected to which terminal. This still did not help identify which 3 wires to use. There are 2 white wires, 2 blue wires, 2 green wires, a red wire and a black wire. I noticed that one each of white, blue and green wires were slightly heavier gauge so I am assuming these are the main motor phase wires. I gather from some of the docs I found that the other wires are probably 3 Hall effect sensor outputs (white, blue and green) and the red and black wires are 5 volt power and ground. I came across some images that have the red wire going to the ground pin and the black wire going to the power pin as well as some images where they are going to the phase sensor pins, so I still have no idea which wires do what. I am not at all comfortable connecting this motor up without better documentation - I doubt Hall effect sensors (assuming that is what some wires go to) will be happy with 24VDC on their outputs. Likewise if they had their power pins reversed, they probably wouldn't be in great shape.  Anyway, after several hours of scouring the web, I am stuck with guessing which 3 wires to use and leaving the rest disconnected. If anyone has a wiring diagram for this motor, I would dearly like to see it.

I have purchased a 150W DC-DC converter to supply 24 VDC from a 12 VDC battery:

It seems to work well, but I will know more once I get the motor working. It will require a 12 V battery capable of putting out at least 10A.image

The 4800 mAH Li-Ion battery I have may not be quite up to it, but I want to test the actual requirements in my application before writing it off.

Here is my motor test setup showing a 700 Watt MFJ power supply substituting for the battery:image

image

Okay, back to software installation woes. After 7 hours of struggling with it, I still have nothing working. The installation tutorial seemed to go okay - a bit fitfully, since the video was not clear enough to read any of the text on the screen in the video. Some straight forward steps were left as an exercise for the viewer, but resulted in discrepancies with the video, so had to be redone or corrected.

Part of the process involved upgrading the Kinetis Design Studio, which could not complete because of missing repository files. I could not figure out how to correct this so I proceeded, hoping the upgrade was not crucial. Unfortunately, it probably was needed. Here is the error:

image

When I got to the end of the process there were some exercises to try loading demo programs, but none of the examples were available beyond the driver libs. I didn't see anything that looked like an example with this motor control system.

Update: I did finally get the examples sorted out and running, but no luck with the Motor Suite.

So I skipped on to try the Kinetis Motor Suite. I gather the MCU module comes loaded with motor demo firmware, but after sorting out and configuring the serial port, the Motor Suite could not connect to the MCU module because the .out or .elf file in the Motor Suite did not match  what was in the MCU module. Here is the error:

image

I could not figure out how to get the .elf files to match, indeed I could not get the Motor Suite to find the right directory, possibly because there wasn't a .elf file in the right directory. This may all be due to the failure in upgrading, but whatever the reason, I have not been able to get past this failure to connect yet.

 

I have not been able to find any description of the pre-loaded demo firmware in the MCU module beyond that it will blink red and blue when powered up. (which it does) Nor can I find the source code for this demo.

 

One thing I noticed is that the MCU needs to be connected to a PC to run its demo program - simply connecting it to a USB power supply does nothing, not even an LED lights up. I will have to change this as my application is stand-alone - no PC in the front yard.

 

I really want to get on with building my system, but I have to get this basic stuff working. It is clear from the gigabytes of software I have installed and the many steps involved in software project development that I have a massive learning curve ahead of me. So far it is pretty frustrating, but hopefully I will start making better progress shortly.

 

The Kinetis Motor Suite (in the Project menu) has a menu option to "Show Path Selections".

This reveals that  "Kinetis Design Studio: Not Selected"

The Project menu also has an option to "Select Paths" with a drop down to select path for "Kinetis Design Studio" which brings up a standard "Browse For Folder" window.

Selecting the directory where KDS installed pops up this error:

image

I have tried every level of directory and this same error always pops up. The directory in the first line of the error message is the one I selected on this attempt and it is the directory where the install program installed KDS by default. The Kinetis Motor Suite just does not recognize the install directory of the Kinetis Design Suite or the location of the .elf file.

I have not been able to get any answers from Kinetis, but one note on one of their forums indicated that KMS does not work with KDS3.2.

I will try earlier versions this weekend to see if that works. 30 hours on this issue so far is putting a serious crimp in my development schedule.

.........

After installing KDS3.0 things started working a little better. I did have to set up the directory where KDS3.0 was installed, but then I could get the COM port set up and connected. The motor wouldn't do anything at this point, but eventually I figured out the little fault indicator was trying to tell me the DC input was over voltage - even though it was set to exactly 24 VDC.

I had to turn the voltage down all the way to about 12 VDC to get the fault to disappear. It gives an under voltage fault below 11 VDC and an over  voltage fault above 14 VDC. I'm sure this can be altered as the motor and drive module are rated to run at 24 VDC.

With the input voltage at 12 volts I was able to get the motor running. There is a lot of flexibility in the motor suite that is going to take some experimentation to learn, but I will start with a short video in my next blog showing the motor running.

 

Relevant Links

MLA Design Challenge

 

The full set of Clear Walk project blogs can be found here:

Make Life Accessible

  • Sign in to reply

Top Comments

  • rsc
    rsc over 9 years ago +2
    If you take the bottom off of the motor housing, it's easy to see how it's wired. The three thicker wires are the three phases, the thinner 5 wires are: Red=hall effect 5VDC, Black=hall effect gnd, the…
  • kulky64
    kulky64 over 9 years ago +1
    Shouldn't be hard to identify 3 phase wires using a multimeter. Or you can spin the motor with some other motor (e.g. drill) and poke the pins with an oscilloscope observing back-EMF. It would be interesting…
  • kulky64
    kulky64 over 9 years ago in reply to kulky64 +1
    This procedure is described here: https://www.element14.com/community/servlet/JiveServlet/downloadBody/40520-102-3-226684/Microchip.Application_Note_1.pdf
  • fyaocn
    fyaocn over 9 years ago

    I have same problem regarding the wiring of Motor. Although this motor is manufactured in China,  I still do not get timely response from the vendor LINIX. It seems that LINIX has upgraded the series of 45ZWN with 40ZWN and 60ZWN. So their recent document can not explain our situation now. I will keep try and share the feedback to you in my blog.

    But do not worry about the wiring. There are 3 wires with larger diameter with different color, that is the drive wires for motors. The order does not matter, since it only influence the direction or rotary. If you are not sure of it, you can connected according to the pic for demo page for FRDM-KV31. The rest wire are colored according to some Chinese Practice, I will share with you when I find right documents.

    The problem to me is that the motor is too heave for my design, if I still try to installed it vertically. I have to revise my design to solve this tough problem.

    Hope this can be of some help.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • kulky64
    kulky64 over 9 years ago in reply to rsc

    Do you know how many pole-pairs the rotor has? I can't find this information in the documentation. Did you take any photo of the rotor?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dougw
    dougw over 9 years ago in reply to rsc

    Thanks Scott,

    That nails it.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • rsc
    rsc over 9 years ago

    If you take the bottom off of the motor housing, it's easy to see how it's wired.  The three thicker wires are the three phases, the thinner 5 wires are: Red=hall effect 5VDC, Black=hall effect gnd, the other three are the hall effect sensors:

    image

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • kulky64
    kulky64 over 9 years ago in reply to kulky64

    This procedure is described here:

    https://www.element14.com/community/servlet/JiveServlet/downloadBody/40520-102-3-226684/Microchip.Application_Note_1.pdf

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube