element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
Sixth Sense Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Sixth Sense Design Challenge
  • More
  • Cancel
Sixth Sense Design Challenge
Blog Testing the nucleo-64 and connecting it to motor driver - Automatic Weeding Robot #11
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: weiwei2
  • Date Created: 24 Mar 2019 6:53 PM Date Created
  • Views 672 views
  • Likes 1 like
  • Comments 1 comment
  • mbed
  • stm32f411
  • nucleo-64
Related
Recommended

Testing the nucleo-64 and connecting it to motor driver - Automatic Weeding Robot #11

weiwei2
weiwei2
24 Mar 2019

NOTE: i actually forgotten about this #9 blog so only post it today, few weeks after i initially work on it

my blog 12 is the coding sequel to this

 

Introduction

There are multiple IDEs that can be used with the Nucleo-64 STM32F411

 

Today, i try with the MBED. It is cloud based and free. After logging in to your developer console, one need to select the supported board. I add the STM32F411 and choose to create a new hello world example....in this case the LED blinking.

Screenshots below show the steps involved.

imageimage

The STM32411 board is connected to PC with mini USB connector cable. On my windows 8.1 machine it will auto install the driver but fail. The STM32 STLink is a on board in-circuit debugger

 

image

 

To install the driver successfully, go to https://www.st.com/en/evaluation-tools/nucleo-f411re.html , download and install the STSW-LINK009

With successful installation, you will see the STLink virtual com port as well as the ST-Link Debug

image

Going back to the mbed, we press the compile button. for the LED blinking example a file Nucleo_blink_led.NUCLEO_F411RE.bin is created and downloaded. In windows explorer, we drag and drop this to STM32F411 drive

the board will then has its LED labelled with LD2 blinking with every 1s interval. To make sure that we are really successful with programming the board, change the interval to 5s by modifying the code to below.

drag the created bin file again and voila the LED should now blink with 5s interval

#include "mbed.h"


DigitalOut myled(LED1);


int main() {
    while(1) {
        myled = 1; // LED is ON
        wait(0.2); // 200 ms
        myled = 0; // LED is OFF
        wait(5.0); // 1 sec
    }
}

Testing the 13A motor driver board

The 13A motor driver board has grove interface

to use it import motor driver library into mbed by right clicking the project folder, import library\from import wizard. some modifications are needed as the library is originally built for arduino

 

for example, the pinMode in arduino need to be updated

pinMode(_pin1, OUTPUT)  ---> reconfigured as DigitalOut

 

References

[1] https://www.st.com/en/evaluation-tools/nucleo-f411re.html

[2] https://www.st.com/content/st_com/en/campaigns/sensortile-edu.html

[3] https://www.st.com/content/st_com/en/products/embedded-software/wireless-connectivity-software/stblesensor.html

  • Sign in to reply
  • DAB
    DAB over 6 years ago

    Nice update.

     

    DAB

    • Cancel
    • Vote Up 0 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