Changes between Version 26 and Version 27 of PiBots


Ignore:
Timestamp:
Aug 21, 2016, 3:35:11 PM (9 years ago)
Author:
David Albert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PiBots

    v26 v27  
    11Raspberry Pi Mini-bots
    22
    3 [wiki:PiBotHardware PiBot Hardware]
     3[wiki:PiBotHardware PiBot Hardware Components List]
    44
    55* [https://www.raspberrypi.org/products/pi-zero/ Raspberry Pi Zero]
    6 * Install Jessie Lite to your sd card [https://www.raspberrypi.org/downloads/raspbian/ Raspbian Jessie OS]
    7    * [https://www.raspberrypi.org/documentation/installation/installing-images/README.md Installation instructions]
    8    * [http://blog.gbaman.info/?p=791 Setup for USB connectivity]
    9    * Configure your Pi with a fixed MAC address so you don't have to reconfigure windows network sharing every time you connect it. From [https://gist.github.com/Gadgetoid/319ecf8e3c5d3660e298], add the following stanza to the end of your /boot/cmdline.txt file in your Jessie install.  Use a unique pair of MAC address for each Pi.  Note there is exactly one space between each term, and the whole cmdline.txt file is one line. 
    10      {{{
    11        g_ether.dev_addr=5a:77:1e:af:8e:9e g_ether.host_addr=72:8d:1f:c4:e8:ca
    12      }}}
    13 * Install Bonjour Services from Apple.   This allows your windows machine to 'just know' the hostname raspberrypi.local.  See [https://support.apple.com/downloads/bonjour%2520for%2520windows Bonjour for Windows]
    14 * 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).
    15 * 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.
    16 * Set up connection sharing between Windows and the Pi. 
    17     * Go to Control Panel > Network and Sharing Center > Adapter Settings.
    18     * 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".
    19     * 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.
    20     * NOTE: on some systems (e.g. a laptop with WiFi access only), you may not be able to choose the specific network connection you will share your main connection with, you just enable internet sharing.  You may also need to manually add the Google name server (8.8.8.8) to the IPv4 properties of the virtual (USB) connection that corresponds to your Pi:
    21          * Control Panel -> Network and Internet -> Network Connections
    22          * Right click the connection labeled USB Ethernet/RNDIS Gadget and select Properties
    23          * Select Internet Protocol Version 4 (TCP/IPv4) and press the Properties button
    24          * Under Use the Following DNS server addresses, set the preferred DNS server to 8.8.8.8
    25          * Press OK
    26 * Connect to Pi: {{{ ssh pi@raspberrypi.local }}}   (password is raspberry)
    27 * Configure Pi
    28    * Setup DNS: {{{ sudo nano /etc/resolv.conf }}}.  ''Do we need this if we're using Windows Network sharing?'' 
    29          add: nameserver 8.8.8.8   
    30    * sudo raspi-config
    31          ''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.)
    32    * Update to latest software (this will take a while):
    33      {{{
    34        sudo apt-get update
    35        sudo apt-get upgrade
    36      }}}
    37 * Install Oracle Java JDK: {{{ sudo apt-get install oracle-java8-jdk }}}.  Do not use OpenJDK, its slower.
    38 * Install git: {{{ sudo apt-get install git }}}
    39 * Install [http://wiringpi.com/ wiringPi]:
    40   {{{
    41     mkdir ~/dev;cd ~/dev
    42     git clone git://git.drogon.net/wiringPi
    43     cd wiringPi
    44     ./build 
    45    }}}
    46   Then, test by running  "gpio -v" and "man gpio"
    47 * Install [http://pi4j.com/ Pi4J]
    48    * See: http://www.savagehomeautomation.com/projects/pi4j-connecting-java-to-the-raspberry-pi.html
    49    * [https://www.youtube.com/watch?v=grItDpy3TRM video tutorial]
    50    * Easy way, type: 
    51      {{{
    52        cd ~/dev
    53        curl -s get.pi4j.com | sudo bash
    54      }}}
    55 * ''Do we use Maven?''
    56 * 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.
    57 
    58 
     6* [wiki:PiBotOsInstallation OS Setup/Installation]
    597
    608Ultrasonic Range Sensor