mohan-bee/light-controller
This code defines the hardware sections and symbols for a PCB involving USB power, voltage regulation, ESP12F module, RGB outputs, I2C sensors, and debug points, along with rendering labels for test points.
- Version
- 1.0.30
- License
- unset
- Stars
- 2
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone mohan-bee/light-controller # download the package files into ./light-controller
tsci add mohan-bee/light-controller # add it to your project as @tsci/mohan-bee.light-controllerIn a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.
docs/HOW_TO_PROGRAM.md
# How to Program the ESP8266
The USB-C connector powers the board, but it does not carry programming data. To upload a program, use an external **3.3 V USB-to-UART adapter**.
## What you need
- The light-controller board
- A USB-C power supply and cable
- A 3.3 V USB-to-UART adapter
- Three jumper wires
- Arduino IDE
Do not use 5 V UART signals. The ESP8266 pins work at 3.3 V.
## Connect the programmer
Power the board through USB-C. Then connect the USB-to-UART adapter:
```text
USB-to-UART adapter Light-controller board
TX -> RX
RX -> TX
GND -> GND
VCC -> Do not connect
```
TX and RX are crossed because one device sends data to the other device's receiving pin.
The board receives its power from USB-C, so leave the adapter's VCC or power pin disconnected.
## Prepare Arduino IDE
1. Install Arduino IDE.
2. Install the ESP8266 board package using Arduino IDE's Boards Manager.
3. Open [`WIFI_LIGHT_CONTROLLER.ino`](../firmware/WIFI_LIGHT_CONTROLLER/WIFI_LIGHT_CONTROLLER.ino).
5. Select **Generic ESP8266 Module** as the board.
6. Select the serial port belonging to your USB-to-UART adapter.
## Put the ESP8266 into programming mode
1. Hold down **BOOT**.
2. Press and release **RESET**.
3. Release **BOOT**.
The ESP8266 is now waiting for a firmware upload.
## Upload the program
1. Click **Upload** in Arduino IDE.
2. Wait for the upload to finish.
3. Press **RESET** once to start the new program.
The onboard RGB LED should briefly show red, green, and blue. This confirms that the ESP8266 is running the sample program and that all three RGB channels work.
## Open the Wi-Fi control page
1. On your phone, open Wi-Fi settings.
2. Connect to **Mohan Glow Studio**.
3. Enter the password **makeitglow**.
4. If the page does not open automatically, visit **http://192.168.4.1**.
You can now use the color wheel, brightness control, effects, speed control, and sleep timer. The onboard RGB LED and a four-wire strip connected to J2 show the same output.
## If uploading fails
- Confirm that adapter TX goes to board RX.
- Confirm that adapter RX goes to board TX.
- Confirm that both grounds are connected.
- Confirm that the adapter uses 3.3 V UART signals.
- Repeat the BOOT and RESET sequence before trying again.
- Confirm that the correct serial port is selected.
- Leave the adapter's VCC pin disconnected.