Picar-X Lesson 1: Assemble PiCar-X

by Shopify API
#include "MPU9250.h"

MPU9250 sensor(Wire, 0x68);

void setup() {
  Serial.begin(9600);
  sensor.begin();
}

void loop() {

  sensor.readSensor();

  Serial.print("Accelerometer X: ");
  Serial.println(sensor.getAccelX_mss(), 2);
  Serial.print("Accelerometer Y: ");
  Serial.println(sensor.getAccelY_mss(), 2);
  Serial.print("Accelerometer Z: ");
  Serial.println(sensor.getAccelZ_mss(), 2);

  Serial.print("Gyroscope X: ");
  Serial.println(sensor.getGyroX_rads(), 2);
  Serial.print("Gyroscope Y: ");
  Serial.println(sensor.getGyroY_rads(), 2);
  Serial.print("Gyroscope Z: ");
  Serial.println(sensor.getGyroZ_rads(), 2);

  Serial.print("Magnetometer X: ");
  Serial.println(sensor.getMagX_uT(), 2);
  Serial.print("Magnetometer Y: ");
  Serial.println(sensor.getMagY_uT(), 2);
  Serial.print("Magnetometer Z: ");
  Serial.println(sensor.getMagZ_uT(), 2);

  Serial.print("Temperature: ");
  Serial.println(sensor.getTemperature_C(), 2);

  Serial.println("------------------------------------");

  delay(500);
}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Basic Teaching Information

Table header 0
Table header 2
Suitable School Age
8-10 years old.
Duration 90 minutes
Teaching Objectives1. Introduce parts and structures. Let students understand the sensor module, what PiCar can do and how to play.

2. Through practical operation, let students master the use method of installation tools (screw, nut, screwdriver, socket wrench).

3. Assemble PiCar ~ step 11 on PPT: fit FFC cable.
Important and Difficult Points of TeachingTeaching Key Points
Through the explanation, students can know each device and its basic function.

Let students use tools correctly through the demonstration.
Teaching Difficult Points When students assemble FFC cables, the assistance from a teacher is needed.

Teaching Grouping and Teaching Aid

Table header 0
Table header 2
Teaching Group
Work in groups of one person.
Teaching AidPiCar kit, pen, programming growth manual.