Controlling speed in DC motors and position in servomotors with KSDK [FTM + GPIO]

Document created by Earl Orlando Ramirez Sanchez Employee on Sep 17, 2015Last modified by Diana Torres on Feb 28, 2017
Version 3Show Document
  • View in full screen mode

Hello community,

 

This document is the continuation of the document Line scan camera with KSDK [ADC + PIT + GPIO] which shows the ease of use of the peripheral drivers from Kinetis SDK applied to the Freescale Cup smart car. This time I bring to you a document which explains how to control the speed in DC motors and the position in servomotors with KSDK step-by-step. This document is intended to be an example for the TPM and the GPIO peripheral drivers usage.

 

The required material to run this project is:

  • A Servomotor (the project supports up to two servomotors, one servomotor is included in the smart car kit).
  • Two DC motors (included in the smart car kit).
  • FRDM-KL25Z based on the Kinetis Microcontroller KL25Z.
  • FRDM-TFC shield.
  • Mini-USB cable.

 

This material can be bought in The Freescale Cup Intelligent Car Development.

 

   

 

The document Create a new KSDK 1.2.0 project in KDS 3.0.0 explains how to create a new KSDK project for the KL25Z MCU. The result of this document is the project BM-KSDK-FRDM_KL25Z.

The document Controlling speed in DC motors and position in servomotors with the FRDM-KL25Z and the Kinetis SDK [FTM + GPIO] explains how to implement an application to control the motors. The result of this document is the project BM-KSDK-FRDM_KL25Z_LINE_SCAN_CAMERA-SERVO-DC_MOTORS.

 

If you are interested in participate in the Freescale Cup you could take a look into the groups University Programs, The Freescale Cup Technical Reports TFC - Mexico, TFC - Brazil, TFC - China, TFC - Malaysia, TFC - Japan, TFC - North America, TFC - India, TFC - Taiwan, The Freescale Cup EMEA.

 

Best regards,

Earl Orlando Ramírez-Sánchez

Technical Support Engineer

Freescale Semiconductor

Outcomes