Giter VIP home page Giter VIP logo

raspberrypi-rustpy's Introduction

Raspberry Pi Hardware Control in Rust and Python

Tested on Raspberry Pi 3 running on Raspberry Pi OS (32 bit).

Smarphone Screenshot

How to wire

Important notes:

  • Make sure you have the correct amperage for the 5V power supply for your number of LEDs.
  • The ground of the LEDs must be connected to a ground pin on the microcontroller.
  • Add a high capacitor between the LEDs power supply and the LEDs.
  • Add about a 400 ohms resistor for the data line from the microcontroller to the LEDs.

How to use

  • Connect to the bluetooth dongle by using sudo bluetoothctl from the Raspberry Pi. Once you have established a connection, open an RFCOMM port with sudo rfcomm connect hci0 hc05_addr.
  • Start the Rust web server with ROCKET_ENV=staging cargo run --release in the WebServer/ folder.
  • Start the Python controller with python3 demo_controller_app.py in the ScriptControl/ folder.
  • Open a browser and enter the RPi_IP:8000 as the URL.

raspberrypi-rustpy's People

Contributors

montmejat avatar

Stargazers

Samuel Jalade avatar  avatar Muhammed Doğan avatar

Watchers

 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.