Giter Club home page Giter Club logo

magic-mirror-1's Introduction

Magic Mirror

Table of Contents

1) Hardware

1.1) Hardware Requirements

1.2) Hardware Setup

Both the Flick 3D and PIR Sensor are connected via a 3.3v level shifter, these can be easily found in either the Audio Mezzanine or the Sensor Mezzanine.

  • Flick 3D Gesture Sensor
Flick 3D 96Boards 3.3v
VCC 3.3v
GND GND
SDA I2C1_SDA
SCL I2C1_SCL
TS GPIO K
RST GPIO L
  • PIR Sensor
Flick 3D 96Boards 3.3v
VCC 3.3v
GND GND
SIG GPIO J

2) Software

2.1) Build Environment Setup

Note due to the use of mraa, it is recommended to either run everything with sudo or login as root

Setup ZRAM Swap

Although the project itself doesn't consume much RAM, the Qt Creator IDE can be resource hungry so to be on the safe side its better to follow this guide to prevent random lock-ups.

MRAA setup for Flick3D

Install Qt5

  • Make sure your Dragonboard-410c is connected to the internet.
  • $ sudo apt install qt-creator libqt5* qt5* xdotool

Setting up project in Qt Creator

  • Clone this repository:
    • $ git clone https://github.com/96boards-projects/magic-mirror
  • Open Qt Creator
    • Menu -> Programming -> Qt Creator
  • Create a new QT Quick Project
    • New Project -> Qt Quick Application Swipe -> Give it an appropriate name -> Keep pressing next and accept the default config
  • Copy Magic-Mirror Source Files
    • Copy all files from the repo folder to the project folder and replace existing Files

2.2) API-Keys

Generate API Keys

The application requires api-keys for live updates for weather and news. To get the api-keys and learn how to use the api data:

Place api-keys in Source

Replace the following strings after adding your api-keys

  • Page2Form.ui.qml line 27
  • Page3Form.ui.qml line 9

2.3) Running the Application

Press the green play button or use Ctrl+R to run the application and you should see an output similar to this:

  1. Change Log

Rev 1:

  • UI Control with 3D Gesture sensor
  • Screen on/off using PIR

Rev 0.1:

  • Finalized implementation of UI

magic-mirror-1's People

Contributors

ric96 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.