Electronics Roadmap
A guide to getting started with electronics and microcontrollers
Week 1: Microcontrollers 101
Objective: This week, we’ll dig deep into the heart of a robot—the microcontroller! You’ll learn to charm Arduinos, ESPs, and STMs, and even compare their personalities (without hurting their feelings). Plus, get your hands on some virtual circuit-building with Tinkercad.
Resources
Arduino (The Starter Pack for Robot Brains):
- Arduino Official Site (Home of the Blinky LEDs)
- Suggested Learning: Get familiar with digital pins, analog inputs, and the general attitude of making LEDs blink and servos spin.
ESP32 (The “Smart” One):
- Getting Started with ESP32
- ESP32io (ESP’s Personal Diary)
- Focus: Explore the Wi-Fi, Bluetooth, and low-power modes of ESP32. Who knew this little guy could multitask better than us?
STM32 (The Serious Professional):
- STM32 Guide (For When You Want to Build “Grown-Up” Robots)
- Recommended Study: Cover basic configuration, GPIO, and interrupt handling. Unlike Arduino’s laid-back style, STM demands attention to detail.
Raspberry Pi:
Compare Arduino UNO vs. STM32F103C8T6:
- Draw a comparison table covering processing power, GPIO availability, memory, and use cases. Think of it like speed-dating for microcontrollers.
Tinkercad Circuits — The Virtual Playground:
- Intro to Tinkercad Circuits
- Get Started: Simulate circuits, tinker with LED blinkers, and get hands-on without blowing up real resistors. (Trust us, the LEDs will thank you.)
Assignments
-
Arduino on Tinkercad:
- Build a “Blink” project where an LED blinks every second.
- Challenge: Create a traffic light system using three LEDs (Red, Yellow, Green) with timing intervals like a real intersection.
-
KnockLock on Tinkercad:
- Follow this guide to build a KnockLock circuit.
- What is it? A lock that only opens when you knock in the right pattern. (Even better than a secret handshake.)
-
STM32 and ESP32:
- Implement a simple blink project on both STM32 and ESP32.
- Bonus: Use ESP32’s Wi-Fi capability to send the status of the LED to your smartphone. Now you’ve got a blinking light and a notification. High-tech, right?
-
Report Writing:
- Prepare a short comparison between Arduino UNO and STM32F103C8T6. Points to include: clock speed, GPIO pins, communication protocols, and suitability for different projects.
- Tip: Be diplomatic. We don’t want to hurt Arduino’s feelings!
Week 2: Sensors and Circuits
Objective: This week, give your robot the ability to see, sense, and respond. Dive into the world of sensors, figure out which wires to use (and not use), and calculate battery power—so your bot doesn’t run out of juice mid-robot battle.
Resources
-
Sensor Scouting:
- Guide to Popular Arduino Sensors
- Suggested Topics: Ultrasonic, Infrared (IR), Temperature, Proximity, and more. Learn how to make your bot see in the dark (IR), avoid obstacles (Ultrasonic), and possibly even know when to cool off (Temperature).
- Pro Tip: Think about where each sensor could be used—ultrasonics for navigation, IRs for line following, and temperature sensors to keep your circuits from overheating.
-
IMU (Inertial Measurement Unit):
- IMU Sensor Working and Applications
- Focus: Understand accelerometers, gyros, and magnetometers. IMUs tell your robot which way is up, down, and when it’s spinning around (so it doesn’t get dizzy).
-
Choosing Wires:
- Basic Wiring Guide for Bots
- Key Takeaway: Learn which wires to use based on current ratings. Pay special attention to the AWG (American Wire Gauge) table, because using the wrong wire is like asking your bot to run a marathon in flip-flops.
-
Battery Calculations — Keep the Lights On:
- How to Calculate Battery Runtime
- Formula Fun: Figure out how long your battery will last before your bot takes a nap. Master this, and you’ll be the hero that prevents mid-competition shutdowns.
-
Which Battery To Use?
Assignments
-
Sensor Research Project:
- Pick two sensors (e.g., Ultrasonic and IR) and write a short summary of how they work and where you would use them in a robot.
- Bonus: Find one unconventional use for each. (Ever thought of using a temperature sensor as a hand gesture detector?)
-
IMU Challenge:
- Write a code snippet to read basic IMU data (if you have an actual IMU sensor, use it, otherwise, explore some simulation tools or libraries).
- Bonus: Visualise the IMU data in a graph. Let’s see some wavy lines!
-
Battery Runtime Calculation:
- Calculate the required battery capacity for a small bot that has:
- One 12V DC motor (drawing 1.5 A)
- One servo (drawing 0.5 A)
- A few LEDs and sensors (combined draw of 0.2 A)
- Hint: Use the formula from the resource. Show your working steps—because maths deserves its own spotlight!
- Calculate the required battery capacity for a small bot that has:
Week 3: Motors and Motor Drivers
Objective: This week, explore the fundamentals of motors and motor drivers. Understand how different types of motors function, learn to select the right motor driver for your project, and master the wiring connections—so your bot doesn’t end up spinning in circles. Calculate power requirements to ensure smooth and efficient operation.
Resources
-
Motors — (So Your Bot Doesn’t Just Sit There):
- Types of Motors Used in Robotics
- Study: Learn about DC motors, stepper motors, and servos. Each has a unique personality—pick the right one, and your bot will move like a dream.
-
Choosing the Right Motor:
- Motor Selection Guide
- Key Points: Dive into torque, RPM, and power calculations. Find the one that fits your bot’s needs perfectly.
-
Motor Drivers:
- Types of Motor Drivers
- Focus: Explore the L298N, H-Bridge, and other drivers to ensure smooth control. Without a good driver, your motor is just a fancy paperweight.
-
Motor Control Using L298N:
- Hands-On: Follow along to control two DC motors using the L298N driver and Arduino.
Assignments
- Motors Analysis:
- Create a comparison table for at least 3 different types of motors (e.g., DC, stepper, servo) covering torque, speed, control complexity, and applications.
Week 4: Control Systems
Objective: Control systems help to control the movements and functions of the robot. We need the controllers because the dynamics vary with the time. You will learn about PID and Kalman filters to keep your robot stable.
-
PID Controller Fundamentals:
-
Control Systems in Practice:
- This playlist teaches more basic concepts of Control Theory and how to practically apply them to robots.
-
Kalman Filter:
