Skip to content

raspycar/docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 

Repository files navigation

The Raspycar projects docs

Raspberry Pi OS setup

Image download and install

SSH setup

  • Go to the mounted boot SD card partition and create a ssh file: touch /<path_to_mounted_boot/ssh

Wifi setup

  • Create a wpa_supplicant.conf in the mounted boot folder and fill it with the following lines:
country=COUNTRY-CODE
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="NETWORK-NAME"
    psk="NETWORK-PASSWORD"
}

Obviously, you need to replace NETWORK-NAME and NETWORK-PASSWORD with your wifi network credentials. COUNTRY-CODE is your country code following ISO-3166 standard.

Final steps

  • Insert the SD card in your Raspberry Pi and power it up.
  • Identify your Raspberry PI IP address on your router once is powered up.
  • Connect via SSH to its IP address ssh pi@(password israspberry` by default)
  • Run raspi-config: sudo raspi-config
    • Change pi user password (recommended)
    • Under Interfacing options:
      • Enable Camera
      • Enable SSH
      • Enable SPI

Motor pins setups

You now need to wire the motors shield to the Raspberry Pi.

Image from (GPIOZero documentation)[https://gpiozero.readthedocs.io/en/stable/recipes.html#pin-numbering]

Pins layout

Motors Raspberry Pi
5V+ #2
GND #6
IN1 #12 (GPIO18)
IN2 #13 (GPIO27)
IN3 #18 (GPIO24)
IN4 #19 (GPIO10)

Setup controller app

  • Clone the setup repository: git clone [email protected]:raspycar/setup.git
  • Change current directory to the setup dir
  • Install ansible: pip install ansible

About

The Raspycar projects docs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published