Coder Social home page Coder Social logo

n-nsh / donkey_car_button_shim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from custom-build-robots/donkey_car_button_shim

0.0 2.0 0.0 11 KB

Use the PIMORONI button SHIM to start the Donkey Car training mode or self-driving mode as you like.

Python 98.32% Shell 1.68%

donkey_car_button_shim's Introduction

Donkey Car - button SHIM

I developed this idea during meetups and presentation when I had problems to connect the Donkey Car to the local WIFI. To start the main functions from the Donkey Car like the drive mode to show the car in cation it was much easier and safer to use the buttons.

At the end I implemented the PIMORONI button SHIM to start the Donkey Car training mode or self-driving mode... or just to shutdown the Conkey Car at the end of a presentation or run.

Da detailed description is available on my blog: https://custom-build-robots.com/raspberry-pi-roboter/autonom-fahrendes-raspberry-pi-ki-roboter-auto-manuelle-short-keys/10922

My Donkey Car with the mounted button SHIM from PIMORONI.

Donkey Car button SHIM

Function overview buttons

The picture below shows the functions I implemented in the button.py program to control my Donkey Car.

Donkey Car button SHIM function overview

Autostart

This will start the control.sh script every time the Raspberry Pi is rebooted. For a better understanding the control.sh script will start the button.py script after each reboot of the Donkey Car.

To autostart the button.py program add the following line into your crontab.

@reboot pi /home/pi/control.sh >> /home/pi/control.log 2>&1 &

donkey_car_button_shim's People

Contributors

custom-build-robots avatar

Watchers

 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.