Skip to content
View in the app

A better way to browse. Learn more.

Opusmodus Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Lisp/Opusmodus to Arduino

Featured Replies

A simple way to send serial data to Arduino. I'm sending Data to a Servo Motor...

;; Setup TERMINAL (Mac)
;; stty -f /dev/dev/cu.usbmodem1401 9600 raw


(defparameter *arduino*
  (open "/dev/cu.usbmodem1401"
        :direction :output
        :if-exists :append
        :element-type '(unsigned-byte 8)))

;;Function
(defun send-byte (n)
          (uiop:run-program
           (format nil "printf '%b' \"\\x~2,'0X\" > /dev/cu.usbmodem1401"
                   n)))


;;Test
(loop repeat 20
        do (send-byte (random 100))
        do (sleep 1))

  • 1 month later...

I've only heard of Arduino, but what is a use case for Arduino with opm?
Thanks,

V

  • Author

For a project, I control servos and relays (as an instrument) via Arduino using LISP — although, of course, the same thing could also be done in MaxMSP (or with other programming environments). I’m a bit familiar with LISP, so I can use it to program structures, timing, rhythms, etc. — or, as in this particular case, a “3D sample space.” I read the elements of this space using different algorithms (boustrophedon, brownian bridge, kNN), essentially generating reading paths, and then send the resulting data/material to the Arduino to control the relays and motors.

Create an account or sign in to comment


© 2014-2026 Opusmodus™ Ltd. All rights reserved.
Product features, specifications, system requirements and availability are subject to change without notice.
Opusmodus, the Opusmodus logo, and other Opusmodus trademarks are either registered trademarks or trademarks of Opusmodus Ltd.
All other trademarks contained herein are the property of their respective owners.

Powered by Invision Community

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.