/Tinker

Using the TinkerForge IMU2 brick sensor board from Scala. Mirror of https://codeberg.org/sciss/Tinker

Primary LanguageScalaGNU Lesser General Public License v2.1LGPL-2.1

Tinker

Build Status

statement

This is a project for using the Java bindings to TinkerForge API through Scala. Specifically, to use the inertial measurement unit (IMU) sensors, IMU Brick v2 or IMU Bricklet v3. It is (C)opyright 2018–2023 by Hanns Holger Rutz. All rights reserved. The project is released under the GNU Lesser General Public License v2.1+ and comes with absolutely no warranties. To contact the author, send an e-mail to contact at sciss.de.

requirements / running

This project builds against Scala 3.x, 2.13, using sbt. To run: sbt 'runMain <class>':

  • sbt 'core/runMain de.sciss.tinker.Enumerate'
  • sbt 'core/runMain de.sciss.tinker.IMU_SimpleData --uid your-imu-brick-id'
  • sbt 'core/runMain de.sciss.tinker.IMU_AllData --uid your-imu-brick-id'
  • sbt 'core/runMain de.sciss.tinker.View --uid your-imu-brick-id'

To list your devices, run ./scripts/enumerate.sh. To run the IMU_OSC target that can send the sensor data to a target node via OSC, use sbt core/assembly and the scripts/imu_osc.sh script. ./scripts/imu_osc.sh --help for command line args.

The former recorder experiment is in sbt module recorder.