Coder Social home page Coder Social logo

motocape's Introduction

CodeFactor

This source is a new WIP b/c Adafruit_BBIO is no longer being developed or maintained?

MotorCape from GHI and BeagleBoard.org

...

Okay, once attached is when we can start development. We will need to make a service by way of a .service file, a couple of software examples, and use systemctl to make our service run on boot. For the service file, go to /etc/systemd/system. Make a .service file by using your favorite editor, nano for instance, and use this idea for a .py file named MotoCape.py:

[Unit]
Description=Whatever You Would Like to Describe about Your File

[Service]
ExecStart=/The/Path/To/Your/MotoCape.py

[Install]
WantedBy=multi-user.target

Once we have our file, .service file, save it and exit. Notice in the [Unit] section...there is a Description directive. I described what you should put there but have at it. The best way to add content to the Description= line is to make your description as well understood as possible. Just nothing all that vague should do.

In the [Service] section after ExecStart=, the PATH to your file, whatever type of file it may be at this point, should start w/ your working directory and end w/ the file being run on boot.

On the [Install] section after WantedBy=, type multi-user.target. There are many recommendations on what to read and where to read it. I have found this site to be the online page w/ the most info: https://www.freedesktop.org/wiki/Software/systemd/. ...

Making stuff move around...

You can look to MotoCape.py and bobo.html in the templates directory for a quick software example. As you can tell, I am using motorOne and motorFour only.

Please keep in mind that when applying power to the MotorCape, the motors will only move if the BBB, BBGG, or BBBW are plugged in via barrel jack.

You can still use the USB connection to debug and create software for your Cape on your BBB/variation.

... Dec. 22, 2022 ...

You may not be able to use Adafruit_BBIO any longer, i.e. as it is not being developed any longer...

GO!

I got source from adding, making additions, and reading. 
Some are from www.w3schools.com, a book I will mention (https://hub.packtpub.com/getting-started-beaglebone/), and a person from 
IRC at #beagle!

motocape's People

Contributors

silver2row avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

blurfl

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.