Facebook Pixel Smart Home Gateway with PHPOC Black Part 1: Temperature and Humidity Server | Circuit Cellar - education - Read this story on Magzter.com

Try GOLD - Free

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

MORE STORIES FROM Circuit Cellar

Circuit Cellar

Circuit Cellar

Vishay Intertechnology Automotive-Grade Optocouplers Deliver High Isolation Voltage Ratings and Distance for EVs and Solar Inverters

Vishay Intertechnology, Inc. introduced two new Automotive-Grade optocouplers with phototransistor output in a widebody package featuring a comparative tracking index (CTI) of 600.

time to read

1 min

July 2026

Circuit Cellar

Circuit Cellar

WWVB Timecode Generator A Tool for Testing Radio-Controlled Clocks

In this article, Robert describes how he built a timecode generator that provides simulated code from WWVB, a radio station operated by the National Institute of Standards and Technology, which is used to synchronize millions of radio-controlled clocks.

time to read

16 mins

July 2026

Circuit Cellar

Circuit Cellar

MCUs at the Heart of the Edge Modern MCUs Go Beyond Simple Process Control

Microcontroller Units (MCUs) are the power at the heart of modern embedded systems.

time to read

2 mins

July 2026

Circuit Cellar

Circuit Cellar

650V ICeGaN Device for Automotive Applications from CGD Helps Increase EV Range

Cambridge GaN Devices (CGD) has developed a 650V GaN IC for automotive applications that addresses automakers' desires to improve inverter efficiency.

time to read

1 min

July 2026

Circuit Cellar

Circuit Cellar

Blues Latest IoT Modules Notecard for Skylo and Notecarrier CX

Satellite comms for IoT projects may seem the domain of enterprise customers, but new modules from Blues can bring satellites within reach even for small professional and research projects.

time to read

22 mins

July 2026

Circuit Cellar

Circuit Cellar

Rust: An Embedded Lightning Rod Nothing Is Quite as It Seems

Linus Torvald’s release of Linux 7.0 announced the finalization of Rust-related projects in the kernel: From now on, the programming language is to be considered a first-class member of Linux.

time to read

10 mins

July 2026

Circuit Cellar

Circuit Cellar

PLS' Debug and Trace Tool UDE Supports ST's Stellar P3E Automotive Microcontroller

The debug, trace, and test tool UDE Universal Debug Engine from PLS Programmierbare Logik & Systeme, has expanded its support to encompass the Stellar P3E.

time to read

2 mins

July 2026

Circuit Cellar

Circuit Cellar

The Tireless Intern: LLM Coding Agents for Embedded Work Using AI Speeds Security Tooling

This article discusses a case study of using a large language model (LLM) to develop a tool for embedded security, that would have otherwise taken several weeks (or months) of effort in a few days.

time to read

10 mins

July 2026

Circuit Cellar

Circuit Cellar

IoT Infrastructure: On-Premises Deployment or Cloud Solution?

Designing an IoT system is not only about sensors and dashboards.

time to read

5 mins

July 2026

Circuit Cellar

Circuit Cellar

Signal-to-Noise Ratio for Voice Activity Detection Devices

Users needs to be able to give AI glasses voice commands and be sure the device is only picking up their speech, not other sounds.

time to read

4 mins

July 2026

Listen

Translate

Share

-
+

Change font size