Skip to the content
2 layers45 × 23 mmBEAN sniffer, the printed circuit board in 3D

Toyota MPX (BEAN) asynchronous driver for AVR

Size
45 × 23 mm
Copper layers
2
Thickness
1.5 mm
Parts
36
Nets
37
Pads
107
Tracks, vias
238, 0
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
15 Feb 2020
Updated
12 Jul 2026

Overview

BEAN sniffer is an open-source printed circuit board by specadmin, from the specadmin/toyota-mpx repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 45 × 23 mm with 36 parts on 37 nets, routed with 238 tracks and 0 vias.

It is built around the ATMEGA88PA-AU, LM1117-5.0 and BSS138. Its parts include 12 resistors, 8 connectors, 5 capacitors, 3 ICs and 3 crystals. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

3

README

Readme.md

Description

This library is a software driver for MPX (BEAN) bus interface, designed by Toyota and used in some Toyota and Lexus cars. Find the content of the docs folder for better understanding of this bus. The driver works in asynchonous mode and does not block other routings, while MPX packets are being received or transmited.

You may found some MPX packets' description here.

Features

  • Asynchronous receiver
  • Asynchronous transmitter
  • Independent receiption and transmission
  • Arbitration control
  • Transmission FIFO queue
  • Configurable pins
  • Easy timer select

Physical layer

Requirements

  • AVR MPU;
  • 12 MHz or higher clock frequency;
  • one external interrupt (PCINT may be used, but not tested yet);
  • one 8 bit timer;
  • GNU AVR C compiller (avr-gcc);

Limitations

  • The driver has NO it's own address. So it receives all the packets, that are being transmited in the MPX network. The driver does NOT filter any packets and does NOT send acknowlegement to any packets.

Documentation

There is no any special documentation for this library. The library code was written to be efficient and clear for your understanding, so it is full of comments. See the header file for methods descriptions. Also you may find a sample project, that uses this library, inside.

Usage example

text
void mpxReceiver(BYTE size, const BYTE* buf)
{
    // make something with received packet

    ...
}

int main()
{
    ...

    mpx_init(mpxReceiver);
    enable_interrupts();

    BYTE data[] = { 0xCD, 0x48 };
    mpx_send(6, 0xFE, sizeof(data), data);

    ...
}

Adding to your project

The library is managed as a git submodule. Please refer to git submodule documentation for better understanding.

  • Run the following command in your project's root directory to clone the library:

git submodule add https://github.com/specadmin/toyota-mpx lib/toyota-mpx

  • Include the library's header file, where you need it:

#include "lib/toyota-mpx/mpx.h"

Parts

36
QtyValueFootprintReferences
8Conn_01x01TestPoint:TestPoint_THTPad_D1.0mm_Drill0.5mmP1, P2, P3, P4, P5, P6, P7, P8
339kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR4, R6, R11
20.1Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolderC3, C4
210kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR2, R3
210uCapacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolderC1, C2
220kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR5, R7
22kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR1, R9
2LEDLED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD1, D2
10Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR8
116MHzproject:Murata_CSTCExxxxV_3213_crystalZ1
122kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR10
1330Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolderC5
191kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR12
1ATmega88PA-AUPackage_QFP:TQFP-32_7x7mm_P0.8mmU3
1BSS138Package_TO_SOT_SMD:SOT-23Q1
1Conn_01x01TestPoint:TestPoint_Pad_D1.0mmT1
1Conn_01x03Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalX1
1Conn_02x03_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_HorizontalX3
1LM1117-5.0Package_TO_SOT_SMD:SOT-223-3_TabPin2U1
1SPIConnector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalX2
1XC6602P332MRPackage_TO_SOT_SMD:SOT-23U2

More from specadmin/toyota-mpx

1
  • 2 layers21 × 35 mmBEAN adapter, the printed circuit board in 3D

    BEAN adapter

    specadmin/toyota-mpx

    Toyota MPX (BEAN) asynchronous driver for AVR

    37 parts53GPL-3.0

Similar boards

  • 2 layers29.2 × 106.4 mmBranches v40, the printed circuit board in 3D

    Branches v40

    jonstapleton/mutable_eurorack

    Eurorack modules

    55 parts
  • 2 layers50 × 50 mmFlight Controller PCB, the printed circuit board in 3D

    Flight Controller PCB

    MarkSherstan/Drone

    Mechanical, electrical, and software package for a custom quadcopter drone.

    78 parts3MIT
  • 2 layers52.1 × 29.2 mmBSPD, the printed circuit board in 3D

    BSPD

    patwitt/PGRacingElectronics

    https://www.pgracingteam.pl/

    47 parts4
  • 2 layers17.5 × 36.6 mmSwinsid, the printed circuit board in 3D

    Swinsid

    jsanpe/SwinsidNeat

    Yet another PCB layout of the nano SwinSID focusing on aesthetics

    13 parts17MIT
  • 2 layers50 × 50 mmNrfburn, the printed circuit board in 3D

    Nrfburn

    nodep/nrfburn

    Hardware and software package for flashing Nordic Semiconductors nRF24LE1 and nRF24LU1+ microcontrollers

    32 parts9GPL-3.0
  • 2 layers17.8 × 37.1 mmNanoSwinSIDc, the printed circuit board in 3D

    NanoSwinSIDc

    hackup/NanoSwinSIDc

    Simple AVR-based replacement for the MOS6581 and MOS8580 sound chips aka. the Commodore SID.

    15 parts7
  • 2 layers66 × 99.1 mmEsr meter, the printed circuit board in 3D

    Esr meter

    vpatkov/esr-meter

    AC ohmmeter

    105 parts5

Questions

How big is the BEAN sniffer PCB?

It measures 45 × 23 mm and has 2 copper layers, 1.5 mm thick.

What parts does the BEAN sniffer use?

36 parts, built around the ATMEGA88PA-AU, LM1117-5.0 and BSS138. 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 BEAN sniffer KiCad files?

From the specadmin/toyota-mpx repository on GitHub, at the commit this page was made from: the board is samples/MPX-sniffer/schematics/BEAN-sniffer.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the BEAN sniffer design in my own project?

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