#3 Use arduino IDE with simpleFOC
Table of Contents
1 Use Arduino IDE
With Seeed Xiao, Arduino IDE , MicroPython with Thonny IDE and CircuitPython can be used for development. Arduino is stil my first choice
Version: 2.2.1
Date: 2023-08-31T14:35:44.802Z
CLI Version: 0.34.0
Copyright © 2023 Arduino SA
2 Run Hall sensor example
Connect the analogue Pin A0 in Xiao ,
Read the sensor value is output with serial ports
3 Simple FOC library and BLDC control
Install the simpleFOC library from library manager
The simpleFOC is open sourced library for BLDC motor control, this is key part in driving scooter.
4 Run the simpleFOC example
Prepare the voltage control example and run it,
But the error pop out, some Parameter is not well defined. The reason is simple, Seed Xiao is not enlisted in the acceptable board, although the architecture of sam21 and sam51 is OK.
Find the keyword in board definition
and add the key word in the list.
Then the example passed.
5 Summary
The Seeed Xiao is easy to use and simple FOC provide ful feature in BLDC control algorithm. That is very good start for this project.