Coder Social home page Coder Social logo

andy's Introduction

Andy

Predictive Processing for Lego BrickPi3 robots

Setup:

https://www.ev3dev.org/downloads/
https://github.com/resin-io/etcher#debian-and-ubuntu-based-package-repository-gnulinux-x86x64
http://docs.ev3dev.org/projects/lego-linux-drivers/en/ev3dev-stretch/brickpi3.html#input-ports

http://docs.ev3dev.org/en/ev3dev-stretch/andy.platforms/brickpi3.html

    Enable BrickPi
    Uncomment: dtoverlay=brickpi3

    Enable sound by editing config.txt in EV3DEV_BOOT on the sd card
    Uncomment: dtparam=audio=on

https://www.ev3dev.org/docs/tutorials/connecting-to-ev3dev-with-ssh/
https://www.ev3dev.org/docs/tutorials/setting-up-wifi-using-the-command-line/

To connect:

> ssh [email protected]
> ssh [email protected] (latest)

password: maker

Before doing use apt-get:

> sudo apt-get update

To update the brickpi3 firmware:

> sudo update-brickpi3-fw

If you use asdf to install erlang and elixir, first do:

> sudo apt-get install build-essentials
> sudo apt-get install autoconf
> sudo apt-get install libncurses5-dev
> sudo apt-get install libssl-dev

To install Erlang and Elixir via asdf:

Install asdf -- See https://asdf-vm.com/#/core-manage-asdf-vm

> echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.bashrc
> echo -e '\n. $HOME/.asdf/completions/asdf.bash' >>  ~/.bashrc # optional
> source ~/.bashrc

Then:

> asdf plugin-add erlang
> asdf plugin-add elixir
> asdf install erlang 21.2.2 # Any OTP 21 version should work
> asdf install elixir 1.8.1-otp-21
> asdf global erlang 21.2.2
> asdf global elixir 1.8.1-otp-21

To get the source code for Andy on the Raspberry Pi:

> git clone https://github.com/jfcloutier/andy.git
> cd andy
> mix deps.get
> mix compile

To update the source code:

> git checkout master
> git pull

To reset the robot (erase its accumulated experience)

> rm memory.dets

To launch on the robot:

> ANDY_SYSTEM=brickpi ANDY_PLATFORM=rover iex -S mix

To stop the robot and retain newly acquired experience:

> Andy.shutdown

To test on PC with mock rover:

> iex -S mix

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.