Nettigo Air Monitor 0.3 I2C RGB LED Bar

9 months ago 214
  • 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 I2C 5V J1 NETTIGO XH2.54-4P 1 210S-1*4P L=11.6MMGold-plated black Ckmtw LCSC C124378
2 ATTINY84A-SSU U1 SOIC-14_L8.7-W3.9-P1.27-LS6.0-BL 1 ATTINY84A-SSU MICROCHIP LCSC C144333
3 Header-Male-2.54_2x3 J2 HDR-TH_6PIN-V-ROW2-COL3-MALE-PITCH2.54 1 Header-Male-2.54_2x3 BOOMELE LCSC C65114
4 1uF C1 0603 1 CL10A105KB8NNNC SAMSUNG LCSC C15849
5 WS2812E LED1,LED2,LED3,LED4,LED5,LED6,LED7,LED8,LED9,LED10 LED-SMD_4P-L5.0-W5.0-BL 10 WS2812E Worldsemi LCSC C139127

Attachments

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

Comments (0)

goToTop
你现在访问的是EasyEDA海外版,使用建立访问速度更快的国内版 https://lceda.cn(需要重新注册)
如果需要转移工程请在个人中心 - 工程 - 工程高级设置 - 下载工程,下载后在https://lceda.cn/editor 打开保存即可。
有问题联系QQ 3001956291 不再提醒
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
We use cookies to offer you a better experience. Detailed information on the use of cookies on this website is provided in our Privacy Policy. By using this site, you consent to the use of our cookies.