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-controller

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

android-app/README.md

# Mohan Glow Studio Android App

Mohan Glow Studio is the full Android remote for the ESP8266 RGB controller. It talks directly to `http://192.168.4.1`, so it works without internet and avoids the browser restriction that blocks microphone access on local HTTP pages.

## Main controls

- Large color wheel, quick colors, brightness, power, sleep timer, built-in scenes, and saved personal scenes.
- 23 light effects: rainbow, breathe, heartbeat, candle, fire, lightning, neon, ocean, aurora, lava, ice, sunset, pastel, cyberpunk, Halloween, Christmas, police, siren, party, glitch, meditation, and camera flash.
- Effect speed, smoothness, randomness, minimum glow, and custom three-color palette.
- Clap, music-beat, and volume-pulse modes with live meter, sensitivity, noise calibration, brightness, beat gap, light-on delay, and random/fixed colors.
- Tilt, shake, movement, face-down, proximity, room light, step, and rotation controls from the phone sensors.
- Camera color capture, daily wake/bedtime routine, refresh, and emergency off.

## Install and use

1. Upload `../firmware/WIFI_LIGHT_CONTROLLER/WIFI_LIGHT_CONTROLLER.ino` to the ESP8266.
2. Connect the Android phone to **Mohan Glow Studio** with password **makeitglow**.
3. If Android says the network has no internet, choose **Stay connected**.
4. Install `../releases/Mohan-Glow-Studio-v2.apk`. Android may ask you to allow installation from your file manager.
5. Open **Mohan Glow Studio**. Allow microphone access when using Reactive mode.

The app uses the phone camera app for color capture. Phone sensors vary by model, so unavailable sensors are ignored safely.

## Build from source

Open this folder in Android Studio and run the `app` configuration, or build from Terminal:

```text
./gradlew assembleDebug
```

The generated file is `app/build/outputs/apk/debug/app-debug.apk`.

## Hardware limitation

J2 drives a four-wire analog RGB strip. The whole strip changes together. Individual LED tails and chases require a separately wired WS2812B/SK6812-style addressable strip and different firmware.