Skip to the content
2 layers102.9 × 88.8 mmBluepill pb1, the printed circuit board in 3D

Gadget for the PC-G850VS family of pocket computers for SD card.

Size
102.9 × 88.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
31
Nets
46
Pads
146
Tracks, vias
375, 165
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
9 Oct 2020
Updated
28 Sep 2022

Overview

Bluepill pb1 is an open-source printed circuit board by blackjetrock, from the blackjetrock/pcg850vs-sd-gadget repository on GitHub. It is a 2-layer board of 102.9 × 88.8 mm with 31 parts on 46 nets, routed with 375 tracks and 165 vias.

Its parts include 17 resistors, 7 connectors, 3 switches, 1 IC and 1 transistor.

README

README.md

pcg850vs-sd-gadget

Gadget for the PC-G850VS family of pocket computers

This gadget:

  1. Reads SD card files into memory and then sends them to the PCG850VS
  2. Captures data from the PCG850VS and allows it to be written to the SD card
  3. Can scope the PIO mod eoutputs of the PC-G850VS

The PCB uses a blue pill as a processor, and an SD card module for the SD card functions. An OLED display allows operatin away from a computer.

Limitations:

The data sent or received is stored in the RAM of the blue pill, so no files greater than the available RAM can be sent or received. The SIO protocol has handshaking so this could be used to pause data from the PC-G850VS to the gadget when writing to the SD card. Reading from the card could be done without a problem as data is sent once it is read.

An ARM chip with more RAM could be fitted to the blue pill, this is more involved as it requires desoldering the QFP and putting a new one on.

An issue with early code meant that the SD card may not initialise properly. A code fix for this has bee pushed to the repository.

File Tags

If the gadget detects a tag of '@file' (case sensitive) in the file that it has read from the G850 then it usd the filename specified after the tag (delimited with a space) as the name to use if the file is written to the SD card. If the file tag does not exist then the gadget uses unique filenames of the form PCGnnnn.DAT where nnnn is chosen to be the next unused value on the SD card.

Circuit

The circuit uses a blue pill to do the processing. The PC-G850VS 11 pin interface is protected by series resistors. Power can come from either the blue pill or the PC-G850VS. If powered by the PC-G850VS short JP1. If you power the gadget from the blue pill when this is shorted then the 5V will be sent into the 5V of the 11 pin interface. I'm not sure what this will d, but it's probably not good. There's an OLED display that is used to display menus. It is an I2C device. The SD card is held in a catalex SD card module, these are common on ebay. Three keyswitches are used to control the menu system. As well as the OLED menus there are some commands that can be sent over the USB to serial connection. This needs a USB to serial adapter on J2.

The circuit involving Q1 is an inverter that should allow the UART functionality of the ARM processor to decode the serial data from the PC-G850VS. The current sketch does not use this but rather decodes the data stream using firmware.

For programming I use a STLINK V2 clone from ebay connected to the programming connector of the blue pill.

Construction Notes

Components are fitted as shown on the schematic, apart from a few noted here:

The SD card reader module should be powered from 5V, not 3V3. The PCBs all have a 3V3 supply wired to the module. I have found that some modules will work with a 3V3 supply, but some won't. Cutting the track to the power pin of the module and running wire from 3V3 to the supply pin of the module fixes the problem.

R14, Q1 and R15 are a hardware level shifter that takes the transmitted data (TX) from the PC-G850VS and sends it to the hardware USART on the blue pill. I don't use this at the moment as the code can decode the serial data. These components can be omitted or fitted. The sketch will have to be adjusted if you want to use the hardware USART.

J7 is a power jumper. If it is shorted then power comes from the PC-G850VS. If open then the blue pill can power the circuit (useful if programming the blue pill). R4 and R5 are power connections and should be 0R links or wire links.

The blue pill, display and SD card reader can either be soldered to the PCB or fitted in sockets. If soldered then th eprofile is much lower but obviously these parts are harder to remve if you need to.

The SD card reader comes with a right angle type connector, for fitting on the PCB I desolder the connector it comes with and fit a straight connector.

I use a straight pin header for J1 and solder it on the top of the board. This is because straight headers are cheaper and they also lead to a lower profile once fitted.

OLED displays come in two pinouts, with reversed power connections. There's two connectors for the OLED display, one for each pinout. Make sure the OLED display is connected to the correct pinout connector.

I use an ST-LINKV2 from ebay for programming the blue pill. Any method of getting the sketch on to the blue pill should be fine.

Code

The menu structure that the code uses varies with the version of code that is running and th efunctions that are added to the code. The menu option names have been elaborated from th ebasic names given in the instruction sheet, but it should be possible to work out which option does what.

Supported Devices

The gadget has been used on the: PC-G850VS PC-G850

Parts

31
QtyValueFootprintReferences
101kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR4, R5, R6, R7, R8, R9, R10, R11, R12, R13
54k7Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R2, R3, R16, R17
3Conn_01x04Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ2, J3, J4
3Switch_SW_SPSTButton_Switch_THT:SW_PUSH-12mmSW1, SW2, SW3
2Do not fitResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR14, R15
1BPBP:BLUEPILLU1
1Conn_01x02Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ7
1Conn_01x06Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ6
1Conn_01x09Connector_PinHeader_2.54mm:PinHeader_1x09_P2.54mm_VerticalJ5
1Q_NPN_CBETANBUS65:TO92_vertQ1
1SD_Card_Module_catalexCharleslabs_Parts:SD_Card_ModuleA1
1TestPointTestPoint:TestPoint_Loop_D2.60mm_Drill0.9mm_BeadedTP1
1pc850vs_11_pinConnector_PinHeader_2.54mm:PinHeader_1x11_P2.54mm_VerticalJ1

Similar boards

  • 2 layers44.5 × 46.9 mmOSO SWAT B1-jig, the printed circuit board in 3D

    OSO SWAT B1-jig

    joeycastillo/Sensor-Watch

    A board replacement for the classic Casio F-91W wristwatch

    31 parts2.1k
  • 2 layers65 × 30 mmRgb to hdmi, the printed circuit board in 3D

    Rgb to hdmi

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    31 parts1kGPL-3.0
  • 2 layers191 × 98.5 mmMacroKeypad, the printed circuit board in 3D

    MacroKeypad

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    31 parts915
  • 2 layers39 × 45.2 mmCH32V003F4P6-R0-1v1, the printed circuit board in 3D

    CH32V003F4P6-R0-1v1

    openwch/ch32v003

    CH32V003 is an ultra-cheap RISC-V MCU with 2KB SRAM, 16KB flash, and up to 18 GPIOs that sells for under $0.10

    31 parts599
  • 2 layers26.7 × 27.9 mmBreakout board, the printed circuit board in 3D

    Breakout board

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    31 parts546MIT
  • 2 layers100 × 50 mmPixelix, the printed circuit board in 3D

    Pixelix

    BlueAndi/Pixelix

    Full RGB LED matrix, based on an ESP32 and WS2812B LEDs or emulated LEDs on TFT.

    31 parts447MIT
  • 2 layers77.2 × 69.8 mmCubesatsim solar, the printed circuit board in 3D

    Cubesatsim solar

    alanbjohnston/CubeSatSim

    CubeSatSim, the AMSAT CubeSat Simulator

    31 parts419GPL-3.0
  • 2 layers103 × 55 mmTd neck-294, the printed circuit board in 3D

    Td neck-294

    tdaede/td-crt

    tubes

    31 parts373

Questions

How big is the Bluepill pb1 PCB?

It measures 102.9 × 88.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Bluepill pb1 use?

31 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Bluepill pb1 KiCad files?

From the blackjetrock/pcg850vs-sd-gadget repository on GitHub, at the commit this page was made from: the board is blue-pill/bluepill-pb1/bluepill-pb1.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Bluepill pb1 design in my own project?

Its repository states no licence, so its author keeps all rights: ask blackjetrock before reusing the design.