Git Product home page Git Product logo

ese5190-2022-lab1-firefly-sai's Introduction

University of Pennsylvania, ESE 5190: Intro to Embedded Systems, Lab 1

Sai Koushik Samudrala Sambasastry
Tested on: Lenovo Legion 5i, Ubuntu 22.04

Readme

This is my assignment, which was done with @SurajMarthy1001 for Lab-1: Firefly

This repository contains three .py files: Firefly Visualizer, mouse controller and Custom Visualizer.

3.2: Firefly Visualizer

The color sensor identifies the color variations from the input and converts it to an equivalent representation from 0 to 1025 for each channel. (apds.color_integration_time) with a sampling time gap of 2.78 ms. This value is passed on to the onboard neopixel LED. The LED simulates the color changes from the firefly are reflected in the LED output.

4.4: Custom Visualizer

##(KeyBoard_4.4 folder of repository) BLOCK DIAGRAM

The user adjusts the ambient brightness levels, which are identified by the photo-sensor, which transmits these values over the I2C interface via the stemma cable. The RP 2040 then compares the brightness levels and determines the keystrokes, which are passed to the computer via the USB-HID interface. These changes can then be observed on the text editor.

Link to GIF: https://github.com/koushik-sss/ese5190-2022-lab1-firefly-sai/raw/main/GIFs/CustomVisualizer.gif


3.2: Mouse Controller

The illumination on the photo-sensor of the APDS9960 board is mapped against the X-Axis movement of the mouse. If the illumination around the sensor is bright, the cursor moves towards the right by 2 units per signal. Similarly, if it is dark, the mouse cursor moves towards the left by 2 units per signal.

Link to GIF: https://github.com/koushik-sss/ese5190-2022-lab1-firefly-sai/raw/main/GIFs/MouseController.gif

ese5190-2022-lab1-firefly-sai's People

Contributors

koushik-sss avatar pixelflipping 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.