element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
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
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: weiwei2
  • Date Created: 24 Mar 2019 6:53 PM Date Created
  • Views 121 views
  • Likes 0 likes
  • 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.

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

 

 

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

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

Anonymous
  • DAB
    DAB over 3 years ago

    Nice update.

     

    DAB

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
Element14

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 © 2022 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube