MIT License

项目介绍

laurb9/tiny_scope 是一个托管在 GitHub 上的开源项目,主要使用 C++ 编写,采用 MIT License 许可证,目前获得 41 个 Star、9 次 Fork。

仓库全名
laurb9/tiny_scope
开源许可证
MIT License
Star 数
41
Fork 数
9
未关闭 Issue
4

README 摘要

Tiny Scope for Arduino ====================== Features ======== Configurable ADC speed for sampling rates from 10KHz to 300KHz (on UNO) Auto grid on time base from 2ms to 50us (on UNO) Vmax calibration and 3.3-5V detection using internal reference 0V auto trigger Display minimum-maximum voltage of captured signal Square waveforms are displayed properly Auto voltmeter mode when input is steady The screenshots below…

完整内容见 GitHub 原始 README 或本页 。

常见问题

tiny_scope 用什么语言开发?

主要使用 C++ 编写,采用 MIT License 许可证,目前有 41 个 Star。

tiny_scope 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 tiny_scope 的源码?

可以直接克隆仓库:git clone https://github.com/laurb9/tiny_scope.git;安装与运行步骤见仓库 README。

tiny_scope 最近还在维护吗?

仓库最近一次更新为 2019年2月10日,当前有 4 个未关闭 Issue;Star 数为 41,可作为社区活跃度的参考。

关于

Tiny Scope for Arduino

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
100
价值分
31
活跃状态
活跃

README

Arduino PlatformIO

Tiny Scope for Arduino

Features

  • Configurable ADC speed for sampling rates from 10KHz to 300KHz (on UNO)
  • Auto grid on time base from 2ms to 50us (on UNO)
  • Vmax calibration and 3.3-5V detection using internal reference
  • 0V auto trigger
  • Display minimum-maximum voltage of captured signal
  • Square waveforms are displayed properly
  • Auto voltmeter mode when input is steady

The screenshots below are on a two-color display (yellow/blue).

Arduino UNO R3, default ADC settings Arduino UNO R3, default ADC settings, sine wave

Arduino UNO R3, fastest ADC settings Arduino UNO R3, fastest ADC settings, 255us PWM pulse

Voltmeter mode is automatically switched on with a steady voltage signal (when it would be represented by a flat line).

Voltmeter mode

Requires one of the boards below and a Monochrome 0.96" 128x64 OLED graphic display (SSD1306 driver, I2C).

Supported boards

All boards build from this branch (master); the old teensy and feather_m0 branches are historical and no longer needed.

Board Build target Notes
Arduino UNO R3 / ATmega328 arduino:avr:uno / uno tuned ADC driver, 10-300KHz sampling
Teensy 3.1/3.2 teensy:avr:teensy31 / teensy31 tuned ADC driver (pedvide ADC), fastest
Teensy LC teensy:avr:teensyLC / teensylc tuned ADC driver (pedvide ADC)
Adafruit Feather M0 adafruit:samd:adafruit_feather_m0 portable ADC, no EEPROM (mode not saved), button on D6
ESP32 esp32dev (PlatformIO) experimental: compiles, untested on hardware, portable ADC

Connections

  • OLED VCC - 3.3V
  • OLED GND - GND
  • OLED SCL - A5 or SCL (Teensy SCL0 pin 19)
  • OLED SDA - A4 or SDA (Teensy SDA0 pin 18)
  • PROBE WIRE - A1 (defined in tiny_scope.ino) (Teensy pin 15)
  • BUTTON - D7 button to GND (D6 on Feather M0)

Testing

  • A1 to 5V should display 5.00 V
  • A1 to GND should display 0.00 V
  • A1 to D9 (Teensy pin 9) should display a square wave (PWM) with >2ms period and >0.5ms pulse
  • A1 to D5 should display a square wave (PWM) with >1ms period and >0.2ms pulse
  • Momentary (<0.5s) push on D7 switch cycles through available sampling speeds
  • Long >0.5s push on D7 freezes display.

Without hardware, make sim-test boots the UNO firmware on an emulated ATmega328P (simavr) and checks the boot/capture pipeline against a baseline.

Entire project

UNO R3 and Teensy 3.1 (with upside-down display mode).

Tiny Scope running on UNO R3 Tiny Scope running on Teensy 3.1

Parts

Building

With arduino-cli (downloaded automatically into .arduino/):

make setup                # one-time: arduino-cli, board indexes, libraries
make all                  # default TARGET=arduino:avr:uno
make all TARGET=teensy:avr:teensy31
make all TARGET=adafruit:samd:adafruit_feather_m0

With PlatformIO:

pio run                   # all boards: uno, teensy31, teensylc, adafruit_feather_m0, esp32dev
pio run -e uno            # just one

Or use the Arduino IDE with the Library Manager (below), or open the repo in VS Code and “Reopen in Container” for a ready-made build environment.

Libraries

Installed automatically by make setup and PlatformIO; in the Arduino IDE use Library Manager:

  • Adafruit SSD1306 (with its Adafruit GFX / BusIO dependencies)
  • Teensy boards: the ADC library ships with Teensyduino

评论

暂无评论