Home / Companies / PubNub / Blog / Post Details
Content Deep Dive

Raspberry Pi Smart House: Controlling Lights with PWM

Blog post from PubNub

Post Details
Company
Date Published
Author
Michael Carroll
Word Count
2,466
Company Posts That Month
7
Language
English
Hacker News Points
-
Post removed?
No
Summary

The tutorial outlines the process of building a Raspberry Pi-powered smart house using LEGO, with a focus on controlling LEDs remotely via a web UI. After covering the setup of temperature and humidity sensors and real-time data streaming in Part One, this second part delves into using Pulse Width Modulation (PWM) to adjust LED brightness and create a flickering effect to emulate a fireplace. It explains how to programmatically control LED brightness by adjusting the duty cycle and describes the creation of a simple web interface using JavaScript, PubNub, and HTML5 range inputs to remotely manage LED states. The tutorial emphasizes the use of software PWM for LED control without additional hardware and provides instructions for integrating the web UI with Raspberry Pi to achieve real-time LED adjustments. The complete source code is available on GitHub, allowing users to explore and customize their smart house projects further.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 8 143 39 18 -2%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.