Skip to content

Omaha-Food-Computer-Initiative/openag_phalange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openag_phalange

Firmware for microcontrollers (e.g. Arduino Mega2560) to interface peripherals (sensors & actuators) with a single board computer (e.g. Raspberry Pi 3).

Compatibility

This code should be able to be relatively hardware agnostic but has only been tested on Arduino Mega 2560 as of May 22, 2016. The idea is that this repo can be cloned / downloaded and be able to run on the ArduinoIDE AND platformio. ArduinoIDE users will need to add the submodules found in this repo's /lib to ~/Documents/Arduino/library.

The example code in the submodules (i.e. openag_am2315) should function properly in both the ArduinoIDE (File/Examples/<submodule name>/example) and in platformio (openag_phalange/lib/<submodule>/example). This means that each example functions as a standalone platformio package.

Install Instructions

  1. Clone repo: git clone <repo name>
  2. Configure git update: git config --global alias.update '!git pull && git submodule update --init --recursive'
  3. Update repo: git update
  4. Install platformio: pip2 install -U platformio
  5. Connect arduino to rpi w/USB cable
  6. Compile and upload: pio run -t upload

Update Submodule

  1. cd <submodule dir>
  2. git checkout master
  3. git pull
  4. cd <module dir>
  5. git commit

Remove Submodule

  1. git submodule deinit <submodule>
  2. git rm <submodule> # Note: <submodule> (no trailing slash)
  3. rm -rf .git/modules/<submodule>

Submodule Push

  1. cd <submodule>
  2. git checkout master
  3. <hack,edit>
  4. git commit -a -m "commit in submodule"
  5. git push
  6. cd ..
  7. git add <submodule>
  8. git commit -m "Updated submodule"

Platformio Commands

  • initialize: pio init --board megaatmega2560
  • compile: pio run
  • compile & upload: pio run -t upload
  • serial monitor: pio serialports monitor

Links

About

Firmware for microcontrollers (e.g. Arduino Mega2560) to interface peripherals (sensors & actuators) with a single board computer (e.g. Raspberry Pi 3).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Other 100.0%