Skip to the content
2 layers83 × 31.5 mmTwitch LED Bot, the printed circuit board in 3D

Este projeto permite que você controle um strip de LED NeoPixel via comandos no chat da Twitch, utilizando a placa ESP8266.

Size
83 × 31.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
32
Nets
42
Pads
111
Tracks, vias
279, 13
Pours
1
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
25 May 2023
Updated
13 May 2025

Overview

Twitch LED Bot is an open-source printed circuit board by renatocampoy, from the renatocampoy/Twitch-LED-Bot repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 83 × 31.5 mm with 32 parts on 42 nets, routed with 279 tracks and 13 vias.

It is built around the ESP-12F, CH340G and AMS1117-3.3, with the BC847 and USB4105-GF-A among its other parts. Its parts include 7 resistors, 5 capacitors, 3 ICs, 3 diodes and 2 transistors. It belongs with the ESP8266 boards of this library.

Main components

5

README

README.md

Twitch LED Bot - ESP8266

Criado por Eng. Renato Campoy.

Este projeto permite que você controle um strip de LED NeoPixel via comandos no chat da Twitch, utilizando a placa ESP8266. O código é escrito em C++ e utiliza a biblioteca WiFiManager para gerenciar a conexão Wi-Fi e a biblioteca Adafruit NeoPixel para controlar o strip de LED.

Token da Twitch

Para usar este código, você precisará de um token de OAuth da Twitch. Aqui estão as etapas para obtê-lo:

  1. Acesse https://twitchapps.com/tmi/
  2. Clique em 'Connect' e autorize o acesso ao seu canal.
  3. Copie o token gerado. Este é o seu token OAuth, que permite que o bot envie mensagens ao seu canal.

Tenha em mente que este token é equivalente à senha da sua conta da Twitch. Não compartilhe com ninguém.

Dependências

Você precisará das seguintes bibliotecas para usar este projeto:

  • ESP8266WiFi
  • DNSServer
  • ESP8266WebServer
  • WiFiManager
  • EEPROM
  • Adafruit_NeoPixel

Estas bibliotecas podem ser instaladas através do Gerenciador de Bibliotecas do Arduino.

Instalação

  1. Clone este repositório.
  2. Abra o arquivo .ino no Arduino IDE.
  3. Carregue o código para o ESP8266.

Configuração

  1. Ao ligar o ESP, uma rede wifi com o nome LEDBOT_AP aparecerá, conecte-se a ela.
  2. Ao conectar, aparecerá uma pagina onde você deve clicar em "Configure WIFI"
  3. Clique na sua REDE, entre com a senha.
  4. Em "Nick" é o seu usuário da Twitch tudo em minúsculo
  5. Em Token você vai colocar o token gerado no tópico "Token da Twitch"

Uso

Uma vez que o código esteja funcionando, você poderá enviar comandos para o chat da Twitch para controlar a iluminação do strip de LED. Aqui estão alguns exemplos de comandos que você pode usar:

  • !led vermelho: muda a cor do LED para vermelho.
  • !led #ff00ff: muda a cor do LED para o valor hexadecimal fornecido (neste caso, magenta).
  • !led cores: lista todas as cores disponíveis.

Além disso, o bot responde a comandos enviados via interface serial para reiniciar o ESP ou redefinir as configurações de WiFi ou Twitch. (vide código)

Contribuição

Este é um projeto open-source. Se tiver alguma sugestão ou melhoria, por favor, faça um fork do repositório e envie uma pull request.

Problemas Conhecidos

Atualmente, o bot não responde a erros do servidor da Twitch. Se você experimentar algum problema, tente reiniciar o ESP.

Licença

Este projeto está licenciado sob a Licença GPLv3 - veja o arquivo LICENSE para mais detalhes.

Parts

32
QtyValueFootprintReferences
410KResistor_SMD:R_0805_2012MetricR1, R2, R6, R7
3470Resistor_SMD:R_0805_2012MetricR3, R4, R5
210uCapacitor_SMD:C_0805_2012MetricC1, C4
222pCapacitor_SMD:C_0805_2012MetricC3, C5
2BC847Package_TO_SOT_SMD:SOT-23Q1, Q2
2GNDMountingHole:MountingHole_2.1mmH4, H5
2VCC +5MountingHole:MountingHole_2.1mmH2, H3
1100uCapacitor_SMD:C_0805_2012MetricC2
112MHzCrystal:Crystal_SMD_2520-4Pin_2.5x2.0mmY1
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U1
1CH340GPackage_SO:SOIC-16_3.9x9.9mm_P1.27mmU2
1ESP-12FRF_Module:ESP-12EU3
1LED DATAMountingHole:MountingHole_2.1mmH1
1PWLED_SMD:LED_0805_2012MetricD3
1RXLED_SMD:LED_0805_2012MetricD1
1ResetButton_Switch_SMD:SW_Push_SPST_NO_Alps_SKRKSW1
1TXLED_SMD:LED_0805_2012MetricD2
1USB4105-GF-AUSB4105-GF-A 2:GCT_USB4105-GF-AJ1

The 28 most common of 32 parts.

Similar boards

  • 2 layers55.6 × 55.8 mmHikari, the printed circuit board in 3D

    Hikari

    goodmicros/hikari

    wled party beacon

    58 parts6
  • 2 layers44 × 26 mmWiFi Addon, the printed circuit board in 3D

    WiFi Addon

    kitspace-test-repos/kicad6-file-collection

    33 partsMIT
  • 2 layers51.5 × 76.5 mmEsp rfm, the printed circuit board in 3D

    Esp rfm

    Phunkafizer/RFM-gateway

    Hard- and software for the RFM-gateway, a universal platform for integrating sub-GHz radio into your WiFi network

    47 parts1MIT
  • 2 layers33 × 25 mmIM350 AM550 5V V3.0, the printed circuit board in 3D

    IM350 AM550 5V V3.0

    greenMikeEU/shrdzm

    SHRDZM (just a name, not an acronym) is an ESP8285/ESP8266 based sensor and actor integration platform.

    14 partsGPL-3.0
  • 2 layers70 × 100 mmIot badge-433, the printed circuit board in 3D

    Iot badge-433

    galopago/iot-badge-legacy

    Electronic conference badge for programming conventions, hacking events, etc.

    77 parts4
  • 2 layers67.3 × 99.7 mmSensor, the printed circuit board in 3D

    Sensor

    oakayasaroglu/esp32d_i2c

    esp32d based i2c pcb

    40 parts1
  • 2 layers67 × 96 mmTo the moon, the printed circuit board in 3D

    To the moon

    Krakert/To-the-moon

    63 parts
  • 4 layers63.1 × 49.8 mmIthowifi 4l, the printed circuit board in 3D

    Ithowifi 4l

    arjenhiemstra/ithowifi_hardware

    46 parts2

Questions

How big is the Twitch LED Bot PCB?

It measures 83 × 31.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Twitch LED Bot use?

32 parts, built around the ESP-12F, CH340G, AMS1117-3.3 and BC847. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Twitch LED Bot KiCad files?

From the renatocampoy/Twitch-LED-Bot repository on GitHub, at the commit this page was made from: the board is Twitch-Led-Bot.kicad_pcb and its schematic Twitch-Led-Bot.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Twitch LED Bot design in my own project?

Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).