Тёмный

Stepper motor developing platform with TMC2209 and AS5600 

Curious Scientist
Подписаться 37 тыс.
Просмотров 5 тыс.
50% 1

Check out PCBWay's website for rapid prototyping of printed circuit boards, CNC and 3D printing services and many more! pcbway.com/g/m...
Check out PCBWay's 6th Project design contest!
www.pcbway.com...
In this video, I show you my new gadget which is a stepper motor developing platform. I always wanted to build such a platform because whenever I had to write new code for a project or for a customer, I always struggled with breadboards and a big bunch of cables. This device aims to relieve the user from all the mess so they can focus on the development.
The platform is powered by a powerful STM32F401CCU6 microcontroller. The stepper motor driver is the popular TMC2209 driver. Under the centre of the shaft of the stepper motor, there's an AS5600 12-bit magnetic absolute encoder. The circuit is also equipped with a display, some buttons and a rotary encoder, so it can be used as a standalone developing platform. The whole thing can be powered from a 12 V or 24 V (2 A) wall adapter.
Please consider supporting me on Patreon: / stepper-motor-93360362
Check my website for more information: curiousscienti...
Get the PCB from PCBWay: www.pcbway.com...
Get the relevant parts and tools: curiousscienti...

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 43   
@isidoromaich7226
@isidoromaich7226 10 месяцев назад
Awesome project/tool/instrument 👍
@CuriousScientist
@CuriousScientist 10 месяцев назад
Thank you! Good to see you again!
@howardbealeau
@howardbealeau 9 месяцев назад
Nice project, Curious Scientist. At 2:32, you begin to discuss how the Enable jumper pins can be used to "disconnect this 3.3V buck converter from all the 3.3V devices". You then go on to describe why you provided the 3.3V power supply Enable feature... "For example, if you want to program the board" (i.e. the STM32F401CCU6 Black Pill), "you obviously plug it into the USB port of your computer, or you will use ST-LINK, and then, in that case, you might want to power the board itself (the microcontroller) from the USB. But there would be a conflict if you would power it from the USB and this power supply" (pointing to the 3.3V Regulator). Your explanation is clear enough from that point onwards. But the reason I highlight that section of your video is because I have yet to find a good video on how to program the STM32F401CCU6 Black Pill when it is powered from a computer's USB (connection to the Black Pill is made using a USB-A to USB-C cable), OR when using a ST-LINK V2 USB dongle. Your 4 year old video "STM32F103C with ST-Link and STM32duino, simplified!" (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-saolJ_7E7hc.html) is out of date now, because the STM32 ST-LINK Utility you used back then has been replaced by STM32CubeProgrammer. Also, the STM32F401CCU6 Black Pill already comes pre-programmed with a BOOT Loader in system memory, and the BOOT Loader mode jumpers on the STM32F103C Blue Pill have been replaced by push buttons on the STM32F401CCU6 Black Pill. It's probably a no-brainer for you to program the Black Pill by now, but I'm finding it challenging and would like to know what I'm doing wrong. Like why doesn't the ST-LINK V2 connect to the Black Pill when I run STM32CubeProgrammer? And why do I need to do that anyway if I'm going to be uploading a sketch from the Arduino IDE via USB, i.e. when the computer is connected to the Black Pill with a USB-A to USB-C cable)?
@CuriousScientist
@CuriousScientist 9 месяцев назад
You can directly program the STM32F401CCU6 from USB after putting it into bootloader mode. Select the proper upload mode in the Arduino IDE, then press and hold the BOOT0 button, then press and release the NRST button and then after 1-2 seconds release the BOOT0 button. It is not rocket science. My other video is for *STMF32F103*-series. It is not out of date, you are just doing the wrong thing since you are not using the same microcontroller.
@howardbealeau
@howardbealeau 9 месяцев назад
@CuriousScientist I'm now able to successfully program the STM32F401CCU6 Black Pill in bootloader mode through the USB-C connection, using the Arduino IDE, with STM32CubeProgrammer installed, and the Arduino IDE Upload method set to "STM32CubeProgrammer (DFU)", although establishing USB connectivity can be a bit tricky (this problem is covered in many other online forums). I'm sorry if I made inaccurate statements about any of your old videos, they all give me great inspiration.
@CuriousScientist
@CuriousScientist 9 месяцев назад
Hi! I am glad to hear the good news! Yes, the timing of pressing and releasing those buttons is crucial. Sometimes, I have to try multiple times to enter the bootloader. I hope you'll have fun with the projects involving this microcontroller!
@BrandonGraham
@BrandonGraham 10 месяцев назад
Cool project. I've been following you since the beginning of the TEC days, and wanted to see how much this project was going to cost. I checked your website and thought i should let you know that it is serving ads that look like scams. I just got a pop-up from your site that said my iphone is out of memory, and to click on the "settings" button in the ad. I don't have an iPhone, and I can't imagine that ad leading to a useful/safe place.
@CuriousScientist
@CuriousScientist 10 месяцев назад
Hi! Thanks! Yes, I remember you from the early days! ;) Regarding the ads, thank you for the heads up, I must check this! Actually, I don't place the ads myself specifically, Google does it (I run AdSense). I just place an empty placeholder on my blog and the AdSense fills it up with contents. Having scam-looking ads is very strange because they should be more relevant to your browsing history (cookies), and in any way they should not be harmful. Right now, I see ads from Digi-Key and Mouser mainly because I recently bought components from them. And I also see ads from some other web shops where I usually buy things from.
@noanyobiseniss7462
@noanyobiseniss7462 10 месяцев назад
Ublock Origin. ;)
@CuriousScientist
@CuriousScientist 10 месяцев назад
Nah, then I don't get any income from the ads. 😒
@BrandonGraham
@BrandonGraham 10 месяцев назад
@@CuriousScientist Interesting. i don't remember the time I got an ad that popped up in front of the webpage, so I wasn't sure if it was something nefarious that took over, and wanted to let you know. Definitely wasn't suggesting that you needed to remove them. Anyway, I appreciate what you do.
@CuriousScientist
@CuriousScientist 10 месяцев назад
@BrandonGraham, yes, yes, I know that you just notified me, and I really appreciate it! I just wanted to explain how the ads work on my website. They are supposed to be strictly checked by Google, so they should not be nefarious. However, it could happen that something slips through the checking process.
@subthousandoaks
@subthousandoaks Месяц назад
Thank you
@CuriousScientist
@CuriousScientist Месяц назад
You're welcome!
@BRADCYH
@BRADCYH 9 месяцев назад
I just subscribed to your channel, I find your video to be very detailed and informative. great job. One suggestion for this project is that Arduino may be a better option since it's easy for beginners and most of them should be familiar with that platform already. Also, if LCD can be replaced by OLED would be great, it's hard to read from your video. Anyhow, thank you for your effort in teaching. Cheers!
@CuriousScientist
@CuriousScientist 9 месяцев назад
Hi! This is Arduino (STM32duino), it is just a more powerful microcontroller. Also, an OLED display at this size would be much more expensive, so I did not want to go with that. The visibility of the display is excellent, and at the end of the day, it doesn't matter if it is a bit less visible on video because people will look at it with their eyes if they replicate the project. Thanks!
@hugosoares8459
@hugosoares8459 8 месяцев назад
Recently discovered your channel, and am really enjoying your videos! I'm trying to select a microcontroller for a begginer project i'm developing, but am stumped at the vastness of choice. How do you go about picking one?
@CuriousScientist
@CuriousScientist 8 месяцев назад
Hi! Just go with a simple Arduino. Uno or Nano (Atmega 328). Then, learn the Arduino basics on that. You can do quite a lot even with a simple Arduino Nano, especially after you get more comfortable with more deeper stuff, like messing with the ports directly instead of using the digitalRead function. Then, you can start expanding towards stronger microcontrollers such as STM32 or similar, still using the Arduino IDE. Once you know a lot about SPI, I2C, UART...etc., you can, for example, try learning the HAL framework using ST's own tool, CubeIDE.
@evugar
@evugar 10 месяцев назад
Nice effect at 23:35
@CuriousScientist
@CuriousScientist 10 месяцев назад
Wow, what the heck!? 😄 I haven't noticed this. It must be a rendering error. It is not something intentional.
@evugar
@evugar 10 месяцев назад
@@CuriousScientist Yeah, that fizzling or sand falling sound effect completed it to perfection!
@isidoromaich7226
@isidoromaich7226 10 месяцев назад
I thought we had lost him with the Thanos' snap
@noanyobiseniss7462
@noanyobiseniss7462 10 месяцев назад
I think you may find the 38v value may mean with active cooling. But I am just making an educated guess on this. "First of all, I had to think about the maximum voltage that the TMC2209 driver board can take. This is 28 V in the case of the driver I picked. In fact, some datasheets on AliExpress state 38 V, but I think it is a typo as all the official Trinamic documents (chip, eval. board) state 28 or 29 V. So I feel better to say 28 V as the maximum voltage."
@CuriousScientist
@CuriousScientist 10 месяцев назад
Hi! First of all, thanks for checking my website too! 😉 Yes, 38 V with active cooling might make sense. But just to be on the safe side, I decided to print 28 V on the PCB. In any case, this platform is for developing stuff and not driving heavy loads, so 38 V is unnecessary.
@noanyobiseniss7462
@noanyobiseniss7462 10 месяцев назад
@@CuriousScientist I've enjoyed your content and our interests align so figured you might want to check on that for future projects. I think this board with some breakouts for the other i/o's would be an easy addition and would make this a dual purpose board. Keep up the good work. :)
@CuriousScientist
@CuriousScientist 10 месяцев назад
Thank you!
@alvarobyrne
@alvarobyrne 10 месяцев назад
well done
@CuriousScientist
@CuriousScientist 10 месяцев назад
Thank you!
@Charmed_quark
@Charmed_quark 10 месяцев назад
Very cool! I wonder what is the brand of the third hand tool that's you use at 15:33? There is nothing like it on your website. Thanks!
@CuriousScientist
@CuriousScientist 10 месяцев назад
Hi! It is an Omnifixo! I highly recommend it, I have two of them.
@Charmed_quark
@Charmed_quark 10 месяцев назад
@@CuriousScientist thank you!
@CuriousScientist
@CuriousScientist 10 месяцев назад
You're welcome!
@vinylcuts5049
@vinylcuts5049 9 месяцев назад
Hi where did you buy the stepper and can I get the data sheets of that stepper that you used thanks
@CuriousScientist
@CuriousScientist 9 месяцев назад
Hi! It is on my website! Check the video description.
Далее
Women’s Free Kicks + Men’s 😳🚀
00:20
Просмотров 1,2 млн
I Made The Ultimate Cheating Device
9:39
Просмотров 1 млн
Cutting Steel easier than you think - Use Wiper Motor
15:58
High-performance 3-axis stepper motor controller
55:18
Просмотров 3,2 тыс.
The Micro Mechanisms in Your Phone
19:31
Просмотров 1,2 млн
Every Developer Needs a Raspberry Pi
27:27
Просмотров 645 тыс.
I Made a Tool for DIY Electronics
12:44
Просмотров 42 тыс.
Making a PCB Motor spin 30,000 RPM FASTER
13:41
Просмотров 1,8 млн
Espduino + TMC2209 + CNC shield
9:02
Просмотров 5 тыс.