License

TAPR Open Hardware License

Tags
Recommend Projects

Nettigo Air Monitor 0.3 I2C RGB LED Bar

1 year ago 495
  • Description
  • Documents
  • BOM
  • Attachments
  • Members
  • Comments

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

Nettigo Air Monitor I2C RGB LED Bar

BOM

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

Attachments

None
Success
The owner does not allow comments in this project now

Comments (0)

goToTop
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow