> For the complete documentation index, see [llms.txt](https://docs.raidrobotics.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.raidrobotics.org/electrical/training/basic-training/lesson-7-sensors.md).

# Lesson 7 - Sensors

The sensors on a robot and what each tells the code. Sensors give the robot information, make automation possible, and are more precise than watching.

## Key terms

| Term                       | What it means                                                                                                                                |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| Magnetic encoder           | Senses rotation from a spinning magnet, like the CANcoder. Used to track how far motors and wheels have turned, which autos depend on.       |
| Hall effect / limit sensor | Detects a magnetic field. Comes in analog (linear) and digital versions; used as limit switches and to count rotations.                      |
| Color / proximity sensor   | Reads red, green, blue and clear (alpha) values plus distance. Works best close to the object.                                               |
| Limelight                  | A plug-and-play camera that finds vision targets such as AprilTags. Give it a static IP address so it boots faster and avoids DHCP problems. |

## Slides

{% hint style="info" %}
The slides are from FRC Team 1678 Citrus Circuits' electrical training. Parts named in them are what 1678 used when the deck was made; our robot may differ, so check the current wiring reference sheet.
{% endhint %}

{% embed url="<https://docs.google.com/presentation/d/1lxrSXpda0HQV0UeBUUczmW4UugzzyFL_MsDsSCHv7_0/edit?slide=id.g25a51bbe37f_0_6#slide=id.g25a51bbe37f_0_6>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.raidrobotics.org/electrical/training/basic-training/lesson-7-sensors.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
