# Getting started ![640](/images/640-450.png) Welcome to the 640 board - this guide will describe all the features of the 640 board and show you how to control up to 6 motors or 3 stepper motors and 2 servos very simply. ## Board layout Before we start to assemble your board, we'll take a look at what each section is and what it is for. ##### CPPM / PPM-SUM ![640 CPPM](/images/640-cppm.png) This is the connection that allows you connect a Radio Control (RC) receiver so that you can extend the range of control for your robot. ##### Servos ![640 Servos](/images/640-servo.png) The 640 board has connections for two Servos. They default to being powered by the Raspberry Pi 5v supply, but we can switch them to be powered by the external battery supply if we want to. ##### Motors ![640 Motors](/images/640-motors.png) The 640 board can control 6 independent motors. Each motor has a connection with two pins (or terminals if you are using the screw terminal connections). It doesn't matter which way around you wire your motor, just make sure that you wire them all the same way. If you find that sending a Forward command makes your robot go backwards, then you can switch the wires around. ##### Power ![640 Power](/images/640-power.png) The power connection can accept from 2v all the way up to 11v DC - the power you connect here is isolated from your Raspberry Pi and only goes to the motors. Make sure you match your recommended motor voltage as too much power can damage them, and too little won't make them turn. ##### Expansion area ##### Address selection ## Setup your 640 ### Assemble the parts **IMPORTANT** - if you have an expansion board that you want to add to your 640 board, then you should add that first as it will be a lot easier than adding it after soldering connectors to the board. ### Attached the 2 pin servo header ### Attach the motor and power terminals ### Attach the header ## Setting up your Pi Before we can start using the 640 board we need to enable the interfaces that the board uses on your Raspberry Pi. The 640 board is controlled using the I2C interface. Any expansion boards attached to your 640 board are controlled using the SPI interface. ### Enable I2C and SPI in Pixel If you are using the graphical interface on your Raspberry Pi then click on your main menu icon, move down to *Preferences* and click on the *Raspberry Pi Configuration* menu item. Once open click on the *Interfaces* tab and you should see something like in the image below. ![rasbpi config i2c](/images/raspberryi2c.png) Make sure that the line labelled I2C is set to enabled. If you have an expansion board then you'll need to enable the SPI interface as well on the line above, so click the *Enabled* setting next to the *SPI* label ![rasbpi config spi](/images/raspberryspi.png) Once you click Ok you may be promtped to reboot your Raspberry Pi - go ahead and reboot. ### Enable I2C and SPI on the command line If you are only using the command line on your Raspberry Pi then you will need to use the text version of the Raspberry Pi configuration tool to enable the interfaces. Type the following to bring up the configuration interface: ``` bash $ sudo raspi-config ``` Once the menu is showing, scroll down to the *Advanced Options* menu and press Enter. ![rasbpi config adv](/images/advoptions-450.PNG) Now we'll need to enable the I2C interface, so move down *I2C* menu and press Enter. You'll be asked if you want to enabled I2C - select *Yes* and you will see a confirmation and be returned to the main menu. ![rasbpi config adv i2c](/images/i2c-450.PNG) Go to the *Advanced Options* again and do the same for *SPI* ![rasbpi config adv spi](/images/spi-450.PNG) This time when you are returned to the main menu, move down to the *Finish* option (pressing the right arrow key twice will get you there) and press enter. You have now enabled the interfaces you need to use your board. ## Wiring everything up ### Attaching the power ### Attaching a Servo ### Attaching a motor ### Attaching an RC receiver ### Next steps