Editing
Blue Pill
From Deskthority Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{stub}} {{infobox dcontroller | name = | manufacturer = Various | license = | port = USB Micro B (varying quality) | uc = STM32F103 | mpu = ARM Cortex-M3 | ucvoltage = 3.3 V | ucclock = 72 MHz | iopins = 32 | iovoltage = 3.3 V | ram = 20 KB | progmem = 64 KB | eeprom = | bootloader = None | website = }} '''Blue Pill''' and '''Red Pill''' are nicknames for a common microcontroller board with STM32F103 microcontrollers, having blue and red soldermask, respectively. The red boards were probably the original, made by an unknown manufacturer. They has only the marking "JC66 STM32F103C8 CoreBoard". Clones with blue soldermask have been made by multiple manufacturers, and have been popular because they have been common and very cheap. ==Description== The microcontroller is a STM32F103, running at 72 MHz, with 64 KB Flash and 20 KB RAM. The board's format is similar to that of a 40-pin DIP package but the board is typically somewhat wider to have space for printing pin numbers. Has a 32 khz real-time clock crystal. It has a reset button. There is a four-pin SWD header on the short edge. There are two header pin triplets with jumpers, for enabling programming over SWD. ==Shortcomings== Some variants have addressed these shortcomings: see [[#Variants|variants below]]. * The pull-up resistor (R10) on the USB D+ is often of the wrong value: either 10 kΩ or 4.7 kΩ. To comply with the USB standard and work with more hardware, it should be replaced with a resistor of 1.5 kΩ or get an additional resistor in parallel. * It does not come with a USB bootloader, so SWD must be used to program the device with firmware or a bootloader. * The Micro USB port is often just surface-mounted, and therefore easily broken. * The voltage regulator is capable of supplying no more than 100 mA to external devices. It otherwise overheats easily. * There is no diode from VBUS to the board's +5V pin, so you can't have it connected via USB and get +5V from an external source at the same time. * There is no reference-power for the analog-to-digital converters. * There are components on both sides of the board. ==Pinout== {| class="wikitable" |- ! Function ! Pin ! ↑ ! Pin ! Function |- | CK3,NSS2 || PB12 ! USB | colspan=2|GND ''or'' VBUS |- | CTS3,SCK2 || PB13 || rowspan=19| || colspan=2|GND |- | RTS3,MISO2 || PB14 || colspan=2|+3.3V |- | MOSI2 || PB15 || colspan=2|NRST (Reset) |- | CK1 || PA8 || PB11 || SDA2,RX3 |- | TX1 || PA9 || PB10 || SCL2,TX3 |- | RX1 || PA10 || PB1 || ADC9 |- | CTS1 || PA11 || PB0 || ADC8 |- | RTS1 || PA12 || PA7 || ADC7,MOSI1 |- | NSS1 || PA15 || PA6 || ADC6,MISO1 |- | SCK1 || PB3 || PA5 || ADC5,SCK1 |- | MISO1 || PB4 || PA4 || ADC4,NSS1,CK2 |- | MOSI1 || PB5 || PA3 || ADC3,RX2 |- | TX1,SCL1 || PB6 || PA2 || ADC2,TX2 |- | RX1,SDA1 || PB7 || PA1 || ADC1,RTS2 |- | SCL1 || PB8 || PA0 || ADC0,CTS2 |- | SDA1 || PB9 || PC15 || |- | colspan=2|+5V (VBUS) || PC14 || |- | colspan=2|GND || PC13 || |- | colspan=2|+3.3V || colspan=2|VBAT |- |} Notes: * One pin is GND or VBUS depending on board model. * The +5V line is connected directly to VBUS * User LED is on PC13, lit when PC13 is low. * The four-pin SWD port on the short edge is not shown in this diagram. ==Variants== ===RobotDyn STM32 Mini=== It is often called the '''RobotDyn Black Pill''' because of its black solder mask, and must not be confused with other black STM32 boards also called "Black Pill" such as [[Black Pill|the one from WeAct Studio]]. * It has a diode from VBUS and a more capable power regulator. * The Micro USB port is through-hole soldered and the pull-up resistor has the correct value. * The board is also narrower. External links: * STM32duino Forum Wiki—[https://stm32duinoforum.com/forum/wiki_subdomain/index_title_RobotDyn_Black_Pill.html RobotDyn Black Pill] * STM32-base—[https://stm32-base.org/boards/STM32F103C8T6-RobotDyn-Black-Pill RobotDyn Black Pill] ===WeAct Studio BluePill Plus=== Multiple variants: {|class="wikitable variants-table sortable" ! µC !! Clock !! SRAM !! Flash |- | STM32F103C8T6 || 72 MHz || 20 KB || 64 KB |- | GD32F303CCT6 || 120 MHz || 48 KB || 256 KB |} They are licensed under GPL version 3. * Has a USB C port. * The jumpers have been removed, instead having a BOOT0 button that must be held for 0.5s during reset. * The user LED is on PB2, active high. * A user button on PA0. * Diode from VBUS to VCC, allowing external power while plugged in via USB. The +5V pin is connected to VCC. * The GND pin nearest the USB port's short edge has been changed into an additional VCC. * The bottom is flat, with pads for an optional W25Q32JVSSIQ SPI flash chip. * Realtime clock has been removed. External links: * WeAct on GitHub—[https://github.com/WeActTC/BluePill-Plus BluePill Plus / WeAct Studio 微行工作室 出品] ==External links== * STM32duino Forum Wiki—[https://stm32duinoforum.com/forum/wiki_subdomain/index_title_Blue_Pill.html Blue Pill] * STM32-base—[https://stm32-base.org/boards/STM32F103C8T6-Blue-Pill Blue Pill] ==Trivia== The nicknames "Blue Pill" and "Red Pill" are a reference to the movie ''The Matrix'' (1999). They were coined on the STM32duino forum. [[Category:Controller boards]]
Summary:
Please note that all contributions to Deskthority Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Infobox
(
edit
)
Template:Infobox/row
(
edit
)
Template:Infobox dcontroller
(
edit
)
Template:Stub
(
edit
)
Template:Theme colour
(
edit
)
Navigation menu
Page actions
Page
Discussion
Read
Edit
Edit source
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Deskthority forum
Support Deskthority
Search
Main categories
Guides
Keyboards
Keyboard switches
Keycaps
Keyboard modding
Pointing devices
Brands & companies
Group buys
Other topics
Wiki info & links
Recent changes
Random page
All pages
Deskthority wiki help
MediaWiki help
Tools
What links here
Related changes
Special pages
Page information