Elecrow Pico 2 User Manual

All-in-one stater kit

Advertisement

STEAM Education
Open-source Hardware
20+
17
Lessons
Modules in one
www.elecrow.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Pico 2 and is the answer not in the manual?

Questions and answers

Summary of Contents for Elecrow Pico 2

  • Page 1 STEAM Education Open-source Hardware Lessons Modules in one www.elecrow.com...
  • Page 2 Introduction Welcome to the User Manual for the All-in-one Starter Kit for PICO 2. Let’s begin our journey into the world of the PICO 2 development board and its sensors. Rest assured, this development board is equipped with 21 courses that are designed to be progressively challenging, engaging, and thought-provoking.
  • Page 3: List Of Sensors

    List of Sensors Temperature& Humidity Sensor Button Ultrasonic Ranging Sensor Light Sensor Linear Potentiometer Buzzer 2.4-inch TFT Display Infrared Remote Relay Servo motor Sound Sensor Accelerometer & Gyro Touch Sensor Vibration Motor Hall Sensor Gas Sensor(MQ2)
  • Page 4: Getting Started

    Getting Started Installing Arduino IDE Download Arduino in Windows system STEP 1: Login to Arduino official website, download Arduino, click SOFTWARE. Arduino official website: https://www.arduino.cc/ STEP 2: Select your computer's corresponding system to download, such as Window system. STEP 3: Click JUST DOWNLOAD and select the save location to start the download.
  • Page 5 STEP 4: 1.When installing Arduino, please locate the executable file with the .exe extension within the folder where you previously saved, which is the Arduino installation package. 2. After double-clicking the installation package, this page will appear. Click on "I Agree".
  • Page 6 5.Installation Complete,click 'Close'. Download Arduino in Linux system STEP 1: Login to Arduino official website, download Arduino, click ‘SOFTWARE’. Arduino official website:https://www.arduino.cc/ STEP 2: Select the version of Linux that corresponds to your computer for download.
  • Page 7 STEP 3: After clicking 'JUST DOWNLOAD', select the save location to begin the download process. STEP 4: Install Arduino IDE You are now ready to install the Arduino IDE. Please navigate to the download folder where you saved the Arduino archive (assuming the directory is: /home/username/ Downloads).
  • Page 8 We are now ready to install Arduino. Execute the following command in the terminal with sudo privileges to install Arduino: sudo ./install.sh Please wait for a period of time until the installation is complete. Download Arduino in MacOS system STEP 1: Login to Arduino official website, download Arduino, click ‘SOFTWARE’.
  • Page 9 STEP 2: Select the Mac version of your computer to download. STEP 3: After the download is successful, double-click to install. How to Use the Serial Monitor Tool 1.Open the Arduino IDE. 2.Click on the "Serial Monitor" button. Note that you need to have a serial device connected to open it;...
  • Page 10 Setting the baud rate. The baud rate setting should be the same as that initialized by the code to communicate properly. Course Usage Instructions How to Access the Courses: After flashing the course firmware, enter the boot interface and click on Course Learning to view the course options.
  • Page 11 Click the button below to access the course. How to Exit the Course and Return to the UI Interface: After entering the course, you can exit the course by touching the Touch Sensor module located at the lower left corner. Note: Since Course 15 utilizes the Touch Sensor module, the method to exit this course is slightly different.
  • Page 12 For the above games, swiping up on the screen will bring up the menu. Clicking the “Return”. button will exit to the factory UI interface. Clicking the “Start/Stop” button can control the game status. Once the “Start” button is clicked, the menu interface will automatically exit. Customizing and Modifying Light Effects Tutorial Taking the factory code as an example, the code is displayed in the segment from lines 1330 to 1350 below.
  • Page 13 By modifying these four functions, you can achieve the goal of customizing the factory-default lighting effects. Function:digita1Write(LED_EN, HIGH); The code indicates the activation of the RGB power supply. This step is necessary if you want the RGB to light up. Function:colorWipe(strip.Color(255, 0, 0), 50);...
  • Page 14 Hardware required All-in-one-Starter-Kit-for-Pico2 x1 USB Cable x1 Hardware schematic What will you see After starting the course, you will see the LED light up for one second, then turn off for one second, and repeat this cycle. If this process is not observed, please ensure that the program is running correctly.
  • Page 15: Hardware Required

    What will you see After the course is launched, when you hold down the “up” button, the LED remains lit continuously. When you release the button, the LED turns off. If the LED does not operate as expected, please ensure that the program is running correctly. Lesson 3 - Breathing LED Introduction In this lesson, we will use a potentiometer with a maximum resistance of 10kΩ...
  • Page 16: Hardware Schematic

    Hardware schematic What will you see After starting the course, the brightness of the LED will change according to the movement of the potentiometer. When you slide it all the way to the right (maximum position), the LED will be at its brightest. When you slide it all the way to the left (minimum position), the LED will turn off.
  • Page 17 All-in-one-Starter-Kit-for-Pico2 x1 USB Cable x1 Hardware schematic What will you see After the course is initiated, you will see the text “HELLO WORLD!” displayed on the screen. One second later, the text “Bye Bye” will appear on the TFT display. After another second, the display will be cleared, and the screen will turn off.
  • Page 18 What will you see After the course is initiated, the green light will turn on first, while the TFT displays "Countdown: 30 seconds" and starts timing. When the countdown reaches the last 5 seconds, the green light will start flashing. After the 30-second green light period ends, the green light will turn off, the yellow light will turn on, and the TFT will display "Countdown: 3 seconds"...
  • Page 19 Lesson 6 - Intelligent Street Light Introduction In this lesson, you will learn how to obtain light intensity information from the light sensor module and how to control the LED light based on this data. By determining different levels of brightness, you can achieve intelligent control of the LED's on/off state. This smart control of the LED allows you to avoid unnecessary energy consumption and achieve energy-saving goals.
  • Page 20 What will you see When you cover the top of the light sensor with your hand to simulate a dark environment, you should see the red LED light up. When you remove your hand to simulate a light environment, the red LED should turn off. If this does not happen, please check whether the program has been executed correctly.
  • Page 21 What will you see After starting the course, you will see the distance data measured by the ultrasonic sensor continuously refreshing on the LCD screen. As the flat surface in front of the ultrasonic module moves, the measured distance values will also change accordingly. If this does not happen, please check whether the program is running correctly.
  • Page 22 What will you see After starting the course, you will observe that as the distance measured by the ultrasonic module changes, the vibration motor will activate when the distance is less than 30 centimeters, indicating that an obstacle has been detected. If the distance reaches or exceeds 30 centimeters, the vibration motor will turn off, indicating that the path is clear and there are no obstacles.
  • Page 23 Lesson 9 - Brightness Display Introduction In this lesson, we will learn how to control the brightness of a light using a potentiometer and divide the brightness levels into 10 grades. Hardware required All-in-one-Starter-Kit-for-Pico2 x1 USB Cable x1 Hardware schematic...
  • Page 24 What will you see After starting the course, you will see that by sliding the potentiometer left or right, you can adjust the brightness level of the light from 0 to 10. Lesson 10 - Temperature&Humidity Detecting System Introduction In this lesson, we will learn how to use the temperature and humidity sensor module. Hardware required All-in-one-Starter-Kit-for-Pico2 x1 USB Cable x1...
  • Page 25 What will you see After starting the course, in this lesson, you will see the temperature and humidity data obtained from the temperature and humidity sensor displayed on the screen. Lesson 11 - Servo Control Introduction In this lesson, we will learn the basic use of a servo motor to achieve left and right swinging of the servo module.
  • Page 26 What will you see After starting the course, you will see the servo rotate from 0 degrees to 180 degrees, and then from 180 degrees back to 0 degrees. If this process does not occur, please check whether the firmware has been correctly flashed and whether the hardware connections are correct.
  • Page 27 What will you see After the course starts, you will observe the following: When you press the “1” button on the remote control, the red LED will light up. When you press the “2” button on the remote control, the yellow LED will light up. When you press the “3”...
  • Page 28 What will you see After starting the course, you will see the TFT display information about temperature and humidity. If the temperature exceeds 25°C, the yellow light will turn on, and the TFT will display a warning message "Temperature Too High." If the temperature exceeds 30°C, the red light will turn on, and the TFT will display a warning message "Temperature Hot."...
  • Page 29 Lesson 14 - Servo Angle Control Introduction In this lesson, we will learn how to control the rotation angle of a servo motor using an infrared remote control and display the angle on the TFT screen. Hardware required All-in-one-Starter-Kit-for-Pico2 x1 USB Cable x1 Crowtail- IR Emitter x1 Hardware schematic...
  • Page 30 What will you see After starting the course, you will see the TFT display the corresponding angle after the remote control inputs the angle. Once the confirmation key is pressed, the servo will rotate to the corresponding angle, and the current angle will be displayed on the LCD screen.
  • Page 31 What will you see After starting the course, the TFT will display "Please Open the Door." When you press the touch button, the relay will close the circuit (open the door), the relay indicator light will turn on, and the TFT will display a welcome message "Welcome." After a 10-second delay, the relay will automatically open the circuit (close the door), the relay indicator light will turn off, and the TFT will display "Please Open the Door"...
  • Page 32 Hardware required All-in-one-Starter-Kit-for-Pico2 x1 USB Cable x1 Hardware schematic What will you see After starting the course, you will see that if the surrounding noise is too loud or you shout at the sound sensor, the buzzer will emit a one-second beep to remind you to lower the volume.
  • Page 33 Lesson 17 - Calculation Of Acceleration Introduction In this lesson, we will learn advanced operations of the servo motor. We will use a touch module to control the relay to turn on and off. Hardware required All-in-one-Starter-Kit-for-Pico2 x1 USB Cable x1 Hardware schematic...
  • Page 34 What will you see After running the program, you will see the TFT display the accelerometer values for the X, Y, and Z axes. When you move the accelerometer quickly along an axis, you will observe that the accelerometer value for that axis changes. Lesson 18 - Smart Corridor Light Introduction In this lesson, we will learn advanced operations involving the integration of the Sound...
  • Page 35 What will you see After starting the course, when the ambient light is very strong, the LED will not turn on regardless of whether there is any sound. When the ambient light is very dim or when the light sensor is covered by hand, the LED will remain off by default. At this time, if a sound is detected, the LED will turn on for 10 seconds and then turn off.
  • Page 36 Lesson 19 - Simple Calculator Introduction In this lesson, we will learn advanced operations involving the integration of the Sound Sensor, Light Sensor, and LED. By coordinating these sensors, we will achieve the effect of an intelligent corridor light. Hardware required All-in-one-Starter-Kit-for-Pico2 x1 USB Cable x1 Hardware schematic...
  • Page 37 What will you see The IR remote control serves as the input device, while the TFT acts as the calculation display. Five non-numeric buttons on the remote control are designated as: “+ (addition), - (subtraction), × (multiplication), ÷ (division), and = (equals).” Upon running the program, the TFT will display: “Please Enter:”.
  • Page 38 What will you see After starting the course, the TFT will display “Counter: 0.” Each time you bring a magnet close to the Hall sensor, the red light will turn on once, and the TFT will display the count incremented by 1, and so on.
  • Page 39 Lesson 21 - Smoke Alarm Introduction In this chapter, we will learn the basic usage of a smoke detector. Hardware required All-in-one-Starter-Kit-for-Pico2 x1 USB Cable x1 Hardware schematic What will you see After starting the course and running the program, allow the MQ2 sensor to warm up for a few minutes.
  • Page 40 MAKE YOUR MAKING EASIER...

This manual is also suitable for:

Sep0005k

Table of Contents