

BEAN sniffer
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
3ATMEGA88PA-AU
TQFP-32(7x7)-40℃~+85℃ 1.8V~5.5V 10bit 1KB 20MHz 23 512Byte 8 Bit 8KB AVR Built-in FLASH TQFP-32(7x7) Microcontrollers (MCU/MPU/SOC) ROHSMicrochip TechnologyMicrocontrollers (MCU/MPU/SOC)LM1117-5.0
SOT-2231 1.3V@(1000mA) 15V 1A 2mA 5V Fixed Over Current Protection、Short Circuit Protection、Thermal shutdown Positive SOT-223 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHShongjiachengUncategorisedBSS138
SOT-23-55℃~+150℃ 1 N-channel 1.1Ω@10V、1.2Ω@4.5V 1.2V 1.7nC@10V 17.5pF 340mA 350mW 50V 6.5pF N-Channel SOT-23 MOSFETs ROHShongjiachengMOSFETs
README
Readme.mdDescription
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
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| Qty | Value | Footprint | References |
|---|---|---|---|
| 8 | Conn_01x01 | TestPoint:TestPoint_THTPad_D1.0mm_Drill0.5mm | P1, P2, P3, P4, P5, P6, P7, P8 |
| 3 | 39k | Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder | R4, R6, R11 |
| 2 | 0.1 | Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder | C3, C4 |
| 2 | 10k | Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder | R2, R3 |
| 2 | 10u | Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder | C1, C2 |
| 2 | 20k | Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder | R5, R7 |
| 2 | 2k | Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder | R1, R9 |
| 2 | LED | LED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolder | D1, D2 |
| 1 | 0 | Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder | R8 |
| 1 | 16MHz | project:Murata_CSTCExxxxV_3213_crystal | Z1 |
| 1 | 22k | Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder | R10 |
| 1 | 330 | Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder | C5 |
| 1 | 91k | Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder | R12 |
| 1 | ATmega88PA-AU | Package_QFP:TQFP-32_7x7mm_P0.8mm | U3 |
| 1 | BSS138 | Package_TO_SOT_SMD:SOT-23 | Q1 |
| 1 | Conn_01x01 | TestPoint:TestPoint_Pad_D1.0mm | T1 |
| 1 | Conn_01x03 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | X1 |
| 1 | Conn_02x03_Odd_Even | Connector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_Horizontal | X3 |
| 1 | LM1117-5.0 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U1 |
| 1 | SPI | Connector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_Vertical | X2 |
| 1 | XC6602P332MR | Package_TO_SOT_SMD:SOT-23 | U2 |
More from specadmin/toyota-mpx
1- 2 layers21 × 35 mm

Similar boards
- 2 layers29.2 × 106.4 mm

- 2 layers50 × 50 mm

Flight Controller PCB
MarkSherstan/Drone
Mechanical, electrical, and software package for a custom quadcopter drone.
78 parts3MIT - 2 layers99.1 × 99.1 mm

- 2 layers52.1 × 29.2 mm

- 2 layers17.5 × 36.6 mm

Swinsid
jsanpe/SwinsidNeat
Yet another PCB layout of the nano SwinSID focusing on aesthetics
13 parts17MIT - 2 layers50 × 50 mm

Nrfburn
nodep/nrfburn
Hardware and software package for flashing Nordic Semiconductors nRF24LE1 and nRF24LU1+ microcontrollers
32 parts9GPL-3.0 - 2 layers17.8 × 37.1 mm

NanoSwinSIDc
hackup/NanoSwinSIDc
Simple AVR-based replacement for the MOS6581 and MOS8580 sound chips aka. the Commodore SID.
15 parts7 - 2 layers66 × 99.1 mm

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).