# yadavdhiru2009/arduino architecture

> Architecture diagram of the GitHub repository yadavdhiru2009/arduino, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yadavdhiru2009/arduino
- Repository: https://github.com/yadavdhiru2009/arduino

## Overview

This repository is a collection of standalone Arduino sketches demonstrating components and modules, rather than one integrated application. The principal workflow is to choose a hardware example and use its sketch as a starting point for an Arduino project. The tree shows examples for basic outputs, displays, sensors, motion, communications, and timing; sampled driver code also implements register-level accelerometer and current/power-sensor access. There is no README, and most sketches were not sampled, so relationships between examples and specific drivers are not asserted.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_outputs["Outputs and actuation"]
  node_basic_outputs["LED and sound<br/>[led]"]
  node_displays["Displays<br/>[seven_segment]"]
  node_motors["Motors and relay<br/>[motor]"]
  node_led_patterns["LED patterns<br/>[31.ws2812]"]
end

subgraph group_sensing["Sensors and measurement"]
  node_analog_sensors["Analog sensors<br/>[led_potentiometer]"]
  node_environmental["Environmental sensing<br/>[dht11]"]
  node_distance_proximity["Distance and proximity<br/>[ultrasonic_sensor]"]
  node_light_color["Light and color<br/>[Code]"]
  node_electrical_measurement["Electrical measurement"]
  node_weight_pressure["Weight and pressure<br/>[68.Load cell]"]
end

subgraph group_motion["Motion and orientation"]
  node_motion_examples["Motion detection<br/>[motion]"]
  node_orientation_examples["Accelerometer examples<br/>[34.ADXL345]"]
  node_magnetometer_examples["Magnetometer examples<br/>[magnet]"]
end

subgraph group_communications["Communications and storage"]
  node_wireless["Wireless links<br/>[Code]"]
  node_cellular_gps["Cellular and GPS<br/>[gsm]"]
  node_rfid_nfc["RFID and NFC<br/>[Code]"]
  node_storage["Storage and RTC<br/>[code]"]
  node_timing["Timers and capture<br/>[Timer_Preloading]"]
end

subgraph group_drivers["Sensor drivers"]
  node_adxl_driver["ADXL345 driver<br/>[ADXL345.cpp]"]
  node_ina_driver["INA226 driver<br/>[INA226_DP.cpp]"]
end

node_user(("Arduino learner"))

click node_basic_outputs "https://github.com/yadavdhiru2009/arduino/tree/master/01.led/led"
click node_displays "https://github.com/yadavdhiru2009/arduino/tree/master/05.Seven_segment/seven_segment"
click node_motors "https://github.com/yadavdhiru2009/arduino/tree/master/10.motor_dc/motor"
click node_led_patterns "https://github.com/yadavdhiru2009/arduino/tree/master/31.ws2812"
click node_analog_sensors "https://github.com/yadavdhiru2009/arduino/tree/master/07.%20Potentiometer/led_potentiometer"
click node_environmental "https://github.com/yadavdhiru2009/arduino/tree/master/13.dht_sensor/dht11"
click node_distance_proximity "https://github.com/yadavdhiru2009/arduino/tree/master/14.ultrasonic%20sensor/ultrasonic_sensor"
click node_light_color "https://github.com/yadavdhiru2009/arduino/tree/master/49.TCS3200%20Color%20Sensor/Code"
click node_electrical_measurement "https://github.com/yadavdhiru2009/arduino/tree/master/30.current%20sensor/Current-Sensor-ACS7121/Current%20Sensor%20ACS712"
click node_weight_pressure "https://github.com/yadavdhiru2009/arduino/tree/master/68.Load%20cell"
click node_motion_examples "https://github.com/yadavdhiru2009/arduino/tree/master/21.Motion%20detector/motion"
click node_orientation_examples "https://github.com/yadavdhiru2009/arduino/tree/master/34.ADXL345"
click node_magnetometer_examples "https://github.com/yadavdhiru2009/arduino/tree/master/28.magnetometer/magnet"
click node_wireless "https://github.com/yadavdhiru2009/arduino/tree/master/45.nRF24L01/Code"
click node_cellular_gps "https://github.com/yadavdhiru2009/arduino/tree/master/24.gsm/gsm"
click node_rfid_nfc "https://github.com/yadavdhiru2009/arduino/tree/master/44.MRFC522%20RFID/Code"
click node_storage "https://github.com/yadavdhiru2009/arduino/tree/master/48.SD%20Card%20Module/code"
click node_timing "https://github.com/yadavdhiru2009/arduino/tree/master/79.Timer/Timer_Preloading"
click node_adxl_driver "https://github.com/yadavdhiru2009/arduino/blob/master/34.ADXL345/ADXL345.cpp"
click node_ina_driver "https://github.com/yadavdhiru2009/arduino/blob/master/77.INA226%20with%20Arduino/INA226_DP-master/src/INA226_DP.cpp"

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_basic_outputs,node_displays,node_motors,node_led_patterns toneBlue
class node_analog_sensors,node_environmental,node_distance_proximity,node_light_color,node_electrical_measurement,node_weight_pressure toneAmber
class node_motion_examples,node_orientation_examples,node_magnetometer_examples toneMint
class node_wireless,node_cellular_gps,node_rfid_nfc,node_storage,node_timing toneRose
class node_adxl_driver,node_ina_driver,node_user toneIndigo
```

## Components

### Outputs and actuation

- [LED and sound](https://github.com/yadavdhiru2009/arduino/tree/master/01.led/led): `01.led/led`
- [Displays](https://github.com/yadavdhiru2009/arduino/tree/master/05.Seven_segment/seven_segment): `05.Seven_segment/seven_segment`
- [Motors and relay](https://github.com/yadavdhiru2009/arduino/tree/master/10.motor_dc/motor): `10.motor_dc/motor`
- [LED patterns](https://github.com/yadavdhiru2009/arduino/tree/master/31.ws2812): `31.ws2812`

### Sensors and measurement

- [Analog sensors](https://github.com/yadavdhiru2009/arduino/tree/master/07.%20Potentiometer/led_potentiometer): `07. Potentiometer/led_potentiometer`
- [Environmental sensing](https://github.com/yadavdhiru2009/arduino/tree/master/13.dht_sensor/dht11): `13.dht_sensor/dht11`
- [Distance and proximity](https://github.com/yadavdhiru2009/arduino/tree/master/14.ultrasonic%20sensor/ultrasonic_sensor): `14.ultrasonic sensor/ultrasonic_sensor`
- [Light and color](https://github.com/yadavdhiru2009/arduino/tree/master/49.TCS3200%20Color%20Sensor/Code): `49.TCS3200 Color Sensor/Code`
- [Electrical measurement](https://github.com/yadavdhiru2009/arduino/tree/master/30.current%20sensor/Current-Sensor-ACS7121/Current%20Sensor%20ACS712): `30.current sensor/Current-Sensor-ACS7121/Current Sensor ACS712`
- [Weight and pressure](https://github.com/yadavdhiru2009/arduino/tree/master/68.Load%20cell): `68.Load cell`

### Motion and orientation

- [Motion detection](https://github.com/yadavdhiru2009/arduino/tree/master/21.Motion%20detector/motion): `21.Motion detector/motion`
- [Accelerometer examples](https://github.com/yadavdhiru2009/arduino/tree/master/34.ADXL345): `34.ADXL345`
- [Magnetometer examples](https://github.com/yadavdhiru2009/arduino/tree/master/28.magnetometer/magnet): `28.magnetometer/magnet`

### Communications and storage

- [Wireless links](https://github.com/yadavdhiru2009/arduino/tree/master/45.nRF24L01/Code): `45.nRF24L01/Code`
- [Cellular and GPS](https://github.com/yadavdhiru2009/arduino/tree/master/24.gsm/gsm): `24.gsm/gsm`
- [RFID and NFC](https://github.com/yadavdhiru2009/arduino/tree/master/44.MRFC522%20RFID/Code): `44.MRFC522 RFID/Code`
- [Storage and RTC](https://github.com/yadavdhiru2009/arduino/tree/master/48.SD%20Card%20Module/code): `48.SD Card Module/code`
- [Timers and capture](https://github.com/yadavdhiru2009/arduino/tree/master/79.Timer/Timer_Preloading): `79.Timer/Timer_Preloading`

### Sensor drivers

- [ADXL345 driver](https://github.com/yadavdhiru2009/arduino/blob/master/34.ADXL345/ADXL345.cpp): `34.ADXL345/ADXL345.cpp`
- [INA226 driver](https://github.com/yadavdhiru2009/arduino/blob/master/77.INA226%20with%20Arduino/INA226_DP-master/src/INA226_DP.cpp): `77.INA226 with Arduino/INA226_DP-master/src/INA226_DP.cpp`

### Other components

- **Arduino learner**
