Skip to the content
2 layers50 × 100 mmBluepill, the printed circuit board in 3D

Shared parking space gate controller with 433 MHz radio

Size
50 × 100 mm
Copper layers
2
Thickness
1.6 mm
Parts
82
Nets
64
Pads
252
Tracks, vias
470, 19
Pours
4
Routed
Yes
KiCad
KiCad 4
Created
14 May 2016
Updated
1 May 2018

Overview

Bluepill is an open-source printed circuit board by attilabody, from the attilabody/gate433 repository on GitHub. It is a 2-layer board of 50 × 100 mm with 82 parts on 64 nets, routed with 470 tracks and 19 vias.

It is built around the ESP-01, 24LC512-I/P and LM1117-3.3, with the IRLML2502 among its other parts. Its parts include 24 resistors, 19 connectors, 12 ICs, 11 capacitors and 6 diodes. It belongs with the ESP8266 boards of this library.

Main components

4

README

Readme.md

Shared parking space access controller

Features

Gate433 uses cheap, standard (and insecure) gate opener remotes operating on 433 MHz to control entry and exit of vehicles allowed to acces the parking area.

Each gate opener supposed to be assigned to one vehicle and has unique code. The main purpose of it is to make unfair usage of the parking as inconvinient as possible using commodity gate opener remotes.

Features list:

  • 1024 possible remote codes
  • Position of each vehicle (inside, outside, unknown) is remembered. Gate opening will be denied for unexpected movements (e.g vehicle which is already inside tries to enter again)
  • Access time limits by direction can be set independently for any vehicle (e.g can enter Monday to Friday from 08:30 to 17:00, can leave Monday to Friday from 08:30 to 17:30)
  • Vehicle database snd device configuration stored in EEPROM
  • Log stored on SD card
  • Database changes can be imported from SD card
  • Exceptional days (e.g. National holydays) database on SD card
  • Automatic DST handling
  • Simple command line interpreter on serial for database manipulation, date/time setting, log manipulation and temperature query

Hardware

There are two versions of the hardware: Original version used Arduino Nano as central component. It is obsoleted by the newer version based on a popular STM32F103C8T6 based minimal board widely known as BluePill. It's actually cheaper on eBay or Aliexpress than the total cost of the components it contains.

Both versions ar using two inputs (usually coming from inductive loop detectors) in addition to the RF signal to decide if a vehicke intends to enter or exit. A pair of tricolor traffic lights provide feedback for drivers.

Both versions have 6 opto-isolated open drain output for 12V LED traffic lights,one opto-isolated open collector output for gate opening and two opto-isolated input for inductive loop detectors.

Second iteration have three extra features compared to the first:

  • WiFi to serial bridge for wireless communication
  • Rotary encoder driven simpe user interface (yet to be implemented in the firmware)
  • 3D printable case modelled in FreeCAD

V2

Prototype of STM32 based version

Firmware

Arduino Nano based firware was built on Arduino framework using Sloeber Arduino IDE. Source files persist in folders named "gatekeeper", "common" and "libs".
STM32 version is completely separated as it is based on STM32Cube framework. STM32 sources are placed in "gatekeeper-stm32" and "stm32goodies" folder.

Schematics and PCB

Arduino based first version hardware developed using proprietrary Eagle free version, and obsoleted by STM32 version but schematics of the mainboard and the IO panel are still available for reference.

As mentioned above, hardware of STM32 version designed using KiCAD. The complete EDA project is available in the hardware/STM32 folder. Here are the schematics in PDF for easier access.

bluepill_kicad

PCB design for STM32 bsed version

bluepill_complete

Assembled STM32 panel with modules installed

Parts

82
QtyValueFootprintReferences
144.7kResistors_SMD:R_0603_HandSolderingR1, R2, R13, R14, R15, R16, R17, R18, R19, R20, R21, R22, R23, R24
9470Resistors_SMD:R_0603_HandSolderingR4, R5, R6, R7, R8, R9, R10, R11, R12
7100nCapacitors_SMD:C_0805C3, C4, C5, C6, C7, C10, C12
61N4148Diodes_SMD:D_MiniMELFD1, D2, D3, D4, D5, D6
6IRLML2502TO_SOT_Packages_SMD:SOT-23Q1, Q2, Q3, Q4, Q5, Q6
6PC817Housings_DIP:DIP-4_W7.62mmU6, U7, U8, U9, U10, U11
310uCapacitors_Tantalum_SMD:CP_Tantalum_Case-A_EIA-3216-18_ReflowC8, C9, C11
3PC817Housings_DIP:DIP-4_W7.62mm_LongPadsU1, U4, U5
1+5VTerminalBlock:TerminalBlock_bornier-2_P5.08mmJ15
11.8kResistors_SMD:R_0603_HandSolderingR3
1220uCapacitors_THT:CP_Radial_D10.0mm_P3.50mmC1
124LC512Housings_DIP:DIP-8_W7.62mm_LongPadsU2
1ButtonsPin_Headers:Pin_Header_Straight_1x05_Pitch2.54mmJ19
1Conn_01x02_MalePin_Headers:Pin_Header_Straight_1x02_Pitch2.54mmJ16
1ESP-01Socket_Strips:Socket_Strip_Straight_2x04_Pitch2.54mmJ17
1InnerPin_Headers:Pin_Header_Straight_1x02_Pitch2.54mmJ5
1LCDPin_Headers:Pin_Header_Straight_1x04_Pitch2.54mmJ1
1LED PowerTerminalBlock:TerminalBlock_bornier-2_P5.08mmJ6
1LM1117-3.3TO_SOT_Packages_SMD:SOT-223U12
1OpenConnectors_JST:JST_EH_B02B-EH-A_02x2.50mm_StraightJ7
1OuterPin_Headers:Pin_Header_Straight_1x02_Pitch2.54mmJ4
1RTCPin_Headers:Pin_Header_Straight_1x06_Pitch2.54mmJ14
1RadioPin_Headers:Pin_Header_Straight_1x04_Pitch2.54mmJ3
1S1TerminalBlock:TerminalBlock_bornier-2_P5.08mmJ8
1S2TerminalBlock:TerminalBlock_bornier-2_P5.08mmJ9
1S3TerminalBlock:TerminalBlock_bornier-2_P5.08mmJ10
1S4TerminalBlock:TerminalBlock_bornier-2_P5.08mmJ11
1S5TerminalBlock:TerminalBlock_bornier-2_P5.08mmJ12
1S6TerminalBlock:TerminalBlock_bornier-2_P5.08mmJ13
1SD CardPin_Headers:Pin_Header_Straight_1x06_Pitch2.54mmJ2
1USART1Pin_Headers:Pin_Header_Straight_1x03_Pitch2.54mmJ18
1bluepillbluepill:bluepillU3

The 78 most common of 82 parts.

Similar boards

  • 2 layers65.5 × 60.8 mmRaspi pico christmas tree, the printed circuit board in 3D

    Raspi pico christmas tree

    jcksnvllxr80/raspi_pico_christmas_tree

    This project was designed for a decorative Christmas tree made out of cedar which stands about two feet in height.

    19 parts1
  • 2 layers64 × 39 mmSigmaLink USBi, the printed circuit board in 3D

    SigmaLink USBi

    freeDSP/SigmaLink-USBi

    The freeDSP SigmaLink USBi PROGRAMMER is an all-in-one real-time programming interface.

    31 parts33CC-BY-SA-4.0
  • 2 layers64 × 39 mmSigmaLink USBi, the printed circuit board in 3D

    SigmaLink USBi

    xfdr0805/usbi

    sigmadsp usb link

    40 parts1
  • 2 layers204.5 × 121.9 mmCt800-pcb, the printed circuit board in 3D

    Ct800-pcb

    d3rvita/ct800-pcb

    PCB for the CT800 chess computer

    91 parts4MIT
  • 2 layers75.5 × 52.5 mmStm32, the printed circuit board in 3D

    Stm32

    eddyem/stm32samples

    Code samples and ready projects based on bare-metal STM32

    89 parts208
  • 2 layers36.8 × 21.6 mmCicada gy91, the printed circuit board in 3D

    Cicada gy91

    mars2860/cicada

    The quadcopter based on ESP8266 wifi module

    27 parts6GPL-3.0
  • 4 layers45 × 32 mmTemplog mainboard, the printed circuit board in 3D

    Templog mainboard

    Michael-Manning/E-Paper-Climate-Logger

    Firmware, PCB, and enclosure for the Weathergotchi E-Paper climate logger.

    68 parts457MIT

Questions

How big is the Bluepill PCB?

It measures 50 × 100 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Bluepill use?

82 parts, built around the ESP-01, 24LC512-I/P, LM1117-3.3 and IRLML2502. 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 KiCad files?

From the attilabody/gate433 repository on GitHub, at the commit this page was made from: the board is hardware/stm32/bluepill.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Bluepill design in my own project?

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