# learnspacefaculty-bit/spacebot-kit architecture

> Architecture diagram of the GitHub repository learnspacefaculty-bit/spacebot-kit, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/learnspacefaculty-bit/spacebot-kit
- Repository: https://github.com/learnspacefaculty-bit/spacebot-kit

## Overview

Spacebot Rover Kit is a collection of Arduino Nano sketches and student notes for building and testing a line-following rover with an object-reading arm. The documented workflow is to open a sketch in the Arduino IDE, upload it to the Nano, and run it on the rover. The sketches cover individual component checks, an integrated parts test, basic line following, and the full mission; a separate challenge adds red-object dodging. Only README-level relationships are available, so sketch-to-hardware links reflect documented use, not inspected calls.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_component_tests["Component tests"]
  node_line_sensor_test["Line sensors"]
  node_motor_test["Motors"]
  node_ultrasonic_test["Ultrasonic"]
  node_colour_test["Colour sensor"]
  node_servo_test["Servo arm"]
  node_all_parts_test["All parts"]
end

subgraph group_rover_behaviors["Rover behaviors"]
  node_basic_follow["Basic line follow"]
  node_mission["Full mission"]
end

subgraph group_challenge["Challenge"]
  node_dodge_red["Dodge red"]
end

node_student(("Student"))
node_nano["Arduino Nano rover"]

node_student -->|"uploads sketch"| node_line_sensor_test
node_student -->|"uploads sketch"| node_motor_test
node_student -->|"uploads sketch"| node_ultrasonic_test
node_student -->|"uploads sketch"| node_colour_test
node_student -->|"uploads sketch"| node_servo_test
node_student -->|"uploads sketch"| node_all_parts_test
node_student -->|"uploads sketch"| node_basic_follow
node_student -->|"uploads sketch"| node_mission
node_student -->|"uploads sketch"| node_dodge_red
node_line_sensor_test -->|"runs on"| node_nano
node_motor_test -->|"runs on"| node_nano
node_ultrasonic_test -->|"runs on"| node_nano
node_colour_test -->|"runs on"| node_nano
node_servo_test -->|"runs on"| node_nano
node_all_parts_test -->|"runs on"| node_nano
node_basic_follow -->|"runs on"| node_nano
node_mission -->|"runs on"| node_nano
node_dodge_red -->|"runs on"| node_nano

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_line_sensor_test,node_motor_test,node_ultrasonic_test,node_colour_test,node_servo_test,node_all_parts_test toneBlue
class node_basic_follow,node_mission toneAmber
class node_dodge_red toneMint
class node_student,node_nano toneIndigo
```

## Components

### Component tests

- **Line sensors**
- **Motors**
- **Ultrasonic**
- **Colour sensor**
- **Servo arm**
- **All parts**

### Rover behaviors

- **Basic line follow**
- **Full mission**

### Challenge

- **Dodge red**

### Other components

- **Student**
- **Arduino Nano rover**

## Connections

- Student → Line sensors: uploads sketch (evidence: `README.md`)
- Student → Motors: uploads sketch (evidence: `README.md`)
- Student → Ultrasonic: uploads sketch (evidence: `README.md`)
- Student → Colour sensor: uploads sketch (evidence: `README.md`)
- Student → Servo arm: uploads sketch (evidence: `README.md`)
- Student → All parts: uploads sketch (evidence: `README.md`)
- Student → Basic line follow: uploads sketch (evidence: `README.md`)
- Student → Full mission: uploads sketch (evidence: `README.md`)
- Student → Dodge red: uploads sketch (evidence: `README.md`)
- Line sensors → Arduino Nano rover: runs on (evidence: `README.md`)
- Motors → Arduino Nano rover: runs on (evidence: `README.md`)
- Ultrasonic → Arduino Nano rover: runs on (evidence: `README.md`)
- Colour sensor → Arduino Nano rover: runs on (evidence: `README.md`)
- Servo arm → Arduino Nano rover: runs on (evidence: `README.md`)
- All parts → Arduino Nano rover: runs on (evidence: `README.md`)
- Basic line follow → Arduino Nano rover: runs on (evidence: `README.md`)
- Full mission → Arduino Nano rover: runs on (evidence: `README.md`)
- Dodge red → Arduino Nano rover: runs on (evidence: `README.md`)
