Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:iot-open:practical:hardware:taltech:arduino [2025/07/18 10:57] ingmar05en:iot-open:practical:hardware:taltech:arduino [2025/09/02 11:32] (current) – [Validation and Troubleshooting] raivo.sell
Line 1: Line 1:
-\====== TalTech Arduino Laboratory Hardware Reference ======+====== TalTech Arduino Laboratory Hardware Reference ====== 
 +{{ :en:iot-open:practical:hardware:taltech:arduino_kauglabor.jpg?600 |}} 
 +===== Introduction ===== 
 +Each laboratory node is equipped with an **Arduino Uno** board. This board is widely used for prototyping and educational purposes due to its ease of use, extensive compatibility with sensors and modules, and a simple programming environment.
  
-\===== Introduction ===== +The hardware setup includes several sensorsactuators, and interfaces designed for various practical lab exercises.
-The TalTech Arduino Laboratory is designed for practical education and experimentation with embedded systems and IoT devices using Arduino Uno. This page provides details on hardware componentsGPIO pin assignments, and recommended libraries for efficient use and programming of the laboratory equipment.+
  
-\===== Hardware Overview =====+===== Hardware reference ===== 
 +  * **Microcontroller:** ATmega328P 
 +  * **Operating Voltage:** 5 V 
 +  * **Digital I/O Pins:** 14 (6 pins provide PWM output) 
 +  * **Analog Input Pins:** 6 
 +  * **Clock Speed:** 16 MHz 
 +  * **USB Interface:** Yes (for programming and serial communication) 
 +  * **Power Supply:** USB connection or external power supply
  
-The laboratory setup includes the following main components:+==== Hardware Components and Pin Assignments ====
  
-* **Arduino Uno** +^ Component ^ Model/Description ^ Pins ^ Remarks ^ 
-* **Pololu TB6612FNG Dual Motor Driver** +| DC Motor | Micromotors Brushed Geared DC Motor, 12V, 20Ncm, 5rpm | Digital pins: AIN1=12, AIN2=11, PWM=3 | Controlled via Pololu TB6612FNG Dual Motor Driver | 
-* **DC motor (Micromotors Brushed Geared Motor)** +| Servo Motor | SG90 or similar | PWM pin: 10 | Controlled via Arduino Servo library | 
-* **Photoresistor** +| Fan | 12V DC Fan | Digital pin: 2 | Controlled via digital on/off | 
-* **Temperature sensor (Thermistor)** +Thermistor | Steinhart-Hart Thermistor | Analog pin: A5 | Used for precise temperature measurement | 
-* **Fan** +| Photoresistor (LDR) | Chanzon GL5549, 10Ω LDR | Analog pin: A2 | Used for ambient light sensing | 
-* **Servo motor** +LCD Screen | Alphanumeric LCD 16x2 (HD44780) | Pins: RS=8, EN=9, D4=4, D5=5, D6=6, D7=7, Buttons input: A0 | Used for displaying text and sensor values |
-* **LCD Display**+
  
-\===== Detailed Hardware Description =====+==== Additional Hardware ==== 
 +  * **Motor Driver:** Pololu TB6612FNG Dual Motor Driver Carrier 
 +    * Supports two DC motors independently 
 +    * Motor voltage range: 4.5 – 13.5 V 
 +    * Continuous current per channel: 1.2 A (peak 3 A) 
 +    * Built-in protection: thermal shutdown and undervoltage lockout 
 +    * Control inputs: Logic-level PWM and direction signals (2.7–5.5 V compatible)
  
-\==== Arduino Uno ====+==== Wiring Diagram ==== 
 +{{:en:iot-open:practical:hardware:taltech:wiring_schematic.png?600|}}
  
-* Microcontroller: ATmega328P +==== Suggested Knowledge Resources ==== 
-* Operating Voltage: 5V +  * Arduino programming fundamentals 
-* Digital I/O Pins: 14 (6 PWM capable) +  * Basic understanding of PWManalog/digital I/O 
-* Analog Input Pins: 6 +  Use of common Arduino libraries
-* Clock Speed: 16 MHz +    ''Servo.h'' – Servo motor control 
-* Connectivity: USB, power jack +    ''LiquidCrystal.h'' – LCD display handling 
-* Ideal for rapid prototyping and educational use. +    Standard Arduino analog/digital I/O functions 
- +   
-\==== Pololu TB6612FNG Dual Motor Driver ==== +==== Development Environment Configuration ==== 
- +Typical ''platformio.ini'' file configuration for Arduino Uno:
-* Motor Channels: 2 +
-* Operating Voltage: 4.5V to 13.5V +
-* Continuous Current: 1.2A (3A peak) +
-* Logic-level PWM and direction control +
-* Built-in protection features (thermal shutdown, undervoltage lockout) +
- +
-\==== DC Motor (Micromotors Brushed Geared Motor) ==== +
- +
-* Voltage: 12V DC +
-* Speed: 5 rpm +
-* Torque: 20 N·cm +
-* Shaft Diameter: 4mm +
-* GPIO Assignments: +
- +
-  * AIN1: Arduino pin 12 +
-  * AIN2: Arduino pin 11 +
-  * PWMA: Arduino pin 3 (PWM+
- +
-\==== Photoresistor ==== +
- +
-* Model: Chanzon GL5549 (LDR) +
-* Typical resistance: 10 kΩ under moderate lighting +
-* Pin: Arduino analog input A2 +
- +
-\==== Temperature Sensor (Thermistor) ==== +
- +
-Uses Steinhart-Hart thermistor equation +
-* Pin: Arduino analog input A5 +
- +
-\==== Fan ==== +
- +
-* GPIO Assignment+
- +
-  BIN2: Arduino pin 2 (digital output) +
- +
-\==== Servo Motor ==== +
- +
-Type: PWM controlled standard servo +
-* GPIO Assignment: +
- +
-  * PWM Control: Arduino pin 10 +
- +
-\==== LCD Display ==== +
- +
-Type: Alphanumeric 16x2 LCD (HD44780 compatible) +
-* GPIO Assignments: +
- +
-  * RS: Arduino pin 8 +
-  * EN: Arduino pin 9 +
-  * D4: Arduino pin 4 +
-  * D5: Arduino pin 5 +
-  * D6: Arduino pin 6 +
-  * D7: Arduino pin 7 +
-  * Buttons Input: Arduino analog input A0 +
- +
-\===== Recommended Libraries ===== +
- +
-Below is the recommended library configuration for the Arduino IDE or PlatformIO environment:+
  
 <code ini> <code ini>
-lib_deps +[env:uno] 
-    arduino-libraries/LiquidCrystal@^1.0.7 +platform atmelavr 
-    adafruit/Adafruit BME280 Library@^2.2.2 +framework = arduino 
-    milesburton/DallasTemperature@^3.11.0 +board = uno 
-    Servo.h (built-in Arduino library)+lib_ldf_mode = deep+
 </code> </code>
  
-\===== Links to Additional Resources 
  
en/iot-open/practical/hardware/taltech/arduino.1752836227.txt.gz · Last modified: 2025/07/18 10:57 by ingmar05
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0