I saw that MIT had open sourced the brushless Big Dog, so I wanted to make my own brushless Teddy. Unfortunately, the dog’s brain is too complex, so let’s start with the dog’s legs.
This is a dual-channel motor drive control integrated board based on Simple FOC, and the hardware is controlled by ATmega328pb. It supports two I2C inputs and can be connected to two encoders that support I2C at the same time (yes, it is the cheapest AS5600, which is forced by the single I2C address of the 5600). The motor driver uses L6234, with a single-channel peak current of 5A. In actual use, it is recommended not to exceed 3A/channel. The board supports 8~24VDC input voltage.
The board is designed with FT232 USB to UART, which can be compiled and downloaded directly using Arduino IDE. But if you want to use 328pb, you need to configure the environment. The specific tutorial will be shared after it is written.
The current loop design on the board uses INA240 to be compatible with the official example of simple foc. However, actual use is limited by the running speed and dynamic memory of mega328pb. When running two FOC motor controls at the same time, the memory has reached about 80%. If you add a current loop, it may not be able to run (it may be just enough if you do the code optimization yourself) .
For specific usage tutorials, you can follow my Bilibili: Controller Usage Tutorial
It doesn’t matter if you prostitute for free, just give me a like~
In addition, most of the components on the board are SMD, and the resistors and capacitors are all in 0603 packages, so you can easily reflow them using an oven at home. Jiali Bandage patches cost more than 500. . .
Here are some photos of the debugging:
-------------------------------------------------- ----------------------------------------
2021.7.3 Update:
Since the dynamic memory of ATMEGA328pb is too small (poor 2k), it is barely OK to run two voltage/speed/position loops, but it can only run one current loop at most. If the two loops are run at the same time, the memory will overflow, and the ROM space will be almost used up at this time. Light. So this plan has now been abandoned. But this does not mean that this board cannot be used to continue to prototype and learn simple foc. Atmel's microcontroller has a natural advantage in using arduino, which is still very important for getting started with learning arduino and simple foc.
Interested students can move to my other simpleFOC driver controller project based on ESP32 without worrying about memory and ROM issues:
Dual FOC controller based on Simple FOC and ESP32
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet