wiki:PiBots

Version 24 (modified by David Albert, 9 years ago) (diff)

--

Raspberry Pi Mini-bots

PiBot Hardware

  • Raspberry Pi Zero
  • Install Jessie Lite to your sd card Raspbian Jessie OS
  • Install Bonjour Services from Apple. This allows your windows machine to 'just know' the hostname raspberrypi.local. See Bonjour for Windows
  • Connect your Pi to the computer via a USB 2.0 port. On the Pi use the usb port for data and power, not the one on the end (which is power, no data).
  • Wait a while while the Pi boots and your USB drivers for the Pi are installed. Once the light on the Pi should be solid green after a while and the driver is installed, continue.
  • Set up connection sharing between Windows and the Pi.
    • Go to Control Panel > Network and Sharing Center > Adapter Settings.
    • Identify the name of the network corresponding to the Pi--Its a Unidentified Network, USB Ethernet/RNDIS Gadget. Its probably something generic like "Ethernet 3".
    • Right click on your main ethernet card. Pick Properties > Sharing Tab. Check "Allow other network users to connect through this computer's internet connection, and pick the name of the home networking connection identified in the step above. Click OK.
  • Connect to Pi: ssh pi@raspberrypi.local (password is raspberry)
  • Configure Pi
    • Setup DNS: sudo nano /etc/resolv.conf . Do we need this if we're using Windows Network sharing?

add: nameserver 8.8.8.8

  • sudo raspi-config

What should be done in this application? (If its "expand to use the whole sd card", that forces a reboot, and should probably move to the last step.)

  • Update to latest software (this will take a while):
      sudo apt-get update
      sudo apt-get upgrade
    
  • Install Oracle Java JDK: sudo apt-get install oracle-java8-jdk . Do not use OpenJDK, its slower.
  • Install git: sudo apt-get install git
  • Install wiringPi:
      mkdir ~/dev;cd ~/dev
      git clone git://git.drogon.net/wiringPi
      cd wiringPi
      ./build  
    
    Then, test by running "gpio -v" and "man gpio"
  • Install Pi4J
  • Do we use Maven?
  • Shutdown your pi with 'sudo halt', disconnect it and reconnect it again to reboot it fully. You may have to reassign Windows Network Sharing connections one more time since the MAC is now constant, but it should stick after that.

Ultrasonic Range Sensor