Files
darkwater_docs/escapegettingstarted.md
2016-10-11 21:48:53 +01:00

2.1 KiB

Getting started

Board layout

Setup your ESCAPE

Attaching a Servo

Attaching a motor

Attaching an RC receiver

Setting up your Pi

Before we can start using the ESCAPE board we need to enable the interfaces that the board uses on your Raspberry Pi.

The ESCAPE board is controlled using the I2C interface. Any expansion boards attached to your ESCAPE 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

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

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:

$ sudo raspi-config

Once the menu is showing, scroll down to the Advanced Options menu and press Enter.

rasbpi config adv

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

Go to the Advanced Options again and do the same for SPI

rasbpi config adv spi

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.

Next steps