Page 170 - Toucpad robotics C11
P. 170
ASSIGNMENTS
21 st #Coding & Computational Thinking
Assignment 1 Smart Campus Assistant Robot Century #Digital Literacy
Skills
Theme: Sustainable, smart school operations (delivery + energy saving + simple attendance).
A. Plan & Choose Your Build Path
1. Define scope (write in notebook):
Campus delivery of light items (~500 g)
°
Obstacle avoidance in corridors
°
Energy saving (auto lights/fans in a demo room)
°
Basic attendance (choose one: RFID [Arduino-friendly] or QR [Raspberry Pi-friendly])
°
2. Pick platform:
Arduino UNO best for motor control + RFID attendance
°
Raspberry Pi 4/3 + Camera best for QR/Face attendance with Python
°
3. Decide environment:
Hardware build (preferred) or Tinkercad Circuits simulation (for logic proof).
°
B. Minimum Bill of Materials (choose per platform)
Common (both): 2× DC geared motors + caster wheel, chassis, L298N motor driver, HC-SR04 ultrasonic sensor
l
or 2× IR distance sensors, 1× micro servo (for lid/mini-arm), 1× LDR + 10kΩ resistor (voltage divider), 1× 1-channel
relay module (for lamp/fan demo at low voltage), 7–12V battery pack, jumper wires, breadboard.
Arduino path: Arduino UNO, MFRC522 RFID kit (if RFID chosen).
l
Raspberry Pi path: Raspberry Pi (with 5V 3A supply), Pi Camera or USB webcam (if QR chosen), microSD with
l
Raspberry Pi OS.
Safety note: For the “energy saving” demo, use a low-voltage bulb/LED strip through a relay or a safe training mains
panel under teacher supervision.
C. Mechanical Setup
1. Assemble the chassis; mount motors and caster.
2. Fix sensor mounts: ultrasonic at front center (or two IR sensors angled ~15° outward).
3. Add a top tray/box (cardboard/acrylic) with a servo-driven lid for payload.
4. Keep wiring length tidy; secure the battery low and centered for stability.
D. Electronics & Wiring (high-level map)
1. Power: Battery L298N (VIN). L298N 5V out (if available) logic rails; or use a separate 5V regulator.
2. Motors: Motor A/B L298N outputs. L298N IN1–IN4 controller GPIOs.
3. Sensors:
Ultrasonic: Trig + Echo controller GPIOs; Vcc 5V; GND shared.
°
IR pair (alt): OUT pins GPIOs.
°
4. Servo (lid): Signal PWM pin; Vcc 5V; common ground.
5. LDR light sensing: LDR + 10kΩ resistor as a voltage divider analog input (Arduino) or MCP3008 ADC
2
(for Raspberry Pi) or use a digital light sensor (BH1750) via I C.
6. Relay: IN ‡ GPIO; Vcc 5V; use low-voltage load for demo.
168
Touchpad Robotics - XI

