You bought your Raspberry Pi, and managed to create a python script to turn on/off an LED via GPIO. Then you are wonder "How can I control the GPIO via a web page"? This is a common questions been asked repeatedly on Raspberry Pi StackExchange and Raspberry Pi user groups. Continue reading "How to control Raspberry Pi GPIO via http web server"
Author: Henry Cheung
How to plot cycling route using Google Maps API and Flask web framework
Other than tinkering electronics hardware and computer programming, I spend a lot of time on cycling, this article combines my cycling hobby with my programming skill and talk about how to plot cycling route using Google Map API and Python Flask web framework. Continue reading "How to plot cycling route using Google Maps API and Flask web framework"
Add Syntax Highlight to WordPress Blog
If you are a blogger and a programmer, the chances are that you will often shows some programming code on your blog. The codes that you shared may not be syntax-highlighted like what you see on your favourite text editor or IDE, but it is easy to add syntax highlight to your WordPress blog using Highlight.js (hljs). Continue reading "Add Syntax Highlight to WordPress Blog"
What is GoogleSoftwareUpdate.app on my Mac?
I never know there is a software called Google Software Update that is installed in my Mac without my knowledge and sending data back to google more frequent than it is necessary until a couple of days ago. Google Software Update is not a malware, but it behaves like a one. Continue reading "What is GoogleSoftwareUpdate.app on my Mac?"
How to create Arduino Library from Arduino Sketch
On previous article, I wrote an Arduino sketch for interfacing LCD 5110 display module with Arduino, it is not an Arduino library that can be distributed and share with others yet. In this article, I will explain how to create an Arduino library in 6 easy steps. Continue reading "How to create Arduino Library from Arduino Sketch"
How to use LCD 5110 (PCD 8544) with Raspberry Pi
In this article, I will briefly explain on how to create a Python class library to interface with LCD 5110 display module and shares the common APIs with the Arduino LCD5110 library that I previously created. Continue reading "How to use LCD 5110 (PCD 8544) with Raspberry Pi"
How to use LCD 5110 (PCD 8544) with Arduino
LCD 5110 (a.k.a. Nokia 5110 or PCD8544) display is a commonly available LCD module with SPI interface, by writing our own LCD driver based on its data sheet, we could learn a lot about how the LCD module works and how to write SPI program and save a lot of SRAM memory. Continue reading "How to use LCD 5110 (PCD 8544) with Arduino"
DS18B20 data analysis using Pandas
I wrote about how to collect data from DS18B20 temperature sensor with Raspberry Pi a few months ago, and this is an article on how to do some basic data analysis using Python with the collected DS18B20 temperature sensor data. Continue reading "DS18B20 data analysis using Pandas"
DS18B20 temperature sensor data logger
DS18B20 is a temperature sensor which communicates over a 1-Wire bus that by definition requires only one data line for communication with a host controller. I like DS18B20 as compare to other popular low cost temperature sensors for its accuracy and reliability. According to the DS18B20 data sheet, DS18B20 provides a digital Celsius temperature output with an accuracy of +/-0.5°C in the range of -10°C to +85°C. Continue reading "DS18B20 temperature sensor data logger"
WordPress backup in 3 simple steps
It is important to back up your WordPress site and the associated database, and it is often overlooked. Here is a way to back up your WordPress site and database in 3 simple steps, and no plugin required. Continue reading "WordPress backup in 3 simple steps"