Coder Social home page Coder Social logo

land-yacht's Introduction

##Current Project Status

CAD models for the project can be found at https://grabcad.com/library/land-yacht-2015-1/ . Components are mounted, and PWM and encoder control are working. Needs to be done:

  1. Write some controllers!
  2. The encoder always starts at 0 (my code has 0 as facing forward), so you need to find a way to make sure the encoder always starts facing forward or doesn't always start from 0.
  3. Get GPS working with the SPI pins on the BeagleBone (I think it's SPI?).

##Connecting to the BeagleBone Black A script connect-ssh has been configured to connect to the BeagleBone using its ethernet adapter MAC address. Run ./connect-ssh <user> to use the script.

##Setting up the BeagleBone Black

  1. Install Debian 7.9 image to SD card.

  2. Set device IP to static (currently 192.168.0.105).

  3. Set up users as shown in info file.

  4. git clone this repo as hotsail home directory.

  5. Edit ~/.profile, append:

    export SLOTS=/sys/devices/bone_capemgr.9/slots
    export PINS=/sys/kernel/debug/pinctrl/44e10800.pinmux/pins

    This will allow you to access $SLOTS and $PINS easily, files that are used to manipulate device tree overlays and pin status. You can read about how to use these in the Exploring BeagleBone book.

  6. Run visudo as root, under Defaults env_reset add two lines:

    Defaults        env_keep += "SLOTS"
    Defaults        env_keep += "PINS"
  7. Now the Beaglebone is set up to easily add device tree overlays.

  8. f you want to auto disable/enable device tree overlays on boot, run these commands as root:

    mkdir /mnt/boot
    mount /dev/mmcblk0p1 /mnt/boot
    vim /mnt/boot/uEnv.txt
  9. Add these lines above the mmcargs line:

    ##Disable HDMI, enable PWM P9_22
    optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN capemgr.enable_partno=am33xx_pwm,bone_pwm_P9_22
  10. Change the capemgr.enable/disable_partno to the overlays you'd like to enable or disable.

  11. To use the Exploring BeagleBone library, there are a few steps needed.

    1. You will need to have cmake installed, which may or may not be in the repositories. I had to build it from source.
    2. You will need to run cmake .. && make && sudo make install in the exploringBBlibrary/build folder. If you're running into trouble look at "https://github.com/derekmolloy/exploringBB/tree/master/library".

Examples

  1. To enable PWM P9_22 and P9_16 on boot

    optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN capemgr.enable_partno=am33xx_pwm,bone_pwm_P9_22,bone_pwm_P9_16
  2. To enable eQEP2b (encoder support) on boot

    add CAPE=PyBBIO-eqep2b to /etc/default/capemgr
  3. The eQEP2b position can be accessed from

    /sys/devices/ocp.3/48304000.epwmss/48304180.eqep/position

    and it appears as if the every 360o is 4100 counts.

land-yacht's People

Contributors

imbuedhope avatar morganaa avatar sd5969 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

imbuedhope

land-yacht's Issues

Non Code Stuff

We should really push non code stuff to the wiki in this project instead and use links to sample code instead.

I feel like it's going to get out of hand pretty fast.

Thoughts?

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.