/moon-arrow

Code for controlling a moon arrow via johnny-five

Primary LanguageJavaScriptMIT LicenseMIT

moon-arrow

Code for johnny-five control of azimuth and altitude servos for moving moon arrow on a schedule

Installation

Configuration

  • Attach azimuth and altitude servos to desired pins with 5V power and ground also connected
  • Plug in Arduino to USB port
  • Determine port. On a Pi3 this should be /dev/ttyACM0 but may need to do some research depending on model/environment.
    On Windows:
  • Create config for local environment:
    • cp /path/to/repo/config.sample.js /path/to/repo/config.js
    • adjust constants in config.js as necessary, using port and pin data derived from above

Running

  • cd /path/to/repo/
  • node main.js