> For the complete documentation index, see [llms.txt](https://docs.arduinodenis.it/github/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arduinodenis.it/github/resources-arduino/arduino-projects/project-2-arduino.md).

# Project 2 Arduino

## Arduino Traffic Light with Pedestrian Call

A simple Arduino project to simulate a traffic light with pedestrian call management.

### Description

The project consists of a traffic light with green, yellow, and red lights for vehicles and a pedestrian signal. Pedestrians can request passage by pressing a button.

### Components

* 2 Green LEDs (for vehicle traffic lights)
* 2 Yellow LEDs (optional, for vehicle traffic lights)
* 2 Red LEDs (for vehicle traffic lights)
* 2 White LEDs (for pedestrian traffic lights)
* 2 Buttons (one for each side of the road)

### Connection Diagram

Insert here a connection diagram of the components with Arduino.

### Code

The script file is named traffic-light-with-arduino.ino

### Usage

1. Upload the code to Arduino.
2. Connect the components following the diagram.
3. Power on Arduino and observe the traffic light operation.

### Contributing

Contributions are welcome! If you wish to improve the project, feel free to open a pull request.

### License

Insert the project license here.

Make sure to add the connection diagram and the Arduino code in the README.md before publishing it on GitHub.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.arduinodenis.it/github/resources-arduino/arduino-projects/project-2-arduino.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
