Quick References

As a constant learner, I get to touch upon many ideas in different areas. This category is for me to capture those ideas which I felt people may reference to get ahead of their tasks. Most of the time, I do come back to this section of my blog to remember what I had learnt in the past.

How to setup a Raspberry Pi LEMP server with Raspbian Buster Lite for running PHP applications

Many useful applications are written in PHP backed by MariaDB/MySQL for data persistency.

When you wondering what you can use a Raspberry Pi for, one way is to turn it into a LEMP server for hosting PHP applications.

With this in mind, let us look at how we can setup a Raspberry Pi LEMP server with Raspbian Buster Lite for running PHP applications.

How to change the hostname of your Raspberry Pi, running Raspbian, with raspi-config

When you deploy multiple Raspberry Pis in your house, it is a good practice to give each of them a unique hostname. Since the default hostname for Raspbian is raspberrypi, it will be easier to look for the IP address of a new Raspbian installation in this situation.

Given that, let us look at how you can change the hostname of your Raspberry Pi in Raspbian via the Raspberry Pi Software Configuration Tool (raspi-config).

How to read soil moisture level with Raspberry Pi and a YL-69/FC-28 moisture sensor

When I did a Raspberry Pi 4 Model B review, I got myself a Raspberry Pi 4 Model B. Therefore, the current Raspberry Pi 3 Model B+ that I have been using for validating Raspberry Pi ideas became available for another IoT project in the house.

So what should I do with my Raspberry Pi?

Since I have always wanted to build my own indoor herb garden, I plan to use it to help my plants grow well.

When I bought the LED Grow Lights, I am able to give my plants consistent lighting. Given that consistent lighting is solved, I can use my Raspberry Pi 3 to monitor soil moisture so that I can provide water my plants better.

Given these points, this is a proof of concept that I did to read soil moisture level with my Raspberry Pi and a YL-69/FC-28 moisture sensor.

How to use the MCP3008-I/P chip to help your Raspberry Pi read digital data from analog sensors

Although your Raspberry Pi is unable to read analog input out of the box, you can get a MCP3008 I/P ADC chip to help your Raspberry Pi do so.

MCP3008 IP ADC chip up close

When you connect a MCP3008 I/P chip to your Raspberry Pi, you can read up to 8 analog inputs with SPI.

Given these points, this post will show you how you can use the MCP3008 I/P chip to help your Raspberry Pi read digital data from analog sensors.

How to enable SPI master driver in Raspbian using raspi-config

Your Raspberry Pi has the ability to communicate with hardware using the Serial Peripheral Interface specification. However, this master driver is disabled by default.

If you want to use the SPI master driver to communicate with devices, then you will need to enable it.

Let’s look at how we can enable the SPI master driver using the Raspberry Pi Software Configuration Tool (raspi-config).

How to use Wise to receive your Amazon Affiliate earnings through direct deposit

As I had mentioned in easy and effective ways for programmers’ websites to earn money, I use Amazon Affiliate program to earn some commission fees for keeping this website running.

Given that, I am able to earn some cash to pay for some online courses and latest gadgets to enrich myself.

However, receiving your Amazon Affiliate earnings can be costly if your bank account is not eligible for direct deposit.

If you are looking for a fast and affordable way to receive your Amazon Affiliate earnings through direct deposit, this post will show you how to use Wise to receive your Amazon Affiliate earnings.

How to capture images in the dark with the Raspberry Pi Infrared Camera Module from Seeed Studio

When I wanted to keep tabs on my corridor, I built a Raspberry Pi Zero W surveillance camera with MotionEye and Raspbian Lite.

After a while, I make my Raspberry Pi Zero W see an ultra-wide view by using one of the Fish Eye lens from a Camera Lens kits that I received as a gift.

Since then, I am able to have a wide angle view of my corridor as long as I have a browser with an Internet connection.

However, the same setup will not work for checking on my plants in the kitchen. If I am to snap some pictures after my LED growth lights are switched off, I will definitely get pitch black images.

So what kind of camera should my plant surveillance setup use? In order to capture images in the dark, I should look for a camera without the Infrared Filter – a NoIR Camera.

With this in mind, I head over to Seeed Studio and got myself the Raspberry Pi Infrared Camera Module.

Since Seeed Studio had provided me with a voucher for this purchase, I am able to minimize the cost of producing this article.

Thank you Seeed Studio!

Given that, let’s see how we can capture images in the dark with the Raspberry Pi Infrared Camera Module.

How to use Python 3 virtual environments to run Python 3 applications on your Raspberry Pi

Whenever I am working on a Python 3 project, I will always use a Python 3 virtual environment for running that project. Therefore, I tend to do the same when it comes to .

If you are looking to build Python 3 applications to run on your Pi, then you may find this article useful for you.

How to host a static website on your Raspberry Pi with Nginx running on Raspbian Buster Lite

After you had understood HTML, CSS and JavaScript from The Web Developer Bootcamp, you can start to host a static website on an actual web server.

If you had been the kind of fan who buy newly-launched Raspberry Pis, then you may find some lying around the house collecting dust.

In this situation, why not use one of your Raspberry Pi to host something that you had just learnt?

Given that, let’s look at how you can host a static website on your Raspberry Pi with Nginx running on Raspbian Buster Lite.