

Twitch LED Bot
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
5ESP-12F
SMD,24x16mm-40℃~+85℃ -96dBm 15dBm 2.4GHz 3.3V 375mA 55mA PCB UART WIFI4 SMD,24x16mm WiFi Modules ROHSDOITWiFi ModulesCH340G
SOP-16-40℃~+85℃ 2Mbps 3.3V、5V USB 2.0 USB to UART SOP-16 USB Converters ROHSWCH (Nanjing Qinheng Microelectronics)USB ConvertersAMS1117-3.3
SOT-223-40℃~+125℃ 0.003%Vout 1 1.1V@(800mA) 15V 1A 3.3V 5mA 72dB@(120Hz) Fixed Over Current Protection、Short Circuit Protection、Thermal shutdown Positive SOT-223 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSAdvanced Monolithic SystemsVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsBC847
SOT-231 NPN 100MHz 100mA 100nA 110 200mW 45V 500mV 6V NPN SOT-23 Bipolar (BJT) ROHSShikuesBipolar (BJT)USB4105-GF-A
SMD-40℃~+85℃ 1 12P 48V 5A Black Female Surface Mount, Right Angle Type-C USB 2.0 SMD USB Connectors ROHSGlobal Connector Technology (GCT)USB Connectors
README
README.mdTwitch 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:
- Acesse https://twitchapps.com/tmi/
- Clique em 'Connect' e autorize o acesso ao seu canal.
- 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
- Clone este repositório.
- Abra o arquivo
.inono Arduino IDE. - Carregue o código para o ESP8266.
Configuração
- Ao ligar o ESP, uma rede wifi com o nome LEDBOT_AP aparecerá, conecte-se a ela.
- Ao conectar, aparecerá uma pagina onde você deve clicar em "Configure WIFI"
- Clique na sua REDE, entre com a senha.
- Em "Nick" é o seu usuário da Twitch tudo em minúsculo
- 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| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 10K | Resistor_SMD:R_0805_2012Metric | R1, R2, R6, R7 |
| 3 | 470 | Resistor_SMD:R_0805_2012Metric | R3, R4, R5 |
| 2 | 10u | Capacitor_SMD:C_0805_2012Metric | C1, C4 |
| 2 | 22p | Capacitor_SMD:C_0805_2012Metric | C3, C5 |
| 2 | BC847 | Package_TO_SOT_SMD:SOT-23 | Q1, Q2 |
| 2 | GND | MountingHole:MountingHole_2.1mm | H4, H5 |
| 2 | VCC +5 | MountingHole:MountingHole_2.1mm | H2, H3 |
| 1 | 100u | Capacitor_SMD:C_0805_2012Metric | C2 |
| 1 | 12MHz | Crystal:Crystal_SMD_2520-4Pin_2.5x2.0mm | Y1 |
| 1 | AMS1117-3.3 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U1 |
| 1 | CH340G | Package_SO:SOIC-16_3.9x9.9mm_P1.27mm | U2 |
| 1 | ESP-12F | RF_Module:ESP-12E | U3 |
| 1 | LED DATA | MountingHole:MountingHole_2.1mm | H1 |
| 1 | PW | LED_SMD:LED_0805_2012Metric | D3 |
| 1 | RX | LED_SMD:LED_0805_2012Metric | D1 |
| 1 | Reset | Button_Switch_SMD:SW_Push_SPST_NO_Alps_SKRK | SW1 |
| 1 | TX | LED_SMD:LED_0805_2012Metric | D2 |
| 1 | USB4105-GF-A | USB4105-GF-A 2:GCT_USB4105-GF-A | J1 |
The 28 most common of 32 parts.
Similar boards
- 2 layers55.6 × 55.8 mm

- 2 layers44 × 26 mm

- 2 layers51.5 × 76.5 mm

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 mm

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 mm

Iot badge-433
galopago/iot-badge-legacy
Electronic conference badge for programming conventions, hacking events, etc.
77 parts4 - 2 layers67.3 × 99.7 mm

- 2 layers67 × 96 mm

- 4 layers63.1 × 49.8 mm

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).