Editor Version ×
Standard

1.Easy to use and quick to get started

2.The process supports design scales of 300 devices or 1000 pads

3.Supports simple circuit simulation

4.For students, teachers, creators

Profession

1.Brand new interactions and interfaces

2.Smooth support for design sizes of over 30,000 devices or 100,000 pads

3.More rigorous design constraints, more standardized processes

4.For enterprises, more professional users

Std EditionNettigo Air Monitor 0.3 I2C RGB LED Bar

License: TAPR Open Hardware License

Published Time:2019-12-20 22:30:22
  • 1k
  • 0
  • 0
Description

Nettigo Air Monitor I2C RGB LED Bar

Firmware can be found here: github.com/irukard/NAM-I2C-RGB-LED-BAR

Hardware

Device is based on ATtiny84A with ten WS2812 Neopixel LEDs. It meant to be a slave I2C device driving Neopixels acordingly to recived commands from I2C master. To make it 3V3 compatible board itself doesn't have I2C pullups (and since I2C is open drain it doesn't change logic level during communication). ATtiny84A is powered from 5V rail to ensure propper logic level in communication with LEDs.

Wiring

  • I2C_SDA - PIN4 - PA6 (PCINT6/OC1A/SDA/MOSI/DI/ADC6)
  • I2C_SCL - PIN6 - PA4 (PCINT4/T1/SCL/USCK/ADC4)
  • WS2812 - PIN10 - PA0 (PCINT1/AIO0/ADC1)

Programming

Device can be programmed with cheap USBASP ICSP programmer with 6-pin adapter (eg. NAR-307 + NAR-894). In case of fresh ATtiny84A chip straight from factory, don't forget to burn fusebits.

Protocol

Communication protocol is as simple as it can be. Start transmition with correct address, send 5 bytes: mode, count, red, green, blue and stop transmission.

Example master code:

void lightLED(byte mode, byte cnt, byte red, byte green, byte blue) {
    Wire.beginTransmission(LED_BAR_ADDRESS); // transmit to device, default 0x32
    Wire.write(mode);
    Wire.write(cnt);
    Wire.write(red);
    Wire.write(green);
    Wire.write(blue);
    Wire.endTransmission();    // stop transmitting
}
  • Mode 0: Light up fist n (acording to cnt) LEDs with RGB colour. LEDs above n will be turned off.
  • Mode 1: Change colour of single LED with RGB values. The rest will stay the same.

If you request information from device, it will return number of LEDs in slave device.

Documents

Nettigo Air Monitor I2C RGB LED Bar Schematics

Open in editor

Nettigo Air Monitor I2C RGB LED Bar

Open in editor
ID Name Designator Footprint Quantity BOM_Supplier BOM_Manufacturer BOM_Manufacturer Part BOM_Supplier Part
1 WS2812B-B LED1,LED2,LED3 LED-SMD_4P-L5.0-W5.0-BL 3 LCSC Worldsemi WS2812B-B C114586
2 I2C 5V J1,J2 NETTIGO XH2.54-4P 2 LCSC Ckmtw 210S-1*4P L=11.6MMGold-plated black C124378
3 ATTINY84A-SSU/SSR U1 SOIC-14_L8.7-W3.9-P1.27-LS6.0-BL 1 LCSC MICROCHIP ATTINY84A-SSU C144333
4 Header-Male-2.54_2x3 J3 HDR-TH_6PIN-V-ROW2-COL3-MALE-PITCH2.54 1 LCSC BOOMELE Header-Male-2.54_2x3 C65114
5 1uF C1 0603 1 LCSC SAMSUNG CL10A105KB8NNNC C15849
6 GL5528 R1 RES-TH_L5.1-W4.3-P3.40-D0.5 1 LCSC Senba GL5528 C125627
7 10K R2 0603 1 LCSC UniOhm 0603WAF1002T5E C25804

Unfold

Project Attachments
Empty
Project Members

服务时间

周一至周五 9:00~18:00
  • 0755 - 2382 4495
  • 153 6159 2675

服务时间

周一至周五 9:00~18:00
  • 立创EDA微信号

    easyeda

  • QQ交流群

    664186054

  • 立创EDA公众号

    lceda-cn