1. Servo.h π€π¦Ύ
- Purpose:
Control standard servo motors. - Functions:
#include <Servo.h>
Servo servo;
servo.attach(pin);
servo.write(angle);
2. LiquidCrystal.h πΊβ¨
- Purpose:
Interface and control LCD displays (16×2, 20×4, etc.). - Functions:
#include <LiquidCrystal.h>
LiquidCrystal lcd(RS, E, D4, D5, D6, D7);
lcd.begin(16,2);
lcd.print("Hello");
3. SoftwareSerial.h ππ‘
- Purpose:
Create additional software-based serial communication ports. - Functions:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(RX, TX);
mySerial.begin(9600);
mySerial.println("Hello");
4. Stepper.h πβοΈ
- Purpose:
Control stepper motors (28BYJ-48 and others). - Functions:
#include <Stepper.h>
Stepper stepper(stepsPerRev, pin1, pin2, pin3, pin4);
stepper.setSpeed(60);
stepper.step(steps);
5. EEPROM.h πΎπ
- Purpose:
Read and write data to Arduinoβs built-in EEPROM memory. - Functions:
#include <EEPROM.h>
EEPROM.write(address, value);
EEPROM.read(address);
π© Libraries Not Supported:
Tinkercad does not support custom or external libraries. You cannot upload or include your own libraries (e.g., FastLED
, Adafruit_Sensor
, etc.).
Example of unsupported use:
#include "CustomLibrary.h" // β Not supported!
#include <Wire.h> // β Not supported (no I2C devices)!
#include <SPI.h> // β Not supported!
β‘ Quick Reference Table:
Library | Supported | Usage Examples |
---|---|---|
Servo.h | β YES | Servo motors (SG90, MG90S, etc.) |
LiquidCrystal.h | β YES | LCD displays (16×2, 20×4) |
SoftwareSerial.h | β YES | Additional serial ports (Bluetooth, GPS) |
Stepper.h | β YES | Stepper motor control (28BYJ-48) |
EEPROM.h | β YES | Persistent storage (simple data) |
SPI.h | β NO | SPI devices |
Wire.h (I2C) | β NO | I2C devices |
Custom libraries | β NO | External user-created libraries |
π Final Recommendation:
Stick to the supported libraries above for a smooth and hassle-free experience while exploring Arduino basics and creating awesome projects in Tinkercad! πβ¨π€