Table of Contents

CHIP

!! See Notes in dropbox for specific implementation

Basic Setup

Usuefull tools on known system

Chip via tty

Pin out:

Command:

Default login

Basic Wifi setup:

tty info:

GPIO on CHIP

Relaxing Natural Bug bot

Steps:

Old Project: Sun set light (a good idea still, but I like the bugs better)

GPIO Chip Documentation

GPIO is not universal

Different boards have different GPIO pinouts. Make sure you understand this when changing boards. For chip there are baically 2 different versions based on the linux kernal. You can find this by going to /sys/class/gpio:

In the future you may need to include code to compenstate for the different versions. See the chip GPIO page for more details
In our case, we are in kernal 4.3 so have gpiochip408. So you you add to 408 to corresponding P numbers

This is VERY important because you would use the string 'gpio415' for your code

Code with Pins

Below examples follow the same pin number in the example, gpio415.

View pin status

A status has to be assigned to a pin for it to have this view, see below about setting pins

Setting In - Listen to pins

Read value

You will notice that some of these commands do not necisarily have files associated with them. That is ok.

Setting out

assigning valule

You can assign a value to the

Cleanup

When you are done you should cleanup your pins so they are not in or out