Skip to the content
2 layers123.5 × 125 mmBumbleebot, the printed circuit board in 3D

Projeto acadêmico desenvolvido para a disciplina de Programação de Hardware. Consiste em um sistema embarcado com:

Size
123.5 × 125 mm
Copper layers
2
Thickness
1.6 mm
Parts
26
Nets
29
Pads
122
Tracks, vias
251, 6
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
30 Nov 2025
Updated
13 Dec 2025

Overview

Bumbleebot is an open-source printed circuit board by henriquesantanareis, from the henriquesantanareis/Bumblebee-bo repository on GitHub, published under the MIT licence. It is a 2-layer board of 123.5 × 125 mm with 26 parts on 29 nets, routed with 251 tracks and 6 vias.

It is built around the ATMEGA328P-PU and L293D. Its parts include 11 connectors, 5 capacitors, 5 resistors, 4 ICs and 1 crystal. It belongs with the ESP32 and AVR (ATmega, ATtiny) boards of this library.

Main components

2

README

README.md

Bumblebee-bo

Sistema Embarcado com ATmega328P + ESP32 + LDR + Laser + L293D

Projeto acadêmico desenvolvido para a disciplina de Programação de Hardware.
Consiste em um sistema embarcado com:

  • Controle remoto via ESP32 utilizando o aplicativo Dabble
  • Processamento principal e controle de motores via ATmega328P
  • Hit-detection usando LDR + laser
  • Sistema de vidas, STUN e game over
  • Controle de motores DC usando ponte H L293D
  • Comunicação serial UART entre ESP32 ⇆ ATmega328P
  • Implementação baseada 100% em registradores, sem bibliotecas Arduino no AVR

📌 Funcionalidades do Sistema

🟢 ATmega328P (microcontrolador principal)

  • Lê continuamente o LDR em modo ADC Free-Running
  • Detecta “hit” quando a luz do laser reduz o valor do ADC
  • Cada hit remove 1 vida
  • Quando um hit ocorre:
    • Motores param imediatamente
    • Laser desliga automaticamente
    • Entra em estado STUN por 3 segundos (Timer0)
    • Durante o STUN, não aceita comandos do ESP32
  • Quando as vidas chegam a 0, entra em STATE_DEAD
  • LEDs indicam o número de vidas
  • Reset é feito enviando comando 'R' via UART

🔵 ESP32 (controle remoto)

  • Conecta ao aplicativo Dabble
  • Usa o módulo GamePad
  • Envia comandos pela UART2 para o ATmega328P:
    BotãoAçãoCódigo enviado
    UpFrente'F'
    DownRé'B'
    LeftEsquerda'L'
    RightDireita'R'
    SquareLiga laser'Q'
    CircleDesliga laser'W'
    CrossStop'S'
    StartReset vidas'X'

🛠️ Hardware Utilizado

ATmega328P (bare metal)

  • Alimentação 5V
  • Oscilador 16 MHz externo
  • Pinos usados:
    FunçãoPinoPorta
    LDRADC5PC5
    Laser (transistor)PD4PORTD
    LED vidasPB3 PB4 PD3PORTB & PORTD3
    Motores ENA/ENBPB1/PB2PWM
    Motor direçãoPB0, PD5, PD6, PD7
    UART RX/TXPD0/PD1

ESP32 DevKit V1

  • UART2 utilizada:
    • RX2 = GPIO16
    • TX2 = GPIO17

Ponte H L293D

  • Motor A e Motor B
  • Alimentação separada para motores (recomendado)

LDR + Resistores

  • Divisor resistivo para entrada do ADC

Laser + Transistor (BC548 / BC548B)

  • PC3 → resistor base 1k → transistor → laser → GND

🔌 Diagrama de Conexões (Resumo)

txt
         +------------------+            +----------------+
         |    ESP32 DevKit |            |  ATmega328P    |
         |                  |            |                |
   TX2 --+ GPIO17           +----------->+ RX0 (PD0)      |
   RX2 <-+ GPIO16           <-----------+ TX0 (PD1)      |
         |                  |            |                |
         |    Dabble BLE    |            |                |
         +------------------+            +----------------+

                    Motores (ponte H L293D)
       IN1 = PB0, IN2 = PD7, IN3 = PD6, IN4 = PD5
       ENA = PB1 (PWM),  ENB = PB2 (PWM)

                 Laser
       PC3 -> R(1k) -> Base do transistor -> Laser

                 LDR
       LDR → divisor resistivo → PC5 (ADC5)

                 LEDs vidas
       PC0, PC1, PC2 → LEDs (3 vidas)

📂 BumbleBeeBot/
│

Parts

26
QtyValueFootprintReferences
3220RResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR1, R2, R3
210kRResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR4, R5
222pFCapacitor_THT:C_Disc_D3.8mm_W2.6mm_P2.50mmC1, C2
10,1uFCapacitor_THT:CP_Radial_D4.0mm_P2.00mmC4
10,33uFCapacitor_THT:CP_Radial_D4.0mm_P2.00mmC3
1100nFCapacitor_THT:C_Rect_L9.0mm_W4.0mm_P7.50mm_MKTC5
1ATmega328P-PPackage_DIP:DIP-28_W7.62mm_SocketU2
1BTN_RESETTerminalBlock:TerminalBlock_bornier-3_P5.08mmJ11
1Battery_esp32TerminalBlock:TerminalBlock_bornier-2_P5.08mmJ8
1CrystalCrystal:Crystal_HC49-4H_VerticalY1
1ESP32_DevKit_V1_DOITEsp32Dev:esp32_devkit_v1_doitU1
1L293DPackage_DIP:DIP-16_W7.62mm_SocketU3
1LDRTerminalBlock:TerminalBlock_bornier-2_P5.08mmJ4
1LED1TerminalBlock:TerminalBlock_bornier-2_P5.08mmJ1
1LED2TerminalBlock:TerminalBlock_bornier-2_P5.08mmJ2
1LED3TerminalBlock:TerminalBlock_bornier-2_P5.08mmJ3
1LM7805_TO220Package_TO_SOT_THT:TO-220-3_VerticalU4
1LazerTerminalBlock:TerminalBlock_bornier-2_P5.08mmJ7
1MATerminalBlock:TerminalBlock_bornier-2_P5.08mmJ5
1MBTerminalBlock:TerminalBlock_bornier-2_P5.08mmJ6
1batteryTerminalBlock:TerminalBlock_bornier-2_P5.08mmJ9
1battery_MotorsTerminalBlock:TerminalBlock_bornier-2_P5.08mmJ12

Similar boards

  • 2 layers51.7 × 79.4 mmControl motor dc, the printed circuit board in 3D

    Control motor dc

    kr4fty/DCMotorController

    Closed Loop Position Control for DC Servo Motors. STEP / DIR compatible Driver

    26 parts5GPL-2.0
  • 2 layers100 × 100 mmFlipdot H Bridge, the printed circuit board in 3D

    Flipdot H Bridge

    comakingspace/FlipDotDisplay

    They were bought at the Makerfaire Hannover 2016.

    76 parts3
  • 2 layersRC car 2, the printed circuit board in 3D

    RC car 2

    DilipRana/ATMega-Bluetooth-RC-Car-PCB

    A simple ATMega328p based RC Car with L293D motor driver and HC05 bluetooth module

    15 parts
  • 2 layers72.5 × 61.5 mmTank, the printed circuit board in 3D

    Tank

    ngroesz/pcb_design

    circuit board designs

    49 parts
  • 2 layers80 × 38 mmA main, the printed circuit board in 3D

    A main

    aspro648/KiCad

    My design files. Abandon all hope ye who enter here.

    81 parts33
  • 2 layers178 × 145 mmUltra DB X51 v1, the printed circuit board in 3D

    Ultra DB X51 v1

    ExploreEmbedded/8051_DevelopmentBoard

    Design files and sample code for 8051 development Ultra Boards

    145 parts70
  • 2 layers84.3 × 58.4 mmEnocderDriver, the printed circuit board in 3D

    EnocderDriver

    NikodemBartnik/Small-Projects

    All of smaller projects (Arduino, PCBs, electronics, code)

    35 parts55

Questions

How big is the Bumbleebot PCB?

It measures 123.5 × 125 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Bumbleebot use?

26 parts, built around the ATMEGA328P-PU and L293D. 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 Bumbleebot KiCad files?

From the henriquesantanareis/Bumblebee-bo repository on GitHub, at the commit this page was made from: the board is Bumbleebot/hardware/pcb/PP.kicad_pcb and its schematic Bumbleebot/hardware/pcb/PP.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Bumbleebot design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).