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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
Freedom development platform
  • Products
  • Dev Tools
  • Freedom development platform
  • More
  • Cancel
Freedom development platform
Documents Codewarrior Tutorial for FRDM-KL25Z & ARDUINO : Freescale Freedom Zumo Robot
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Freedom development platform to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Engagement
  • Author Author: FreescaleTools_and_Software
  • Date Created: 8 Mar 2013 3:15 PM Date Created
  • Last Updated Last Updated: 8 Oct 2021 5:26 AM
  • Views 848 views
  • Likes 0 likes
  • Comments 0 comments
Related
Recommended

Codewarrior Tutorial for FRDM-KL25Z & ARDUINO : Freescale Freedom Zumo Robot

This tutorial was extracted from Erich Styger blog http://mcuoneclipse.wordpress.com with his agreement.

image image

    

 

The cool thing with the Freedom board is: there are many exciting Arduino boards out there which want to be used with the FRDM-KL25Z. I have spent most of my last week-end with creating a little black beauty:

    

 

 

FRDM Zumo Robot

FRDM Zumo Robot

 

 

 

   

   

When I was looking for some nice DC motors with quadrature encoders for my next lecture project, I stumbled over the Pololu web site which had *exactly* the DC motors I was looking for. And their Zumo Robot Robot Kit was something which attracted my eyes.

 

 

   

   

I always joked :roll: about women shopping habits. But my wife is right: If it is about electronics, I’m not different at all :grin:

 

 

   

   

That robot is smaller than 10 cm on each size, so it qualifies as a Mini-Sumo. Although I have a different purpose in mind for my robot…..

   

   

 

 

Chassis and Motors

 

   

I ordered the chassis with two 75:1 Micro High Performance Metal Gearmotors which enable the chassis to move about 50 cm in a second. The chassis includes a battery compartement on the bottom for 4 AA batteries (so up to 6V):

   

 

 

Zumo Chassis with DC Motors

Zumo Chassis with DC Motors

 

 

   

   

:idea: I did *not* follow the Pololu instructions to solder the motor with the Arduino shield: instead I used flexible wires to attach the motors to the board. That allows me to change motors or disassemble the kit in a much simpler way.

   

   

 

 

Arduino Board

 

   

The Arduino board comes with a few parts unpopulated (Buzzer, Headers, Switches). The board features a tiny (but powerful) Dual Full-H Bridge, a Buzzer, Battery Voltage Sensing and a I2C Accelerometer+Magnetometer sensor:

     

 

 

Zumo Arduino Board

Zumo Arduino Board

 

 

   

   

Freedom Board

 

   

The FRDM-KL25Z needs to connected ‘face down’ to the Zumo board. I plan to layout an intermediate PCB with my to-be-added hardware. But for now I’m using normal breakable header rows as ‘interconnection’. This is necessary as otherwise the Freedom board is very close to the Zumo board components:

 

 

   

Headers to increase distance between boards

Headers to increase distance between boards

 

 

    

   

Power Supply

 

   

The FRDM-KL25Z is powered from the batteries through P5-9V_IN. But: the Freedom board only generates the 3.3V from P5-9V_IN, and but not the needed 5V to the header (see this post). That 5V is needed by the Shield. So for now I’m using a rather bulky DC-DC converter and supply the needed 5V from the battery to the USB 5V supply line, until I can replace the DC-DC converter with a smaller one. At least everything is working now :-) .

   

   

 

 

Software, and Next Steps

 

   

The software in CodeWarrior with Processor Expert is ready for most parts. Motors (speed/direction), LED’s and Buzzer are working. Magnetometer/Accelerometer and Battery Voltage Sensing are in progress. The current software was attached to this docuement but I would recommend to download the updated version on GitHub with all the Processor Expert components. And: I have a Bluetooth module ready to integrate, plus I want to add a line scanning module too. So enough fun for a couple of dark nights and week-ends :-) .

   

 

 

FRDM Zumo backside

FRDM Zumo backside

 

 

   

   

Happy Zumoing :-)

Attachments:
Freedom_Zumo.zip
  • tutorial
  • avr
  • microchip
  • hardware
  • cortex-m0+
  • sports_technology
  • freescale
  • robots
  • Cortex-M
  • kinetis
  • robot
  • cortex
  • embedded
  • frdm-kl25z
  • stm32
  • Design
  • kinetis-l
  • prototyping
  • platform
  • cortex-m0
  • arduino_development_environment
  • arm
  • arduino
  • freedom
  • pic
  • atmel
  • Share
  • History
  • More
  • Cancel
  • Sign in to reply
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