Back to My Student Page
  • Summary
  • Details

WEEK 16

INTERFACE AND APPLICATION PROGRAMMING


Assignment:
Write an application that interfaces with an input and/or output device that you made

What I used for this assignment
Material:
- Satshakit
- A motion sensor

Softwares:
- ArduinoIDE, for the programming
- Processing, for the programming
Here are the output files for this assignment:
Program
Video of my Nest Motion Interface

What I did:
I decided to do an interface that will show me if there is some motion inside the nests of my birdhouse.
For this I have 1 motion sensor in each nest of my birdhouse.
The display is a box showing the 6 nests of my birdhouse



DETAILS

Programming interface using Processing

I'm using Processing with following libraries: ControlP5, processing.serial, cc.arduino, org.firmata

After installing Processing software
we need to install few libraries

Notably library ControlP5
but also others like: processing.serial, cc.arduino, org.firmata

The sketch StandardFirmata is loaded on the Satshakit
using an Arduino Uno as ISP programmer

Here is my program
tested and validated with 1 motion sensor connected

Here is the display when there is some motion
in the Nest1

And here is the display when there is no motion
in the Nest1

Here is the wire connection for the test and validation

Putting a box on the sensor to simulate a "no motion" situation

Video of the interface working: