STM32F103 Black Pill Development Board (HCDVBD0033)

ST Microelectronics microcontroller development boards and accessories
Post Reply
admin
Site Admin
Posts: 775
Joined: Sun Aug 05, 2012 4:02 pm

STM32F103 Black Pill Development Board (HCDVBD0033)

Post by admin » Fri Feb 09, 2018 9:33 am

Image





The STM32F103C8T6 (HCDVBD0033 / Black pill) Development Board is a low cost but feature rich alternative to an Arduino. The board features an ST Microelectronics STM32F103C8 Arm microprocessor running at a 72MHz clock speed. Coupled with 64K of Flash and 20K of SRAM this development board provides a powerful alternative to an Arduino. This development board is also not short on peripherals with 30 I/O pins, 14 of which can be configured as 12 bit ADC inputs, 12 as PWM with most pins being 5V tolerant. Supplied with the module are a set of 0.1" pitch headers (require soldering) which provide the option or breadboard mounting it with easy connection of standard Dupont cables.

For programming there is the option of using the STLink download adapter (see item HCDVBD0016) or a standard USB to 3.3V TTL adapter (see item HCMODU0051). Support for this board can be added to the Arduino IDE via the board manager feature. See the following blog post for full instructions on how to quickly get up and running here:

http://blog.hobbycomponents.com/?p=703



Please note that this development board is the original STM32F103 based 'black pill' development board and not the STM32F401 or F411 based development board which is also unofficially referred to as the 'black pill' development board.



Feature comparison to Pro Mini:

Image




Specification:


Part number: HCDVBD0033
Power: 3.3V or 5V via microUSB
Processor: ST Microelectronics STM32F103C8
Flash memory: 64K
SRAM: 20K
I/O (MAX): 30
Analogue pins: 14
PWM pins: 12
UART: 3
SPI: 2
I2C: 2




Pinout:

Image




Programing via serial bootloader with Arduino IDE:

Image




Example Arduino 'blink' sketch:

Code: Select all

#define LED_PIN PB12

void setup() 
{
  pinMode(LED_PIN, OUTPUT);
}

void loop() 
{
  digitalWrite(LED_PIN, HIGH);
  delay(1000);
  digitalWrite(LED_PIN, LOW);
  delay(1000);
}



Image
HCDVBD0033_Black_Pill_Schematic.pdf


FAQ:

When I configure pins PB3 & PB4 as inputs/outputs they don't seem to work. What am I doing wrong?

Pins PB3 & PB4 also function as JTAG debug pins. Ast his debug mode is tuned on by default you will need to disable it to use these pins as general purpose IO pins. You can do this by adding the following line to the top of setup() function in your Arduino sketch:

Code: Select all

afio_cfg_debug_ports(AFIO_DEBUG_SW_ONLY);



Disclaimer: Libraries, example code, and diagrams are provided as an additional free service by Hobby Components and are not sold as part of this product. We do not provide any guarantees or warranties as to their accuracy or fitness for purpose.

Descriptions and diagrams on this page are copyright Hobby Components Ltd and may not be reproduced without permission.
You do not have the required permissions to view the files attached to this post.

jjpython
Posts: 2
Joined: Thu Apr 30, 2020 12:26 pm

Re: STM32F103 Black Pill Development Board (HCDVBD0033)

Post by jjpython » Thu Apr 30, 2020 1:04 pm

I have just ordered one of these from you guys, I saw it can be programmed with a serial adapter, does this Include an ftdi to usb adapter, I'm quite new to all this but have some experience with raspberry pi and Arduino, not much but some, I assume that the Rx and TX are the same and I can jumper the ftdi to 3.3v and off I go, also I have read the blue pill can have a boot loader written to enable the usb for upload, is this the same for this black pill board

Thank you for taking the time to read, and maybe laugh, but thanks

andrew
Site Admin
Posts: 942
Joined: Sun Aug 05, 2012 4:15 pm

Re: STM32F103 Black Pill Development Board (HCDVBD0033)

Post by andrew » Thu Apr 30, 2020 3:37 pm

I have just ordered one of these from you guys, I saw it can be programmed with a serial adaptor, does this Include an ftdi to usb adaptor, I'm quite new to all this but have some experience with raspberry pi and Arduino, not much but some, I assume that the Rx and TX are the same and I can jumper the ftdi to 3.3v and off I go,

Yes any of the common USB to serial adaptors should work (FTDI CH340 CP2102 etc).

Although the STM32 on the black pill is a 3.3V part the serial pins are actually 5V tolerant. So it should be fine so long as if you're also using the adaptor to power the black pill you use the adaptors 3.3V power output.

also I have read the blue pill can have a boot loader written to enable the usb for upload, is this the same for this black pill board
It's effectively a slightly better quality version of the blue pill and has the same version of STM32 fitted so anything you can do with a blue pill you can do with this version of the black pill.


Thank you for taking the time to read, and maybe laugh, but thanks
Not at all, they are good questions and with electronics if your're not sure it's far better to ask then to guess!
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

jjpython
Posts: 2
Joined: Thu Apr 30, 2020 12:26 pm

Re: STM32F103 Black Pill Development Board (HCDVBD0033)

Post by jjpython » Fri May 01, 2020 3:34 pm

Thank you for the help, it's very much appreciated, I may have some more questions but so far this is perfect

I'm building a force feedback wheel and was recommended the blackpoll board, it's a new leap of tech from the Arduino pro micros I am using for button boxes for my gaming stuff

Post Reply