Skip to the content
2 layers235 × 180 mmMDMA, the printed circuit board in 3D

Sommaire : Description Installation Usage Visual Studio Code Linter Project Functionalities Leds Control Prerequisites Leds Variables Color Attribution Usefull Functions

Size
235 × 180 mm
Copper layers
2
Thickness
1.6 mm
Parts
138
Nets
80
Pads
430
Tracks, vias
796, 81
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
8 Feb 2021
Updated
8 Jul 2021

Overview

MDMA is an open-source printed circuit board by juthomas, from the juthomas/Electronics_MDMA repository on GitHub. It is a 2-layer board of 235 × 180 mm with 138 parts on 80 nets, routed with 796 tracks and 81 vias.

Its parts include 64 capacitors, 3 switches, 1 IC and 1 connector.

README

README.md

MEGA DRINKING MACHINA ADVENTURE

GitHub commit activity GitHub last commit GitHub contributors GitHub code size in bytes


alt text

Sommaire :

Description

Cet objet à été conçu sur les bases d’un témoignage perturbant à la date du 27 juin 2007 sur le forum ████ par l’utilisateur Chri████4. Il y fait mention d’un jeu à boire avec ses amis où ils auraient décidé d'invoquer Satan aux alentours de 23h42. La soirée aurait tourné en une cruelle mission de subjugation du malin avec pour seule arme l’alcool en grande quantité qu’ils avaient préparé pour faire la fête. Suite à cette affaire le service d’exorcisme V-696 (avec à sa tête Jean-███II) aurait procédé à une énorme commande de Sobieski.

À travers le projet Mega Drinking Machina Adventure™ nous voulons faire vivre à nos très chers futurs utilisateurs une simulation familiale de cette aventure hors du commun. Une compilation de jeux à boire allant de 1 à 5 joueurs sera proposée, avec une mise en place intuitive et rapide. Sur batterie, lumineux et facile à transporter, il deviendra votre meilleur outil pour pimenter vos soirées peu importe le contexte.

Installation (AVR)

  • Debian Based Linux :
    • Install avr-gcc :
      sudo apt-get install gcc-avr binutils-avr avr-libc
    • Install avr-dude :
      sudo apt-get install avrdude
  • Macos Unix :
    • Install brew (for noobies) :
      rm -rf $HOME/.brew && git clone --depth=1 https://github.com/Homebrew/brew $HOME/.brew && export PATH=$HOME/.brew/bin:$PATH && brew update && echo "export PATH=$HOME/.brew/bin:$PATH" >> ~/.zshrc
    • Install avr-gcc :
      brew tap osx-cross/avr
      brew install avr-gcc
    • Install avr-dude :
      brew install avrdude

Usage

  • Setup port :
    ls /dev/ > /tmp/file1
    then connect board
    ls /dev/ > /tmp/file2
    diff /tmp/file1 /tmp/file2
    will give you the port
    paste the given port to the PORT variable of the makefile

  • Upload to board :
    make coffee for build and upload
    make debug for debuging
    make help for other options

Visual Studio Code Linter

  • Install C/C++ extension
  • Configure C/C++ extension for avr :
    Type C/C++: Edit Configurations (JSON) in Command Palette
    • Linux :
      Add "/usr/lib/avr/include/**" line to includePath
    • Macos :
      Add "/Users/tmp/.brew/Cellar/avr-gcc@9/9.3.0_2/avr/include/**"
      on labelec macs
      or
      /System/Volumes/Data/usr/local/Cellar/avr-gcc@9/9.3.0_2/avr/include/**
      (on real macs)
      to includePath.
      If this line doesnt work find "avr/io.h" file with find / -name io.h
      Add the containing folder to includePath (like Linux method)

Project Functionalities

Leds Control

Prerequisites
  • ft_pin_mode(led_pin, FT_OUTPUT);
Leds Variables
  • char buffer (size = number of leds * 3)
Color Attribution

The color format is uint32_t : 0xLLRRGGBB
LL : Luminosity (0x01 to 0xFF, or 0x00 to ignore)
RR : Red (0x00 to 0xFF)
GG : Green (0x00 to 0xFF)
BB : Blue (0x00 to 0xFF)

Usefull Functions
  • uint8_t *feed_one_pixel(uint16_t pixel_index, uint8_t *pixels, uint32_t color)
    feed the selected pixel with the color
  • led_send_data(51, pixels, pixels_number);
    send data to the leds

Parts

138
QtyValueFootprintReferences
62100nFmy_lib:C_0603_1608MetricC1, C2, C10, C11, C12, C13, C14, C15, C16, C17, C18, C19, C20, C21, C22, C23 +46
62WS2812-2020my_lib:WS2812BI, II, III, IL, IV, IX, L, LI, LII, LIII, LIV, LIX, LV, LVI, LVII, LVIII +46
4MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
2SW_Push_LEDmy_lib:SW_LED_16mmSW2, SW3
1300 OhmResistor_SMD:R_0603_1608MetricR II
1300/0 OhmResistor_SMD:R_0603_1608MetricR I
1470uFCapacitor_SMD:CP_Elec_6.3x7.7C63
1470ufCapacitor_Tantalum_SMD:CP_EIA-7343-30_AVX-NC64
1Matrice8x8_WS2812my_lib:Matrice8x8_WS2812U1
1RFID_Modulemy_lib:RFID_RC522T1
1Rotary_Encoder_SwitchRotary_Encoder:RotaryEncoder_Alps_EC11E-Switch_Vertical_H20mmSW1
1Switch_Pin_outmy_lib:Pizza_Pin_OutP1

More from juthomas/Electronics_MDMA

1
  • 2 layers130.4 × 124 mmOctogone Sans Regle, the printed circuit board in 3D

    Octogone Sans Regle

    juthomas/Electronics_MDMA

    Sommaire : Description Installation Usage Visual Studio Code Linter Project Functionalities Leds Control Prerequisites Leds Variables Color Attribution Usefull Functions

    109 parts4

Similar boards

  • 2 layers391 × 45 mmAddOnB, the printed circuit board in 3D

    AddOnB

    freeDSP/freeDSP-aurora

    freeDSP ADAU1452 with 8 analog input, 8 analog outputs, S/P-DIF I/O, ADAT I/O, USB Audio Class2, WiFi, Bluetooth

    138 parts226CC-BY-SA-4.0
  • 2 layers80 × 60 mmFPGA para todos, the printed circuit board in 3D

    FPGA para todos

    ciaa/Hardware

    Hardware de la CIAA

    138 parts216
  • 2 layers87.9 × 98.7 mmBitdoglab smd, the printed circuit board in 3D

    Bitdoglab smd

    BitDogLab/BitDogLab

    Open-source educational hardware for embedded systems, programming, electronics, and physical computing.

    138 parts203
  • 2 layers247.6 × 99.2 mmRomeo pcb, the printed circuit board in 3D

    Romeo pcb

    coseyfannitutti/romeo

    Staggered 40% keyboard pcb that can be assembled with only through hole components, including USB Type-C

    138 parts148GPL-3.0
  • 2 layers313.8 × 110.8 mmOpenot rev2, the printed circuit board in 3D

    Openot rev2

    Skycode22/HIDs

    HID projects

    138 parts132
  • 2 layers271.3 × 120 mmCornelius, the printed circuit board in 3D

    Cornelius

    foostan/corneliuskbd

    The public branch for the cornelius keyboard

    138 parts122
  • 2 layers112.5 × 65.6 mmEaserCAT-7000, the printed circuit board in 3D

    EaserCAT-7000

    MetalMusings/MyOwnEtherCATDevice

    Documentation accompanying the "Make My Own EtherCAT device" video serie on Youtube.

    138 parts93
  • 2 layers100 × 100 mmVNA, the printed circuit board in 3D

    VNA

    profdc9/VNA

    Vector Network Analyzer based on the STM32F103C8T6 bluepill

    138 parts93

Questions

How big is the MDMA PCB?

It measures 235 × 180 mm and has 2 copper layers, 1.6 mm thick.

What parts does the MDMA use?

138 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 MDMA KiCad files?

From the juthomas/Electronics_MDMA repository on GitHub, at the commit this page was made from: the board is MDMA_KICAD_V2/MDMA/MDMA.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the MDMA design in my own project?

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