Tag archive for: Internet of things

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 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.

Why buy the Raspberry Pi Zero W?

When you have seen the Raspberry Pi 4 with 4GB ram, you may wonder why should we even be bothered with the earlier versions.

If you have been following Seeed Studio, you may have heard that they had included Raspberry Pi Zero W in their product catalogue.

I welcome this move from Seeed Studio with open arms.

Since I live in Singapore, I will be able to shave hefty shipping costs getting the Pi Zero W from Seeed Studio instead of vendors from the west. If you are staying in countries that are nearer to Guangzhou, then the real cost of your Pi Zero W will be much closer to the 10 USD price tag.

But why buy the Raspberry Pi Zero W?

In case you are thinking of whether to trade 10-ish bucks for one, here are some reasons why you should have a look at the Raspberry Pi Zero W for your next Raspberry Pi project.

A review of the Raspberry Pi 4 Model B from a not-so-early adopter

When a single board computer has 4GB of RAM, you can use it as a capable IoT gateway or desktop computing. In addition to that, the Raspberry Pi 4 Model B maintains the same dimensions as its credit card sized predecessor, the Pi 3B+.

Although there are several single board computers which provided 4GB of ram, they are priced more than the US$55 price tag. Given that, the Raspberry Pi 4 Model 4 with 4GB of ram is a very attractive offering.

Raspberry Pi 4 Computer Model B 4GB edition in box

In case you are wondering whether you should buy the Raspberry Pi 4 Model B, read on for more perspectives.

How to write a C# program to communicate with an ESP32 development board via Bluetooth Serial

Coupled with Bluetooth Serial and GPIO pins, ESP32 can augment a Windows machine with the ability to read from sensors.

So with an ESP32 development board, you can turn your old Windows machine into an IOT gateway that can sense its operating environment.

Given these points, let us look at how we can write a C# program to communicate with an ESP32 development board via Bluetooth Serial.

How to use C# to read sensor data from Arduino or ESPx via serial connection

When you have an old Windows machine, you can convert it into an IOT gateway.

So how can we read sensor data with our windows machine? Since our windows machine probably do not have GPIO pins, we can read sensor data via an intermediary device.

For example, we can first attach an Arduino Uno or ESP32 development board as the intermediary device to our windows machine via USB. Given that connection, the intermediary device will read the sensor data and send those values via serial. On our Windows machine, we can then run a program to read those values from serial.

So how can we read sensor data from Arduino or ESPx via serial connection on our Windows machine? Since C# is a programming language for creating windows application, we can use C# to read those data from serial.