pmdrc / Oak-Nexus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Oak-Nexus

IMG_1138 Medium

0: RASPBIAN OS 64BITS With Raspberry Pi Imager --> burn the 64 bits Bullseye with Desktop into and micro-SD card ( V30 , A2 speed ) (in extra settings pre-define the Wifi, hostname and user/pass)

After 1st boot ssh to it and run :

sudo raspi-conf

Enble VNC and SPI

sudo apt update & sudo apt upgrade -y

1: Servo deamon PWM

sudo pigpiod

2: Install the Edge TPU runtime

echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install libedgetpu1-std
  • Install with maximum operating frequency (optional)
    sudo apt-get install libedgetpu1-max

3: Install the PyCoral library

sudo apt-get install python3-pycoral

3.1: reboot the system

sudo reboot

3.5: Install new Picamera (already ???)

# sudo apt install -y python3-picamera2
sudo apt install libatlas-base-dev

3.6 Install OPENCV 4.5.x https://qengineering.eu/install-opencv-4.5-on-raspberry-64-os.html

4: Install LCD 1.47 display

wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.71.tar.gz
tar zxvf bcm2835-1.71.tar.gz 
cd bcm2835-1.71/
sudo ./configure && sudo make && sudo make check && sudo make install

#Bullseye branch system use the following command:
git clone https://github.com/WiringPi/WiringPi
cd WiringPi
./build
gpio -v

sudo wget https://www.waveshare.com/w/upload/8/8d/LCD_Module_RPI_code.zip
sudo unzip ./LCD_Module_RPI_code.zip -d ./LCD_Module_RPI_code/
cd LCD_Module_RPI_code/RaspberryPi/LCD_Module_RPI_code/RaspberryPi/python/example
python 1inch47_LCD_test.py 

IMG_1139 Medium

IMG_0694 Medium

0: Hardware

  • 4 Wheel Robot Chassis Smart Car with 4 DC motors Speed and Tacho Encoder (eBay) £20

image

  • L298N DC Motor Driver Module (PiHut) = £3.5 image

  • FPV Gimbal Pan Tilt Camera Platform Mount optional 2x SG90 Servos + Guide (eBay) = £12

image

  • 4x HC-SR04 Ultrasonic Range Finder Distance Measuring Module Sensor = £8 (£2 each)
    image
    image

  • Seamuing Raspberry Pi 4 Power Supply UPS Hat USB Expansion Board Power with 10000mAh Battery for Raspberry 4B 3B+ 3B 2B+ 2B = £32

image

  • Raspberry Pi 4 Model B 8GB = £85.5
    image

-Raspberry Pi Camera Module V2.1 = £28.5
image

  • Dual Fan Heatsink Case for Raspberry Pi 4 = £14
    image

  • Google Coral USB Accelerator - Edge TPU = £80

image

  • 1.47" Rounded SPI LCD Display Module (172x320) = £12 image

  • L-shabe USB-c to USB short power cable

  • small breadboard 30 lines

  • 8x 1.2v AA rechargeble batteries

  • GPIO extender

References

https://www.electronicshub.org/raspberry-pi-l298n-interface-tutorial-control-dc-motor-l298n-raspberry-pi/
https://github.com/garyexplains/examples/tree/master/servo
https://github.com/gadgetoid/Pinout.xyz
https://www.waveshare.com/wiki/1.47inch_LCD_Module
https://lastminuteengineers.com/l298n-dc-stepper-driver-arduino-tutorial/
https://github.com/raspberrypi/picamera2
https://raspberrypi.stackexchange.com/questions/82833/hc-sr04-randomly-stops-taking-readings

sudo apt update
sudo apt install build-essential
sudo apt install libatlas-base-dev
sudo apt install python3-pip
pip3 install tflite-runtime
pip3 install opencv-python==4.4.0.46
pip3 install pillow
pip3 install numpy

Notes: gpio22 = front midle sensor + resistor yello gpio27 = front midle sensor gpio17 = back sensor + resistor + yello gpio04 = back midle sensor

About

License:Apache License 2.0


Languages

Language:Python 100.0%