Kicad libraries for STM32 modules [SOLVED / uploaded to GitHub]

Post here first, or if you can't find a relevant section!
r2d2
Posts: 19
Joined: Tue Sep 24, 2019 5:07 pm
OS: Windows
IDE: Visual Studio
Core: Roger's
Board: Pills. Any colour is welcome.

Re: Kicad libraries for STM32 modules

Post by r2d2 » Tue Oct 08, 2019 1:05 am

Nice but useless !!! When exporting the STEP file, the silkscreen is lost (it's a texture). I used Solidworks, the real time renderer gives a near to photorealistic view with a NVidia Quadro. I didn't realize the quality loss until I exported the STL ; the silkscreen disapeared, and the red LED became green. It will need some more postprocessing with another software. As a result, it's probably better using a software that directly works with STEP files...
Attachments
Capture.PNG
Capture.PNG (40.29 KiB) Viewed 136 times
Last edited by r2d2 on Wed Oct 09, 2019 1:07 pm, edited 2 times in total.

r2d2
Posts: 19
Joined: Tue Sep 24, 2019 5:07 pm
OS: Windows
IDE: Visual Studio
Core: Roger's
Board: Pills. Any colour is welcome.

Re: Kicad libraries for STM32 modules

Post by r2d2 » Wed Oct 09, 2019 1:06 pm

The library is now available on Github : https://github.com/yet-another-average-joe/Kicad-STM32

At this time, there's only the BluePill. It contains 2 symbols (differ by power supply position), 1 footprint, and 1 STEP 3D model. (I also uploaded the STEP on GrabCAD)

(the BlackPill is in the todo list, but it is not a priority...)

User avatar
Vassilis
Posts: 158
Joined: Wed Feb 27, 2019 5:09 pm
Answers: 2
Location: Thessaloniki, Greece
OS: Linux, Win10, MacOS
IDE: Arduino 1.8.9
Core: Roger, STM official
Board: Bluepill, Maple mini, STM32F4xx
Contact:

Re: Kicad libraries for STM32 modules

Post by Vassilis » Wed Oct 09, 2019 1:37 pm

r2d2 wrote:
Wed Oct 09, 2019 1:06 pm
The library is now available on Github : https://github.com/yet-another-average-joe/Kicad-STM32

At this time, there's only the BluePill. It contains 2 symbols (differ by power supply position), 1 footprint, and 1 STEP 3D model. (I also uploaded the STEP on GrabCAD)

(the BlackPill is in the todo list, but it is not a priority...)
Really great job. Well done !

(YAAJ_BluePill.STEP file was rendered in SimLab 3D Composer Lite)
Bluepill_KiCad.JPG
Bluepill_KiCad.JPG (81.36 KiB) Viewed 117 times
-Vassilis Serasidis

r2d2
Posts: 19
Joined: Tue Sep 24, 2019 5:07 pm
OS: Windows
IDE: Visual Studio
Core: Roger's
Board: Pills. Any colour is welcome.

Re: Kicad libraries for STM32 modules [SOLVED / uploaded to GitHub]

Post by r2d2 » Wed Oct 09, 2019 1:56 pm

There's a weird bug in KiCad : the red LED is rendered green whatever is done !

But all this is only cosmetic. An advcie about the symbols and the footprint would be welcome (errors !)

User avatar
Vassilis
Posts: 158
Joined: Wed Feb 27, 2019 5:09 pm
Answers: 2
Location: Thessaloniki, Greece
OS: Linux, Win10, MacOS
IDE: Arduino 1.8.9
Core: Roger, STM official
Board: Bluepill, Maple mini, STM32F4xx
Contact:

Re: Kicad libraries for STM32 modules [SOLVED / uploaded to GitHub]

Post by Vassilis » Wed Oct 09, 2019 3:19 pm

An easy fix for the LED color is to install kicadStepupMod addon on FreeCAD (Tools > Addon manager).
Open your .step file and export it as .wrl file. Then, import the .wrl file to kicad from
Footprint Properties > 3D Settings > 3D Model(s)

kicad_stepup.jpg
kicad_stepup.jpg (77.15 KiB) Viewed 113 times
-Vassilis Serasidis

r2d2
Posts: 19
Joined: Tue Sep 24, 2019 5:07 pm
OS: Windows
IDE: Visual Studio
Core: Roger's
Board: Pills. Any colour is welcome.

Re: Kicad libraries for STM32 modules [SOLVED / uploaded to GitHub]

Post by r2d2 » Wed Oct 09, 2019 3:24 pm

Thanks for the trick, I will try this ASAP !

r2d2
Posts: 19
Joined: Tue Sep 24, 2019 5:07 pm
OS: Windows
IDE: Visual Studio
Core: Roger's
Board: Pills. Any colour is welcome.

Re: Kicad libraries for STM32 modules [SOLVED / uploaded to GitHub]

Post by r2d2 » Thu Oct 10, 2019 11:03 pm

@Vassilis : the model displays normally in FreeCAD. The problem is in the KiCad renderer.

Update :

- added : 2 symbols for the BlackPill
- added : 1 footprint for the BlackPill
- added : 1 STEP model for the BlackPill
- fixed : the BluePill footprint was shifted to the right by 0.1mm (pads not properly aligned with the grid)

User avatar
Vassilis
Posts: 158
Joined: Wed Feb 27, 2019 5:09 pm
Answers: 2
Location: Thessaloniki, Greece
OS: Linux, Win10, MacOS
IDE: Arduino 1.8.9
Core: Roger, STM official
Board: Bluepill, Maple mini, STM32F4xx
Contact:

Re: Kicad libraries for STM32 modules [SOLVED / uploaded to GitHub]

Post by Vassilis » Fri Oct 11, 2019 5:49 am

r2d2 wrote:
Thu Oct 10, 2019 11:03 pm
@Vassilis : the model displays normally in FreeCAD. The problem is in the KiCad renderer.
3D Viewer in KiCad v5.1.4 displays correctly .wrl models.
As you said, it seems that KiCad 3D Viewer is having a bug with .step models
-Vassilis Serasidis

r2d2
Posts: 19
Joined: Tue Sep 24, 2019 5:07 pm
OS: Windows
IDE: Visual Studio
Core: Roger's
Board: Pills. Any colour is welcome.

Re: Kicad libraries for STM32 modules [SOLVED / uploaded to GitHub]

Post by r2d2 » Fri Oct 11, 2019 10:33 am

My bad ! I read too fast : I did some color editing and exported as STEP (it was late at night !)

User avatar
Vassilis
Posts: 158
Joined: Wed Feb 27, 2019 5:09 pm
Answers: 2
Location: Thessaloniki, Greece
OS: Linux, Win10, MacOS
IDE: Arduino 1.8.9
Core: Roger, STM official
Board: Bluepill, Maple mini, STM32F4xx
Contact:

Re: Kicad libraries for STM32 modules [SOLVED / uploaded to GitHub]

Post by Vassilis » Fri Oct 11, 2019 11:28 am

Still on Bluepill both LEDs are Green. Blackpill LEDs are both Blue :(
Only the .wrl file that is exported from FreeCAD + KiCadStepUp has correct LED color
-Vassilis Serasidis

Post Reply