EYE on NPI - Analog Devices' TMC5240 Stepper Motor Controller and Driver IC @digikey @ADI_News

Subscribers:
460,000
Published on ● Video Link: https://www.youtube.com/watch?v=OFcwp4wTAH4



Category:
Vlog
Duration: 14:56
1,099 views
0


This week's EYE ON NPI has us pitter-pattering on our tippy-toes, it's the newest and bestest stepper motor driver we've seen, the Analog Devices' TMC5240 Stepper Motor Controller and Driver IC (https://www.digikey.com/short/rt0zpt4v) from the Trinamic division at ADI! Trinamic is famous for their stepper motor driver chips, which we see often in 3D printers (https://www.analog.com/en/design-center/evaluation-hardware-and-software/evaluation-boards-kits/trams.html), XY gantries and other robots that need fast motion control.

Stepper motors are commonly used when we need continuous rotation for linear movement through a rack and pinion. We've got huge steppers in our pick and place machine, and most makers are going to be familiar with them in CNC devices like laser cutters, 3D printers or milling machines (https://www.digikey.com/en/product-highlight/b/bantam-tools/desktop-pcb-milling-machine) - servos will be controlling the X, Y and Z axes as well as any extruder. And if you have one of these devices you know they can be loud and slow: in order to get good precision from a stepper we need to micro-step, so that instead of a standard 200 steps per rotation, we get 16*200 or 256*200 (https://www.analog.com/en/products/landing-pages/001/optimizing-stepper-motors-microstepping.html).

Microstepping gets us that beautiful precision, but adds a ton of noise because now there's a PWM signal that is vibrating the motor (https://www.analog.com/en/products/landing-pages/001/secret-silent-stepper-motor-control.html). That's where Trinamic's StealthChop2 secret sauce comes in:
The StealthChop chopper modulates the current based on the PWM duty cycle, resulting in a perfect current sinewave with straight crossing of the zero-current level. The constant PWM frequency minimizes current ripple and, by extension, any Eddy current that may be found in the stator, reducing power loss, and increasing efficiency. The StealthChop chopper also removes variations of the chopper frequency, or frequency jitter, so that only the commanded variations remain. Thus, at a 50% PWM duty cycle, the current is actually zero. The result of all this is silent stepper motor operation at a standstill and at low to moderate speeds.

We've covered Trinamic's TMC2226 stepper driver before on EYE ON NPI (https://blog.adafruit.com/2020/06/18/eye-on-npi-tmc2226-sa-ultra-silent-stepper-motor-driver-eyeonnpi-digikey-adafruit-digikey-adafruit-trinamic_mc/) and that chip mimic'd the common configuration for stepper motor drivers: set the microsteps with GPIO and then use a DIRection and STEP pin. That makes it easy for integration with any hardware, you just need some GPIO pins, but it means that you have to do the motion control yourself. And, once you have 2 or 3 motors, motion control code can get really complicated: you have to tune and configure ramp ups from idle to fast run, and back down so there isn't any jerky motion. What's really cool is that the TMC5240 has built-in motion-control! You set some configurations and then can tell it what position or velocity to achieve, and the microstepping is done for you. It even handles encoder reading, mechanical stall detection, and end-stop switch interrupts for you so you don't slam into the side of the machine by accident.

To do this, the TMC5240 has a full register and command set, that can be controlled with SPI or UART - with UART there is node addressing required, but perhaps this is easier to integrate with low-pin microcomputers. For both, commands are sent for configuring everything from stall current, to motion control, to individual steps to temperature reads. Speaking of which: the TMC5240 come in two packages: QFN and TSSOP. TSSOP has a big thermal pad at the bottom for better dissipation, QFN is smaller. With either, use plenty of vias, a 4-layer design with dedicated 2 oz copper ground planes to keep the motor driver cool: these can handle 5-36V at up to 2A per leg, so they are throwing a lot of current around.

You can pick up bare TMC5240 chips (https://www.digikey.com/short/vhvtnjbw), basic breakout boards (https://www.digikey.com/en/products/detail/analog-devices-inc-maxim-integrated/TMC5240-BOB/21292888) and eval boards (https://www.digikey.com/en/products/detail/analog-devices-inc-maxim-integrated/TMC5240-EVAL/17878664). Since you have to use the SPI/UART protocol to communicate, we recommend checkout out the pyTrinamic library (https://github.com/trinamic/PyTrinamic) which has added support to the TMC5240 (https://github.com/trinamic/PyTrinamic/blob/master/pytrinamic/ic/TMC5240.py) so you can hit the ground running / stepping.

Order up some of these silent stepper drivers today and you'll get them in hand by tomorrow afternoon, you'll save tons of time on your next robotic or mechatronic project thanks to the tons of built-in capabilities on the TMC5240!




Other Videos By Adafruit Industries


2023-12-04Tutorial Intro: Edge-Lit Acrylic Tavern Sign with WLED and IR Remote Control #adafruit
2023-12-04CircuitPython Weekly Meeting for December 4, 2023 @circuitpython #circuitpython #adafruit
2023-12-04The Great Search: Industrial MicroSD Cards #TheGreatSearch #DigiKey #adafruit @DigiKey @adafruit
2023-12-04Desk of Ladyada - Moar Sample Sunday, Camera PCBs, and ADV7611
2023-12-03Joy Controller #adafruit #3dprinting
2023-12-03Christmas Tree for Circuit Playground #adafruit #3dprinting
2023-12-01Deep Dive w/Scott: 9.0 update to IDF 5.1.2 #adafruit
2023-12-01JOHN PARK'S WORKSHOP LIVE 12/1/23 Faderwave
2023-11-30Micro Lipo Charger #adafruit #3dprinting
2023-11-30#NewProducts #Adafruit Feat 3.5" #TFT 320x480 with #CapacitiveTouch #BreakoutBoard - EYESPI!
2023-11-30EYE on NPI - Analog Devices' TMC5240 Stepper Motor Controller and Driver IC @digikey @ADI_News
2023-11-30LED Nood Snowflake ❄️
2023-11-29Adafruit Top Secret November 29, 2023 #Adafruit #AdafruitTopSecret #display @Adafruit
2023-11-29Python on Hardware weekly video Nov 29, 2023 #CircuitPython #Python #adafruit @Adafruit @micropython
2023-11-29SHOW and TELL 11/29/2023
2023-11-29Advanced Manufacturing: Made in NYC by Adafruit 11/29/2023
2023-11-293D Hangouts – Space Clock, Fireplace, Ghost and Tree Ornament
2023-11-29Space Clock – Earth & Mars #adafruit #3dprinting
2023-11-29ASK AN ENGINEER 11/29/2023
2023-11-29JP’s Product Pick of the Week 11/28/23 HUSB238 USB-C Power Delivery Breakout RECAP #adafruit
2023-11-29LEGO Winter Village Lighting #adafruit



Tags:
adafruit
electronics
diy
arduino
hardware
opensource
projects
raspberry
pi
computer
raspberrypi
microcontrollers
limor
limorfried
ladyada
STEAM
STEM
python
microbit
circuitpython
neopixel
neopixels
raspberry pi
circuitplaygound
nyc
make
makers
micro:bit
adafrit
adafruit promo code
ada fruit
adafruit coupons
raspberry pi zero
micropython
machine learning
ai
tensorflow
EYE on NPI
DigiKey