कोशिश गोल्ड - मुक्त
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.

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
यह कहानी Circuit Cellar के July 2025 संस्करण से ली गई है।
हजारों चुनिंदा प्रीमियम कहानियों और 9,500 से अधिक पत्रिकाओं और समाचार पत्रों तक पहुंचने के लिए मैगज़्टर गोल्ड की सदस्यता लें।
क्या आप पहले से ही ग्राहक हैं? साइन इन करें
Circuit Cellar से और कहानियाँ

Circuit Cellar
Bourns Announces New Micro Encoders Offering High Reliability in a Compact Design
Bourns, Inc., a leading manufacturer and supplier of electronic components for power, protection, and sensing solutions, announced its PEC04 Series 4mm Incremental Micro Encoder, its PEC05 Series 5mm Incremental Micro Encoder and its Model PEC06, a 6mm Incremental Micro Encoder. Bourns new micro encoders provide position and speed information essential for control functions in a broad variety of electronic applications.
1 min
September 2025

Circuit Cellar
Harwin Brings Through-Hole Retention to Industrial Kontrol Range of Connectors
Harwin has extended its Kontrol lineup of connectors for industrial and embedded applications, adding through-hole retention to further enhance resilience and board-level reliability in harsh operational environments. Harwin has added 72 new products to the industrial connector family, extending the range by 48%.
1 min
September 2025

Circuit Cellar
Renesas Introduces 64-bit RZ/G3E MPU for High-Performance HMI Systems Requiring AI Acceleration and Edge Computing
Renesas Electronics Corp., a premier supplier of advanced semiconductor solutions, announced the launch of its new 64-bit RZ/G3E microprocessor (MPU), a general-purpose device optimized for high-performance Human Machine Interface (HMI) applications.
1 mins
September 2025

Circuit Cellar
Build a Follower Counter for Social Media
See Real-Time Metrics Using an Arduino Yún
20 mins
September 2025

Circuit Cellar
Nordic Semiconductor Announces Highly Integrated nPM3104 Power Management IC With Support For Small-Size Battery Products
Nordic Semiconductor announced the new nPM1304 Power Management IC (PMIC). Building on the success formula of the well-established nPM1300, the nPM1304 offers the ideal solution for space-constrained applications that require small batteries.
2 mins
September 2025

Circuit Cellar
Chaos on Your Desktop
Build a Color-Pulsing Light Sphere Using a PIC or Raspberry Pi Pico MCU
9 mins
September 2025

Circuit Cellar
NXP’s New Battery Cell Control IC Family Advances New Energy Solutions
NXP Semiconductors announced its new 18-channel Li-ion battery cell controller, the BMx7318/7518 IC family, designed for electric vehicle (EV) high-voltage battery management systems (HVBMS), industrial energy storage systems (ESS) and 48V battery management systems.
1 mins
September 2025

Circuit Cellar
Autonomous Mobile Robots
Robots Moving to Their Own Beat
12 mins
September 2025

Circuit Cellar
The DVM on Your Wrist
A Wireless Link Between A DVM and a Smart Watch
18 mins
September 2025

Circuit Cellar
Control Your Local IoT Network from the Cloud
Secrets of “Cloud Relaying” Revealed
5 mins
September 2025
Listen
Translate
Change font size