/Flick

Resources for the Flick range of boards and cases

Primary LanguageC

Flick

This repository contains software and resources for the Flick range of gesture sensing and 3D tracking add on boards (and cases) for the Raspberry Pi and standalone applications (and soon BeagleBone, Arduino and more!). Brought to you by Pi Supply

Setup Flick

Just run the following script in a terminal window and Flick will be automatically setup.

# Run this line and Flick will be setup and installed
curl -sSL https://pisupp.ly/flickcode | sudo bash

Python API (Coming soon)

Command Line

# Run a demo script to test the various gestures
flick-demo

Hardware tips

You can find a full quick start guide at the Maker Zone Flick Quick Start and FAQ where we have also provided a pinout diagram for all of the boards.

Flick Large pin mapping

We arranged the connectivity so that only the pins on the left side of Raspberry Pi's header are required to be connected to the Flick Large.

Flick -> Raspberry Pi

LED2 (Red)   -> Pin 15
LED1 (Green) -> Pin 7
GND          -> Pin 9
TS           -> Pin 13
Reset        -> Pin 11
SCL          -> Pin 5
SDA          -> Pin 3
VCC          -> Pin 1

Controlling the dual LED on Flick Large

We have provided a dual LED for additional customisable feedback on the Flick Large. The red LED is connected to Pin 15/GPIO22 whereas the green LED is connected to Pin 7/GPIO4. You can drive these LEDs programmatically or via the command line.

Bash

This will turn on the green LED

gpio -g mode 22 out
gpio -g write 22 1

This will turn off the red LED

gpio -g mode 4 out
gpio -g write 4 0

Python

This will turn off the green using RPi.GPIO

import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(22, GPIO.OUT)
GPIO.output(22, True)

This will turn off the green LED using gpiozero

from gpiozero import LED
led = LED(22)
led.on()

Additional information

The Flick boards use the MGC3130 3D gesture controller based on Microchip's patented Gestic© technology. You can find more information at Microchips's website

The Flick boards can also be used with the Microchip Aurea Software Package and the MGC3130 Hillstar Development Kit. The Hillstar Development kit contains a USB to I2C interface board which allows you to connect the Flick boards (via a jumper cable) to a PC. The Aurea software comes with a demo application which can be used to test the boards and program new firmware. It also has a mouse emulator and a media player controller.