Skip to content

A box that feels pain, a 24 hour hackathon project.

Notifications You must be signed in to change notification settings

qqii/paindoras-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Paindora's Box

A box that feels pain, a 24 hour hackathon project.

  • bees MAKE-ATHON 2018

  • Video here

Getting Started

Hardware

  1. Souder the Enviro pHAT

System

  1. Install NOOBS (to then install Raspbian)
  2. Enable I2C
  3. Enable SSH (for your own sake)
  4. Set the speaker to the default sound device
  5. Reboot

Libraries

  1. curl https://get.pimoroni.com/envirophat > install.sh
  2. ./install.sh
  3. sudo apt-get install python3-numpy (already installed)
  4. sudo apt-get install python3-pygame (already installed)
  5. pip3 install sklearn
  6. pip3 install python-twitter
  7. Obtain twitter api keys and create a file called secret.py in the following format
consumer_key="xxx"
consumer_secret="xxx"
access_token_key="xxx"
access_token_secret="xxx"

Installing

  1. git clone https://github.com/qqii/paindoras-box/

Usage

scream.py

Usage: ./scream.py

Plays the screaming sound.

shout.py

Usage: ./shout.py

Tweets a message to @robot_screaming.

classifier.py

Usage:
  ./classifier.py train (shaking|still)
  ./classifier.py classify x

where x is a jerk

Currently classifies acceleration data into the class "violent" and "non violent" using a naive bayes classifier based on the jerk of the box at a given time.

sensors.py

Usage: ./sensors.py (delay)

Polls acceleration and light sensor every delay seconds. Replace this with your implementation if you have a different sensor kit.

main.py

Usage: ./main.py [delay]

Creates life, with a default polling delay of 0.1s.

Contributing

Don't. Just don't.

Acknowledgments

About

A box that feels pain, a 24 hour hackathon project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages