Intentar ORO - Gratis

Smart Home Gateway with PHPOC Black Part 1: Temperature and Humidity Server

Circuit Cellar

|

July 2025

The PHP on Chip Black is a programmable IoT MCU board. In this article series, Raul uses it to develop a smart home gateway prototype.

- By Raul Alvarez-Torrico

Smart Home Gateway with PHPOC Black Part 1: Temperature and Humidity Server

In Part 1, he focuses on its integrated web and WebSocket server capabilities. By leveraging the PHPOC platform's PHP-inspired language and robust IoT features, he creates a basic server that interfaces with an AHT10 sensor to monitor temperature and humidity, displaying real-time data on a dynamic webpage.

PHP on Chip (PHPOC) is a PHP-inspired dialect tailored for embedded systems. It supports a wide range of network protocols, incorporating robust security features such as authentication and encryption algorithms. The board comes with an integrated web server and WebSocket server, enabling the creation of real-time IoT solutions for monitoring and control. It offers versatile interfacing options for external sensors and actuators through digital input/ output (I/O), SPI, I2C, UART, and analog inputs, complemented by onboard timers/ counters and a real-time clock.

The gateway we will implement connects to local sensors and actuators, while also linking via Wi-Fi to remote nodes, enhancing its monitoring and control reach. It hosts a web-based user interface to interact with the system.

The PHPOC Black is ideal for web developers familiar with PHP but new to embedded programming, as well as for embedded engineers and hobbyists who are eager to explore PHP in a microcontroller context.

In this article series, I'll demonstrate the development of a smart home gateway prototype using the PHPOC Black. Through this project, I'll introduce the PHPOC language along with HTML and JavaScript to enthusiasts in the latter group, even if they lack prior web server programming experience. To follow along, you'll need basic experience with embedded systems development in C/C++, using Arduino, PIC, ARM, or similar platforms.

THE PHPOC PLATFORM

MÁS HISTORIAS DE Circuit Cellar

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

Circuit Cellar

Circuit Cellar

GD32 MCU Family Expands High-Performance Portfolio with New GD32F503/505 Series MCU

GigaDevice, a leading semiconductor company specializing in Flash memory, 32-bit microcontrollers (MCUs), sensors, and analog products, announced the official launch of the GD32F503/505 series of high-performance 32-bit MCUs, expanding its product range based on the ARM Cortex-M33 core.

time to read

1 mins

December 2025

Listen

Translate

Share

-
+

Change font size