Skip to content
Adaptive AgroTech NetworkUniversity of Southern Denmark · SDU Drone Center
Book2026
← Raspberry Pi Robotics LaboratoryChapter 01

Prepare the Raspberry Pi

InstructorDr. Redmond R. Shamshiri
AffiliationAssistant Professor of Robotics · University of Southern Denmark (SDU)
Study time35 minutes
Study companion. These editable notes, worked examples and exercises supplement the source material. They are not a verbatim video transcript or a reproduction of the book.

Study Prepare the Raspberry Pi. Use the accompanying model, numerical example and practical task to connect the topic to a measurable engineering result. Notes are original supplemental material, not a transcript.

Learning Objectives

  • Explain the role of processes, services and reliable data acquisition in the engineering system.
  • Calculate the worked quantity with consistent units.
  • Design a measurement that can reveal an implementation failure.

Study guide

Original companion notes. These notes support the topic of this lesson. They are not a transcript or a claim about the exact contents, hardware settings or examples in the video.

Lesson focus: Prepare the Raspberry Pi

Define the input, measured output, units and pass/fail condition before running the experiment.

Processes, services and reliable data acquisition

A working terminal command becomes a dependable embedded function only after startup, permissions, logging, failure and restart behavior are defined. Separate the acquisition process from the web interface so a slow client cannot block sampling.

Model, units and assumptions

\[N=f_sT,\qquad S\approx N B\]

N is records, fs is acquisition rate, T is duration in seconds, and B is average stored bytes per record including delimiters. Filesystem overhead and log rotation need additional allowance.

Worked engineering example

A 10 Hz logger running for 24 h records 864,000 samples. At 100 bytes/record, payload storage is approximately 86.4 MB in decimal units. Repeated retries or verbose logs can dominate this budget.

Practical task and evidence

Apply the following procedure to the topic of this lesson: Prepare the Raspberry Pi.

  • Run the service as a dedicated unprivileged user with the required device permissions.
  • Record startup, clean shutdown and a deliberate sensor-disconnect event.
  • Reboot and inspect service state and persisted data without manually starting the process.

Submit: a diagram or interface table, a short timestamped dataset, the calculation with units, and a paragraph explaining the largest observed limitation.

Check your understanding

Question. A 2 Hz JSONL logger stores 250 bytes/record for 8 h. Estimate payload storage.

Show worked answer

57,600 records × 250 bytes = 14.4 MB, excluding filesystem and auxiliary logs.

Extension. Change one assumption in the model and explain which measurement would reveal that it no longer holds.

Summary

Processes, services and reliable data acquisition: keep units, assumptions and timing explicit. Check the numerical model against an independent observation before using it in a larger system.

Suggested Reading & Resources

  • Reading
    Book source: Raspberry Pi Robotics Laboratory

    Primary documentation or original technical reference; check the version used in your lab.

    Open ↗
  • Reading
    Raspberry Pi official documentation

    Primary documentation or original technical reference; check the version used in your lab.

    Open ↗
  • Reading
    systemd service documentation

    Primary documentation or original technical reference; check the version used in your lab.

    Open ↗