Skip to content

SeungWoo-L/DES_Project1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SEA:ME / DES_Project1

1. Install Ubuntu 22.04 Server on Raspberry Pi (Using Raspberry Pi Imager)

Raspberry Pi Imager

  1. Download and start Raspberry Pi Imager from here.

  2. Choose OS: "SCL or GUI (Raspbian 64/32 bits)"

  3. Select USB Driver.

  4. Go to Settings (Advanced Option).

    • Enable SSH and set User_Name, Password. Enable SSH and Set User_Name, Password

    • Configure Wireless Lan. Configure Wireless Lan

  5. Press the Save Button.

  6. Press the Write Button.

  7. Insert the USB Driver into Raspberry Pi to start installing Ubuntu.

2. Follow the Hardware (H/W) Assembly Manual

Follow the PiRacer Assembly Manual.

3. Follow the Software (S/W) Guide

Follow the PiRacer-py guide.

  1. Run the following commands to add the Raspberry Pi repository and update the system:

    sudo -s
    echo "deb http://archive.raspberrypi.org/debian/ buster main" >> /etc/apt/sources.list
    apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 7FA3303E
    apt update
    exit
  2. Install the required libraries and tools:

    sudo apt update
    sudo apt install \
        gcc \
        v4l-utils \ 
        i2c-tools \ 
        raspi-config \ 
        python3-dev \
        python3-setuptools \ 
        python3-venv \
        libopencv-dev \
        piracer-py
  3. If you choose Ubuntu, mount the boot partition:

    mount /dev/mmcblk0p1 /boot/
  4. Enable I2C and Camera using the 'raspi-config' tool:

    • i2c: Interface Options > I2C
    • Camera: Interface Options > Camera

    Afterwards, reboot the Raspberry Pi:

    sudo reboot
  5. Install the piracer-py package:

    cd ~
    mkdir piracer_test/
    cd piracer_test/
    python3 -m venv venv
    source venv/bin/activate
    pip install piracer-py

After following these steps, you can try the example code provided in the link.

  • basic_example.py: Operating throttle and steering.
  • rc_example.py: Check the Controller (Check Connect, Throttle, Steering works correctly)
  • camera_grab_example.py: Check the Camera.

4. Simple Explanation about code

  1. basic_example.py

    • Test pi-racer operating well
    • Moving Forward - Backward - left -right - sleep
  2. camera_grab_example.py

    • Test pi-racer camera working well
    • After working this file, if you get some image and it operates correctly
  3. rc_example.py

    • Control the pi-racer using controller
  4. shutdown.py

    • Stop movement of pi-racer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%