Smart Home Gateway with PHPOC Black
August 2025
|Circuit Cellar
Part 2: Integrating Additional Sensors and Actuators
The PHP on Chip "Black," is a programmable IoT microcontroller board used to develop a prototype for a smart home gateway. In the second part of this two-part series, Raul enhances the base system by integrating light intensity and air quality sensors, along with two relays to control ambient lighting and an air ventilation fan. He also explores methods to connect remote nodes to the smart home gateway via Wi-Fi, expanding its control and monitoring capabilities.
In Part 1 of this article series (Circuit Cellar # 420, July, 2025) [1], we introduced the "PHP-on-Chip" (PHPOC) platform by implementing a simple temperature and relative humidity server, using the PHPOC "Black" board. The example provided handson experience configuring an external sensor with the board to obtain sensor readings, and setting up a web and WebSocket server to display those sensor readings on a monitoring webpage.
We examined with reasonable detail the HTML and JavaScript code served by the PHPOC board, which drives the webpage's dynamic content. We also examined the PHP code executing on the PHPOC board that reads the I2C AHT10 sensor and transmits the data periodically, using the WebSocket protocol to the web browser. With this straightforward example, we saw firsthand how the PHPOC platform seamlessly integrates embedded systems with web technologies, offering a highly adaptable IoT solution.
In Part 2 of this series, we will complete the development of this PHPOC-based smart home gateway by incorporating an I2C light intensity sensor, an analog air quality sensor, and two relays to control ambient lighting and an air ventilation fan. We will also briefly explore how remote nodes can connect to the smart home gateway via Wi-Fi to enhance its control and monitoring capabilities.

هذه القصة من طبعة August 2025 من Circuit Cellar.
اشترك في Magzter GOLD للوصول إلى آلاف القصص المتميزة المنسقة، وأكثر من 9000 مجلة وصحيفة.
هل أنت مشترك بالفعل؟ تسجيل الدخول
المزيد من القصص من Circuit Cellar
Circuit Cellar
The Future of Sensors in Safety Systems Sensing the Stop
How Magnetic Sensors Are Enabling the Next Generation of Braking Systems
5 mins
December 2025
Circuit Cellar
Alif Semiconductor Elevates Generative AI at the Edge with New Support for ExecuTorch Runtime in Its Ensemble MCUs
Alif Semiconductor, the leading global supplier of secure, connected, power efficient Artificial Intelligence and Machine Learning (AI/ML) microcontrollers (MCUs) and fusion processors, announced that developers can now use the ExecuTorch Runtime, a quantization extension of the popular PyTorch ML framework, for AI applications built to run on its Ensemble E4/E6/E8 series of MCUs and fusion processors.
1 min
December 2025
Circuit Cellar
Encrypted MQTT Protocol for Critical Sectors
Mechanisms, Challenges, and Best Practices
3 mins
December 2025
Circuit Cellar
Datasheet: Small Size, Big Power
Smaller Microcontrollers Bring New Possibilities
9 mins
December 2025
Circuit Cellar
Analog Devices Launches ADI Power Studio and New Web-Based Tools
Analog Devices, Inc. (ADI), a global semiconductor leader, announced the launch of ADI Power Studio, a comprehensive family of products that offers advanced modeling, component recommendations, and efficiency analysis with simulation.
1 mins
December 2025
Circuit Cellar
Compact IBR300 2.5" SBC Powered by NXP i.MX 93 from IBASE
IBASE Technology, Inc., a leading provider of rugged embedded computing platforms, announced the release of the IBR300, a 2.5\" RISC-based single board computer (SBC) powered by the NXP i.MX 93 processor with dualcore ARM Cortex-A55 (up to 1.7GHz) and a Cortex-M33 MCU.
1 min
December 2025
Circuit Cellar
Sensors in the Spotlight
The Next Decade of Embedded Sensor Systems
12 mins
December 2025
Circuit Cellar
Bob's Wrap Up
In Bob's last article with Circuit Cellar, he attempts to wrap up a career of more than 50 years as an embedded systems engineer and 14 years with Circuit Cellar. He looks at each of his 58 articles by category and provides some recommendations for his fellow engineers.
7 mins
December 2025
Circuit Cellar
Designing Embedded Software Architectures That Last
I've reviewed hundreds of firmware projects over the years, and one thing always stands out: the most successful projects have a clear, deliberate architecture.
10 mins
December 2025
Circuit Cellar
Broadcom Introduces Industry's First Wi-Fi 8 Silicon Ecosystem Powering the AI Era
Broadcom, Inc. unveiled the first Wi-Fi 8 silicon solutions for broadband wireless, targeting residential gateways, enterprise access points, and smart mobile clients.
1 mins
December 2025
Listen
Translate
Change font size

