This project is a smart room controller designed for users who prefer an automated and customizable environment. The system was inspired by the "Ned the Needy Room Controller" project, which influenced both the design and functionality. This version features both automatic and manual operation modes to allow flexibility based on user preference.
System OverviewThe controller is built around the Particle Photon 2 microcontroller and integrates with Philips Hue lights. It uses rotary encoders and push buttons for manual input, while environmental sensors provide data for automatic control. The Photon 2 communicates with the connected devices to regulate lighting and temperature according to user-defined or sensor-based parameters.
FeaturesDual Operation Modes: The system supports both automatic and manual modes.
- Dual Operation Modes: The system supports both automatic and manual modes.
Sensor Integration: Includes a photodiode for light detection and a BME sensor for temperature measurement.
- Sensor Integration: Includes a photodiode for light detection and a BME sensor for temperature measurement.
Device Control:
The Photon 2 controls a lamp and a fan via connected relays.
- The Photon 2 controls a lamp and a fan via connected relays.
Two buttons toggle the fan and lamp in manual mode.
- Two buttons toggle the fan and lamp in manual mode.
A third button enables or disables automatic mode.
- A third button enables or disables automatic mode.
- Device Control:The Photon 2 controls a lamp and a fan via connected relays.Two buttons toggle the fan and lamp in manual mode.A third button enables or disables automatic mode.
Rotary Encoders:
One encoder adjusts Hue light brightness and color.
- One encoder adjusts Hue light brightness and color.
The second encoder sets the desired temperature.
- The second encoder sets the desired temperature.
- Rotary Encoders:One encoder adjusts Hue light brightness and color.The second encoder sets the desired temperature.
OLED Display: Displays both the current temperature (measured by the BME sensor) and the user-defined target temperature.
- OLED Display: Displays both the current temperature (measured by the BME sensor) and the user-defined target temperature.
In automatic mode, the controller continuously monitors environmental conditions and adjusts devices accordingly.
If the measured temperature exceeds the user-defined target temperature, the fan is activated to cool the room.
- If the measured temperature exceeds the user-defined target temperature, the fan is activated to cool the room.
If the photodiode detects sufficient ambient light, the Hue lights and lamp are automatically turned off to reduce power consumption.
- If the photodiode detects sufficient ambient light, the Hue lights and lamp are automatically turned off to reduce power consumption.
When manual mode is active, the system allows direct user control:
The buttons toggle the lamp and fan manually.
- The buttons toggle the lamp and fan manually.
The encoders modify Hue light settings and the target temperature.
- The encoders modify Hue light settings and the target temperature.
Pressing an encoder button turns the lights off.
- Pressing an encoder button turns the lights off.
When automatic mode is enabled, all manual inputs (buttons and encoders) are disabled to prevent conflicting commands.
Design IntentThe goal of this project was to create an intelligent room management system that maintains optimal comfort without requiring constant user input. By combining environmental sensing, manual control, and automation logic, this design provides both convenience and energy efficiency.
















Comments