Version 15 (modified by 9 years ago) (diff) | ,
---|
Raspberry Pi Mini-bots
- Raspberry Pi Zero
- Install Jessie Lite Raspbian Jessie OS
- Installation instructions
- Setup for USB connectivity
- Configure your Pi with a fixed MAC address so you don't have to reconfigure windows networking every time you set it up. From https://gist.github.com/Gadgetoid/319ecf8e3c5d3660e298, add the following line below 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.
g_ether.dev_addr=5a:77:1e:af:8e:9e g_ether.host_addr=72:8d:1f:c4:e8:ca
- 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
add: nameserver 8.8.8.8
- sudo raspi-config
What do we do in here?
- Update to latest software:
- sudo apt-get update
- sudo apt-get upgrade
- Install Java JDK:
sudo apt-get install oracle-java8-jdk
- Install Pi4J
- Install git:
sudo apt-get install git
- Install wiringPi:
mkdir ~/dev;cd ~/dev git clone git://git.drogon.net/wiringPi cd wiringPi ./build
- gpio -v
- man gpio
Ultrasonic Range Sensor