Arduino maker

From FerroxLabs/murage · View interactive version

Arduino maker is an AI agent skill from the GitHub repository FerroxLabs/murage. Guide to Arduino microcontroller projects from first blink to advanced builds, covering board selection, circuit design, programming fundamentals, and progressive project ideas. Use when the user asks about arduino maker or needs help with related topics. Do NOT use for unrelated domains or when a m

How to use this skill

Skill file

Arduino Maker

When to Use

Process

  1. Gather requirements. Ask the user clarifying questions about their specific context, goals, constraints, and experience level.
  1. Analyze the situation. Review the information provided and identify key factors, challenges, and opportunities relevant to arduino maker.
  1. Develop the framework. Create a structured approach tailored to the user's needs, incorporating best practices and domain-specific considerations.
  1. Deliver actionable output. Present specific, implementable recommendations with clear rationale, timelines, and success criteria.
  1. Address edge cases. Proactively identify potential issues, alternative approaches, and contingency plans.

Use this skill when:

Do NOT use this skill when:

Questions to Ask First

Before recommending an approach, I need to understand your situation:

  1. What is your experience level with electronics? (Complete beginner / Some soldering / Experienced)
  2. Have you done any programming before? In what language?
  3. What kind of project are you hoping to build? (Home automation, robotics, wearables, art installations, data logging)
  4. What is your budget for getting started? ($30-50 / $50-100 / $100+)
  5. Do you have access to a soldering iron, multimeter, or other tools?
  6. Are you building for a specific purpose (school project, home use, gift) or learning generally?
  7. Do you need wireless connectivity (WiFi, Bluetooth)?
  8. Will your project need to run on battery power?

Board Selection Guide

Arduino Uno R3 / R4

Arduino Nano

Arduino Mega 2560

ESP32 (Arduino-compatible)

Recommendation by Use Case

IDE Setup and Configuration

Step 1: Install Arduino IDE

  1. Download Arduino IDE 2.x from arduino.cc/en/software
  2. Install for your operating system
  3. On Windows, install USB drivers when prompted
  4. On Mac/Linux, drivers typically install automatically

Step 2: Configure Your Board

  1. Connect Arduino via USB cable
  2. Tools > Board > Select your board model
  3. Tools > Port > Select the COM port (Windows) or /dev/ device (Mac/Linux)
  4. If port doesn't appear, check cable (some USB cables are charge-only, no data)

Step 3: Test with Blink

  1. File > Examples > 01.Basics > Blink
  2. Click Upload (arrow button)
  3. Onboard LED should blink on/off every second
  4. If upload fails: check board selection, port, and cable

Step 4: Install Libraries

  1. Tools > Manage Libraries (or Sketch > Include Library)
  2. Search for needed library
  3. Click Install
  4. Essential starter libraries: Servo, LiquidCrystal, DHT sensor library, Adafruit NeoPixel

Basic Circuit Building Blocks

Circuit 1: External LED Control

Components: LED, 220-ohm resistor, breadboard, jumper wires

Pin 13 --> 220Ω resistor --> LED (long leg/anode) --> LED (short leg/cathode) --> GND

Code concepts learned: digitalWrite, pinMode, delay

Circuit 2: Button Input

Components: Pushbutton, 10K-ohm resistor, LED, breadboard

5V --> Button --> Pin 2 (with 10K pull-down resistor to GND)
Pin 13 --> 220Ω --> LED --> GND

Code concepts learned: digitalRead, INPUT_PULLUP, conditional logic

Circuit 3: Sensor Reading (Temperature)

Components: TMP36 or DHT11 sensor

DHT11: Pin 1 (VCC) --> 5V, Pin 2 (Data) --> Pin 7 (with 10K pull-up), Pin 4 (GND) --> GND

Code concepts learned: analogRead, Serial.println, sensor libraries, data conversion

Circuit 4: Motor Control

Components: DC motor, transistor (TIP120), diode (1N4001), resistor

Pin 9 --> 1K resistor --> TIP120 base
TIP120 collector --> Motor --> External power (+)
TIP120 emitter --> GND
Diode across motor (flyback protection)

Code concepts learned: PWM (analogWrite), transistor as switch, external power

Circuit 5: Servo Control

Components: Servo motor (SG90)

Servo red wire --> 5V
Servo brown wire --> GND
Servo orange wire --> Pin 9

Code concepts learned: Servo library, map() function, potentiometer input

Programming Fundamentals

Core Concepts

// Every Arduino sketch has two required functions:

void setup() {
  // Runs once at startup
  pinMode(13, OUTPUT);      // Configure pin as output
  Serial.begin(9600);       // Start serial communication
}

void loop() {
  // Runs repeatedly forever
  digitalWrite(13, HIGH);   // Turn LED on
  delay(1000);              // Wait 1 second
  digitalWrite(13, LOW);    // Turn LED off
  delay(1000);              // Wait 1 second
}

Variables and Data Types

Control Structures

Common Functions

Avoiding delay() - Using millis()

unsigned long previousMillis = 0;
const long interval = 1000;

void loop() {
  unsigned long currentMillis = millis();
  if (currentMillis - previousMillis >= interval) {
    previousMillis = currentMillis;
    // Do your timed action here
  }
  // Other code runs without blocking
}

Progressive Project Ideas

Beginner Projects (Week 1-4)

  1. Traffic Light Simulator - Three LEDs cycling through green, yellow, red with proper timing
  2. Night Light - Photoresistor controls LED brightness automatically
  3. Temperature Display - DHT11 sensor reading shown on 16x2 LCD
  4. Melody Player - Piezo buzzer plays songs using tone() function
  5. Reaction Time Game - LED lights up, measure button press response time

Intermediate Projects (Month 2-3)

  1. Weather Station - DHT22 + BMP280 sensors, OLED display, data logging to SD card
  2. Plant Watering System - Soil moisture sensor triggers pump via relay
  3. Ultrasonic Parking Sensor - HC-SR04 distance sensor with LED bar graph and buzzer
  4. RFID Door Lock - RFID reader controls servo-operated lock mechanism
  5. LED Matrix Animations - 8x8 or WS2812B strip with patterns and effects

Advanced Projects (Month 4+)

  1. Home Automation Hub - ESP32 with MQTT, controls lights/fans, web dashboard
  2. Line-Following Robot - Motor driver, IR sensors, PID control algorithm
  3. CNC Plotter - Stepper motors, servo pen lift, G-code interpretation
  4. Weather Balloon Tracker - GPS module, LoRa radio, altitude/temp logging
  5. Retro Game Console - OLED display, joystick, multiple games in menu system

Component Sourcing

Recommended Starter Kits

Where to Buy Components

Essential Tools

Debugging Guide

Upload Errors

Circuit Debugging

  1. Check power: Is 5V reaching where it should? Use multimeter
  2. Check ground: All components must share common ground
  3. Check polarity: LEDs, capacitors, and diodes are directional
  4. Check connections: Push wires firmly into breadboard
  5. Simplify: Remove components until basic circuit works, then add back one at a time

Code Debugging

  1. Use Serial.println() to print variable values at key points
  2. Check variable types (int overflow at 32,767)
  3. Watch for floating pin reads (use INPUT_PULLUP or external resistors)
  4. Verify pin numbers match physical connections
  5. Check library compatibility with your board

Common Mistakes

Safety Considerations

Progression Path

  1. Phase 1: Complete starter kit tutorials, understand basic components
  2. Phase 2: Modify example projects, combine sensors and outputs
  3. Phase 3: Design original projects, learn to read datasheets
  4. Phase 4: Add wireless communication (WiFi, Bluetooth, LoRa)
  5. Phase 5: Design custom PCBs (KiCad), 3D print enclosures
  6. Phase 6: Contribute to open-source projects, teach others

Community Resources

Output Format

Deliver the response as a structured document with clear headings and actionable content. Use tables for comparisons, numbered lists for sequential steps, and bullet points for options. Include specific examples where applicable.

[Arduino Maker deliverable]
1. Context and objectives
2. Analysis or framework
3. Specific recommendations with rationale
4. Action items with timeline

Example

Input: "Help me with arduino maker for a mid-size project."

Output: A complete arduino maker framework tailored to the specific context, with actionable steps, relevant considerations, and measurable outcomes.

Edge Cases

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.