# STM32F103C8T6 as a Blue Pill

**URL:** <https://librepcb.discourse.group/t/stm32f103c8t6-as-a-blue-pill/636>\
**Category:** Libraries\
**Created:** [December 7, 2023, 6:41pm UTC](https://librepcb.discourse.group/t/stm32f103c8t6-as-a-blue-pill/636 "2023-12-07T18:41:51Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyrn](https://yyz2.discourse-cdn.com/free1/user_avatar/librepcb.discourse.group/tyrn/32/493_2.png) [@Tyrn](https://librepcb.discourse.group/u/Tyrn)\
**Post date:** [December 7, 2023, 6:41pm UTC](https://librepcb.discourse.group/t/stm32f103c8t6-as-a-blue-pill/636/1 "2023-12-07T18:41:51Z")

</div>

Hi,

When I search in the libraries for STM32F103C8T6, I’m getting just the centerpiece of it (IC). Suppose I need a 40-pin socket arrangement to put the Blue Pill into. Do I have to create the part myself? Is it possible to compose it of two existing _Pin Socket 1x20_, properly spaced and each socket marked?

---

<div class="post-metadata">

**Author:** ![sasmus](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@sasmus](https://librepcb.discourse.group/u/sasmus)\
**Post date:** [December 8, 2023, 11:07am UTC](https://librepcb.discourse.group/t/stm32f103c8t6-as-a-blue-pill/636/2 "2023-12-08T11:07:30Z")

</div>

As the “blue pill” itself is a kind of separate device, even if the STM32F103C8T6 is the embedded uC, i would go the route to create a new device with own footprint. Since there is nothing special (only two 2,54mm standard spaced pin headers) this should be no problem und not much work.

or… possibly anyone here already did this and would like to share

---

<div class="post-metadata">

**Author:** ![Tyrn](https://yyz2.discourse-cdn.com/free1/user_avatar/librepcb.discourse.group/tyrn/32/493_2.png) [@Tyrn](https://librepcb.discourse.group/u/Tyrn)\
**Post date:** [December 8, 2023, 1:28pm UTC](https://librepcb.discourse.group/t/stm32f103c8t6-as-a-blue-pill/636/3 "2023-12-08T13:28:03Z")

</div>

> possibly anyone here already did this and would like to share

Well, I found it done: [1](https://github.com/dbrgn/desklift), [2](https://github.com/coredump-ch/nixie-counter).

Unfortunately, I don’t know what to do with the findings. My experience with LibrePCB is zero, and the documentation is sketchy. There’s a couple of excellent videos, and more are forthcoming 🙂

Besides, my findings are four years old, and may well be outdated.

---

<div class="post-metadata">

**Author:** ![sasmus](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@sasmus](https://librepcb.discourse.group/u/sasmus)\
**Post date:** [December 8, 2023, 2:06pm UTC](https://librepcb.discourse.group/t/stm32f103c8t6-as-a-blue-pill/636/4 "2023-12-08T14:06:11Z")

</div>

oh, nice. Perhaps @dbrgn could assist here, you should be able to import or copy the component to your local lib.  
However, i didn’t check the license of his work - pls. keep this in mind

---

<div class="post-metadata">

**Author:** ![ubruhin](https://avatars.discourse-cdn.com/v4/letter/u/c89c15/32.png) [@ubruhin](https://librepcb.discourse.group/u/ubruhin)\
**Post date:** [December 8, 2023, 4:17pm UTC](https://librepcb.discourse.group/t/stm32f103c8t6-as-a-blue-pill/636/5 "2023-12-08T16:17:35Z")

</div>

I didn’t check it out, but it seems the blue pill is available in this library:

> **[GitHub - dbrgn/STM32\_Pills.lplib: LibrePCB library for the cheap and popular...](https://github.com/dbrgn/STM32_Pills.lplib)**
>
> LibrePCB library for the cheap and popular STM32F103 based dev boards like the blue pill, the red pill or the black pill. - GitHub - dbrgn/STM32\_Pills.lplib: LibrePCB library for the cheap and popu...

You can install it with the [download manually](https://youtu.be/DGwnTXhk_IQ?t=466) feature and this URL:

```
https://codeload.github.com/dbrgn/STM32_Pills.lplib/zip/refs/heads/master

```

License is clearly CC0 like all official libraries, so all good.

---

<div class="post-metadata">

**Author:** ![dbrgn](https://yyz2.discourse-cdn.com/free1/user_avatar/librepcb.discourse.group/dbrgn/32/25_2.png) [@dbrgn](https://librepcb.discourse.group/u/dbrgn)\
**Post date:** [December 8, 2023, 4:32pm UTC](https://librepcb.discourse.group/t/stm32f103c8t6-as-a-blue-pill/636/6 "2023-12-08T16:32:21Z")

</div>

Hey @Tyrn! Yeah, @ubruhin already mentioned my library.

It hasn’t yet been updated for LibrePCB 1.0 yet, but I’ll push an update in a few minutes!

---

<div class="post-metadata">

**Author:** ![Tyrn](https://yyz2.discourse-cdn.com/free1/user_avatar/librepcb.discourse.group/tyrn/32/493_2.png) [@Tyrn](https://librepcb.discourse.group/u/Tyrn)\
**Post date:** [December 8, 2023, 4:44pm UTC](https://librepcb.discourse.group/t/stm32f103c8t6-as-a-blue-pill/636/7 "2023-12-08T16:44:55Z")

</div>

Thank you very much! Do you mean I have to wait a bit, then follow the **ubruhin** ’s suggestion?

---

<div class="post-metadata">

**Author:** ![dbrgn](https://yyz2.discourse-cdn.com/free1/user_avatar/librepcb.discourse.group/dbrgn/32/25_2.png) [@dbrgn](https://librepcb.discourse.group/u/dbrgn)\
**Post date:** [December 8, 2023, 4:47pm UTC](https://librepcb.discourse.group/t/stm32f103c8t6-as-a-blue-pill/636/8 "2023-12-08T16:47:37Z")

</div>

Done! @Tyrn yes, if you waited with following the instructions above, you can now follow them and will get an up-to-date package 🙂

---

<div class="post-metadata">

**Author:** ![Tyrn](https://yyz2.discourse-cdn.com/free1/user_avatar/librepcb.discourse.group/tyrn/32/493_2.png) [@Tyrn](https://librepcb.discourse.group/u/Tyrn)\
**Post date:** [December 10, 2023, 6:36am UTC](https://librepcb.discourse.group/t/stm32f103c8t6-as-a-blue-pill/636/9 "2023-12-10T06:36:24Z")

</div>

I created my own local library and I’ve been trying to create my own elements in the likeness of your Blue Pill.  
 ![ky-040-3d-1](https://global.discourse-cdn.com/free1/uploads/librepcb1/original/1X/22c7669116ef4bf7610fd4e8cc149162753291c4.png)

I’m having warnings:

![ky-040-messages-1](https://global.discourse-cdn.com/free1/uploads/librepcb1/original/1X/af8365bdeceb0c6899ef1614a4379f07d44d80ac.png)

No big surprise, because I created no layers at all. Mostly because the layer controls won’t show at all. Your own Blue Pill doesn’t have these messages, but I can’t see any layers either, like [here](https://librepcb.org/docs/quickstart/create-project/board/#draw-outlines). What’s wrong?

On the other hand, the absence of layers on an element kinda makes sense because it’s an abstraction turning into something concrete after being placed on the board, and no sooner. Please be patient with me, it’s hard to take in everything at once 🤔

---

<div class="post-metadata">

**Author:** ![dbrgn](https://yyz2.discourse-cdn.com/free1/user_avatar/librepcb.discourse.group/dbrgn/32/25_2.png) [@dbrgn](https://librepcb.discourse.group/u/dbrgn)\
**Post date:** [December 10, 2023, 7:24am UTC](https://librepcb.discourse.group/t/stm32f103c8t6-as-a-blue-pill/636/10 "2023-12-10T07:24:13Z")

</div>

> [@Tyrn](#):
>
> but I can’t see any layers either, like [here](https://librepcb.org/docs/quickstart/create-project/board/#draw-outlines). What’s wrong?

Did you first click on the polygon tool in the left sidebar?

---

<div class="post-metadata">

**Author:** ![Tyrn](https://yyz2.discourse-cdn.com/free1/user_avatar/librepcb.discourse.group/tyrn/32/493_2.png) [@Tyrn](https://librepcb.discourse.group/u/Tyrn)\
**Post date:** [December 10, 2023, 7:26am UTC](https://librepcb.discourse.group/t/stm32f103c8t6-as-a-blue-pill/636/11 "2023-12-10T07:26:33Z")

</div>

No. I used just the _Draw Rectangle_. Tried this and that on your Blue Pill. Can’t see anything new.

---

<div class="post-metadata">

**Author:** ![sasmus](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@sasmus](https://librepcb.discourse.group/u/sasmus)\
**Post date:** [December 10, 2023, 7:50am UTC](https://librepcb.discourse.group/t/stm32f103c8t6-as-a-blue-pill/636/12 "2023-12-10T07:50:22Z")

</div>

Pls read here:  
[https://librepcb.org/docs/quickstart/create-library-elements/package/](https://librepcb.org/docs/quickstart/create-library-elements/package/)

(„Draw Polygons“)

Or simply klick „fix“ in the warnings ( first regarding the outline then the courtyard) LibrePCB will make a suggestion which you could modify or delete again

---

<div class="post-metadata">

**Author:** ![Tyrn](https://yyz2.discourse-cdn.com/free1/user_avatar/librepcb.discourse.group/tyrn/32/493_2.png) [@Tyrn](https://librepcb.discourse.group/u/Tyrn)\
**Post date:** [December 10, 2023, 8:07am UTC](https://librepcb.discourse.group/t/stm32f103c8t6-as-a-blue-pill/636/13 "2023-12-10T08:07:27Z")

</div>

> [@sasmus](#):
>
> first regarding the outline then the courtyard

Exactly 😂

Thanks!
