Rain Gauge Project – Raspberry Pi

Introduction

There are several reasons to move the project code to the RPi:

  • The capability to timestamp the log entries
  • File I/O
  • Internet connectivity

The first step in this phase is to convert the working Arduino code, into code for the Pi, which can be quite straightforward with C|C++ and the WiringPi library. The code can be found here, but the following discusses the changes from the Arduino code.

Discussion

The first thing I discovered is that the GPIO interrupt is not as responsive as the Arduino because the processor is busy sharing other computer tasks.