NOTE: These instructions assume you can use nano and raspi-config. NOTE: These instructions are for setting up a Sumo Bot or Line following bot from scratch. If you are starting with a complete image file, these instructions DO NOT APPLY! NOTE: These instructions assume that your bot is fully assembled and wired. 1. Download the latest Raspbian Lite image from: https://www.raspberrypi.org/downloads/raspbian/ Put the image onto a MicroSD card using Win32DiskImager or Etcher. Insert the card into the Pi ZeroW 2. Put fresh batteries in the bot, or use an external 7V-9V power supply connected to J15. Connect a monitor and keyboard to the Pi. Put a jumper on J16 to power up the bot. Once the Pi boots, login. 3. Run raspi-config sudo raspi-config a. Change the user password!!! b. Under "Interfacing Options" 1. Enable SSH 2. Enable SPI 3. Enable I2C c. Under "Advanced Options" 1. Under "audio" Force analog (3.5mm Headphone Jack) audio 2. Set memory split to 16 d. Under "Localization Options" 1. Set locale 2. Exit raspi-config, do the reboot 3. Run raspi-config again and set timezone, keyboard, and WiFi country e. Setup WiFi login under "Network Options" f. Exit raspi-config g. Reboot (If Raspi-Config does not ask for a reboot) sudo reboot 4. Update the software, then reboot sudo apt-get update sudo apt-get dist-upgrade sudo reboot 5. Get the setup script file For the SumoBot wget https://www.jsconsulting.com/explorers/sumo/docs/sumo.sh -O setup For the LFBot wget https://www.jsconsulting.com/explorers/sumo/docs/lf.sh -O setup 6. Change install file to be executable chmod +x setup 7. Run the install script ./setup a. You will see errors about not being able to start DHCP, this is normal during the install b. At one point you will be asked to enter the samba user password. It is recomened to use the same one you set for the pi user. c. When the script is finished it will shutdown the Pi. Wait for the status LED to go off before proceeding. 8. Hookup the PC a. Remove the jumper on J16 to power down the bot. b. Disconnect the Keyboard and monitor. c. Plug the jumper back onto J16 to power up the bot. d. Hookup a usb cable from the PC to the Pi. e. After the Pi boots use SSH to login to the Pi at 192.168.42.1 NOTE: It could take a little while for the connection to be ready. f. If windows does not find drivers for USB NDIS device Open device driver Select NDIS device from "unknown" list and select update driver Select "Browse my machine" Select "Let Me Pick" Select device type: network adapter Manufacturer: skip Microsoft and select Microsoft Corporation Select Remote NDIS based Internet Sharing Device OK the not safe message and install it 9. Remove the setup script rm setup 10. Run the bot software install script ./bot-install The script will reboot the bot when it's done. After the reboot, log back into the bot and remove the script rm bot-install 11. The blue LED on the I/O board will come on solid (no blinking) once the OS boots if everything is programmed OK. 12. If the last step went OK (Blue LED on solid) remove the jumper on J16