Passez à l'illimité avec Magzter GOLD

Passez à l'illimité avec Magzter GOLD

Obtenez un accès illimité à plus de 9 000 magazines, journaux et articles Premium pour seulement

$149.99
 
$74.99/Année
The Perfect Holiday Gift Gift Now

Smart Home Gateway with PHPOC Black

Circuit Cellar

|

August 2025

Part 2: Integrating Additional Sensors and Actuators

- By Raul Alvarez-Torrico

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.

image

PLUS D'HISTOIRES DE Circuit Cellar

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

time to read

5 mins

December 2025

Circuit Cellar

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.

time to read

1 min

December 2025

Circuit Cellar

Circuit Cellar

Encrypted MQTT Protocol for Critical Sectors

Mechanisms, Challenges, and Best Practices

time to read

3 mins

December 2025

Circuit Cellar

Circuit Cellar

Datasheet: Small Size, Big Power

Smaller Microcontrollers Bring New Possibilities

time to read

9 mins

December 2025

Circuit Cellar

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.

time to read

1 mins

December 2025

Circuit Cellar

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.

time to read

1 min

December 2025

Circuit Cellar

Circuit Cellar

Sensors in the Spotlight

The Next Decade of Embedded Sensor Systems

time to read

12 mins

December 2025

Circuit Cellar

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.

time to read

7 mins

December 2025

Circuit Cellar

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.

time to read

10 mins

December 2025

Circuit Cellar

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.

time to read

1 mins

December 2025

Listen

Translate

Share

-
+

Change font size

Holiday offer front
Holiday offer back