Git Product home page Git Product logo

attiny85-tinyterminal-128x32's Introduction

TinyTerminal - USB controlled OLED based on ATtiny85

TinyTerminal is a simple USB controlled 128x32 pixels I2C OLED display. It uses V-USB to build a USB communication device class (CDC) for serial communication via USB with the ATtiny. Text messages of all kinds can be sent via the USB interface and shown on the OLED display. The integrated buzzer gives an acoustic signal for every message received.

VID_20240325_205856991.mp4

Hardware

The schematic is shown below:

schematic.png

Software

The communication via USB is handled by the V-USB software-onl

y implementation of a low-speed USB device. To simplify the software development with the Arduino IDE the VUSB_AVR board package is used. It includes the VUSB_CDC library, which makes it easy to implement a serial communication via USB. The I²C OLED routine is based on tinyOLEDdemo. The rest was adapted from the Tiny Terminal by David Johnson-Davies.

Compiling, Uploading and Testing

  • Open Arduino IDE.
  • Install VUSB-AVR.
  • Go to Tools -> Board -> VUSB AVR and select VUSB-AVR.
  • Go to Tools -> CPU and select ATtiny85 (16.5 MHz internal).
  • Connect your programmer to your PC and to the ICSP header of the device.
  • Go to Tools -> Programmer and select your ISP programmer.
  • Go to Tools -> Burn Bootloader to burn the fuses.
  • Open the TinyTerminal sketch and click Upload.
  • The buzzer will make some noise during the upload as it is connected to one of the ICSP pins.
  • Disconnect the programmer and connect the device via USB to your PC.

Alternatively, the precompiled hex file can be uploaded:

avrdude -c usbasp -p t85 -U lfuse:w:0xe1:m -U hfuse:w:0xdd:m -U efuse:w:0xff:m -U flash:w:TinyTerminal_t85.hex

The device will work under Linux out-of-the-box. Windows users need to install the Digistump drivers.

To test the device you can open the Serial Monitor of the Arduino IDE and send a message. With Linux the port is usually /dev/ttyACM0. You can also send a message via a Terminal:

echo "Hello World!\n" > /dev/ttyACM0

The device was only tested with Linux!

attiny85-tinyterminal-128x32's People

Contributors

averagejuliet avatar wagiminator avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.