项目概述
OtterPill 是一款售价 3 美元的开发板,STM32F072,配备 USB 2.0 全速、DFU 引导加载器、USB-PD电源协议以及 Arduino nano 的针脚和尺寸。
Changelog V1.2:物料清单成本降低约40%,更高效的降压转换器(在20V时,PCB发热更少),新增GND挂钩便于测试,复位引脚引出为焊盘,新增支持 20V/5A 的大功率焊盘;

引脚图

固件编译与烧录
通过 Makefile 和 DFU (C, C++)
你可以使用 CubeMX 生成包含 HAL 库初始化和 Makefile 的基础固件。生成的二进制文件可以通过 make 进行构建,并使用 dfu-utils 进行烧录。
进入 DFU 模式的方法: 在插入电源的同时按住按钮。
$ make
$ dfu-util -a 0 -s 0x08000000:leave -D build/firmware.binArduino
参考这个链接进行Arduino 的编译和烧录:https://github.com/stm32duino/Arduino_Core_STM32
PlatformIO
参考这个链接:https://gist.github.com/ansemjo/ab1c12f7c78abb140f7272501aff2a55
Nodate(C++,Ada)
参考这个链接:https://github.com/MayaPosch/Nodate
Rust
参考这个链接:https://github.com/jamesmunns/OtterPill-rs
示例与项目
点灯示例固件
固件:OtterPill Blink.zip(见顶部附件)
烧录指南:https://github.com/Jana-Marie/hackerhotel-stm-workshop

USB-PD 示例固件
这是一个使用ChibiOS的USB-PD示例,按下按钮可以请求新的电压。
https://github.com/Jana-Marie/USB-PD-Firmware
扩展板
兼容大多数Arduino扩展板 比如:USB转CAN适配器
特别感谢
@jamesmunns 创建Rust示例。
@MayaPosch 创建了Nodate框架并为OtterPill提供支持;
@ansemjo 创建 PlatformIO 配置;
@SarahhhhFoster 创建了很棒的引脚图;
License
版权所有 Jana Marie Hemsing 2027。
CERN-OHL-S v2
产库主页:https://github.com/Jana-Marie/OtterPill
