Thanks for your repkly szymon_k.
Unfortunately i had problems during the install on my mojave mac.
I have also tried installing node as per the monome instruction so i must be doing something wrong.
I have had folder permission errors and tried doing sudo commands, but have not got it working so far.
I will let you know how i do, many thanks!

Update:

I have been able to install node and npm on my work windows machine, which is kind of akward :frowning:and also run npm install -g node-serialosd , the windows console reports node-serialcd@@0.0.3 and shows no errors.

Now im puzzled!

In case you haven’t tried it this way, you can install node without using the Terminal

Hi, Thanks for the reply.
I managed to install node as per the instructions on the webpage linked, cheers.

I got this message on the terminal:

Thopa-Mac-Olds-MacBook-Pro:~ thopa_mac_old$ sudo npm i -g npm

⸨░░░░░░░░░░░░░░░░░░⸩ ⠧ rollbackFailedOptional: verb npm-session fa56b276ceb6ebd

/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js

/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js

  • npm@6.9.0

updated 1 package in 17.746s

Thopa-Mac-Olds-MacBook-Pro:~ thopa_mac_old$

Thopa-Mac-Olds-MacBook-Pro:~ thopa_mac_old$

now… when i try:

npm install -g node-serialoscd

At first i get all this errors:

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules

npm ERR! path /usr/local/lib/node_modules

npm ERR! code EACCES

npm ERR! errno -13

npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’

npm ERR! { [Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’]

npm ERR! stack:

npm ERR! ‘Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’’,

npm ERR! errno: -13,

npm ERR! code: ‘EACCES’,

npm ERR! syscall: ‘access’,

npm ERR! path: ‘/usr/local/lib/node_modules’ }

npm ERR!

npm ERR! The operation was rejected by your operating system.

npm ERR! It is likely you do not have the permissions to access this file as the current user

npm ERR!

npm ERR! If you believe this might be a permissions issue, please double-check the

npm ERR! permissions of the file and its containing directories, or try running

npm ERR! the command again as root/Administrator (though this is not recommended).

npm ERR! A complete log of this run can be found in:

npm ERR! /Users/thopa_mac_old/.npm/_logs/2019-05-29T11_33_33_117Z-debug.log

And if finally it try with the sudo command i get this errors:

Thopa-Mac-Olds-MacBook-Pro:~ thopa_mac_old$ sudo npm install -g node-serialoscd

/usr/local/bin/serialoscd -> /usr/local/lib/node_modules/node-serialoscd/index.js

serialport@6.2.2 install /usr/local/lib/node_modules/node-serialoscd/node_modules/serialport

prebuild-install || node-gyp rebuild

prebuild-install WARN install EACCES: permission denied, access ‘/Users/thopa_mac_old/.npm’

gyp WARN EACCES user “root” does not have permission to access the dev dir “/Users/thopa_mac_old/.node-gyp/10.16.0”

gyp WARN EACCES attempting to reinstall using temporary dev dir “/usr/local/lib/node_modules/node-serialoscd/node_modules/serialport/.node-gyp”

gyp WARN install got an error, rolling back install

gyp WARN install got an error, rolling back install

gyp ERR! configure error

gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/usr/local/lib/node_modules/node-serialoscd/node_modules/serialport/.node-gyp’

gyp ERR! System Darwin 15.6.0

gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”

gyp ERR! cwd /usr/local/lib/node_modules/node-serialoscd/node_modules/serialport

gyp ERR! node -v v10.16.0

gyp ERR! node-gyp -v v3.8.0

gyp ERR! not ok

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! serialport@6.2.2 install: prebuild-install || node-gyp rebuild

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the serialport@6.2.2 install script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

npm ERR! /Users/thopa_mac_old/.npm/_logs/2019-05-29T11_34_23_600Z-debug.log

Is there a way to install the file locally? I have the one posted on:

https://github.com/szymonkaliski/node-serialoscd

Many thanks!

**Edited: **

I have tried with another package, i get errors but looks like it installed “right”?

Thopa-Mac-Olds-MacBook-Pro:~ thopa_mac_old$ npm install easyimage

npm WARN saveError ENOENT: no such file or directory, open ‘/Users/thopa_mac_old/package.json’

npm WARN enoent ENOENT: no such file or directory, open ‘/Users/thopa_mac_old/package.json’

npm WARN thopa_mac_old No description

npm WARN thopa_mac_old No repository field.

npm WARN thopa_mac_old No README data

npm WARN thopa_mac_old No license field.

  • easyimage@3.1.1

added 7 packages from 5 contributors and audited 7 packages in 55.874s

found 0 vulnerabilities

Sorry for the question, when you say:

Also the command is just serialoscd MONOME_TTY so for example: serialoscd /dev/cu.usbmodem1411

Shall i type erialoscd /dev/cu.usbmodem1411 inside terminal or inside node?

Sorry for the questions, complete noob on this.

Cheers

last edit:

I think im starting to understand node better following the grid studies node install instruction which where successfull.

I created another dir call node-serialoscd and tried running the same process, which fails at the end when trying to sudo npm install --g node-serialoscd

Thopa-Mac-Olds-MacBook-Pro:node_serialoscd thopa_mac_old$ sudo npm install --g node-serialoscd (im confused if its – double or single before g and – - double or single between node and serialoscd, have tried both without sucess.

/usr/local/bin/serialoscd -> /usr/local/lib/node_modules/node-serialoscd/index.js

serialport@6.2.2 install /usr/local/lib/node_modules/node-serialoscd/node_modules/serialport

prebuild-install || node-gyp rebuild

prebuild-install WARN install EACCES: permission denied, access ‘/Users/thopa_mac_old/.npm’

gyp ERR! configure error

gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/usr/local/lib/node_modules/node-serialoscd/node_modules/serialport/build’

gyp ERR! System Darwin 15.6.0

gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”

gyp ERR! cwd /usr/local/lib/node_modules/node-serialoscd/node_modules/serialport

gyp ERR! node -v v10.16.0

gyp ERR! node-gyp -v v3.8.0

gyp ERR! not ok

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! serialport@6.2.2 install: prebuild-install || node-gyp rebuild

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the serialport@6.2.2 install script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

npm ERR! /Users/thopa_mac_old/.npm/_logs/2019-05-29T12_59_07_671Z-debug.log

Thopa-Mac-Olds-MacBook-Pro:node_serialoscd thopa_mac_old$

A few things-

  1. you should never have to run npm with sudo. If you have directory permission issues you should fix them: https://stackoverflow.com/questions/29468404/gyp-warn-eacces-user-root-does-not-have-permission-to-access-the-dev-dir/29787502#29787502
  2. this command: npm install -g node-serialoscd is telling npm to install the module globally. Doing this should give you the ability to run serialoscd in the terminal.
  3. In this context you can safely ignore WARN messages from npm.
1 Like

Hi!

Thanks a lot for your reply!

I have managed to get it working and the UNTZ is now recognized as a serial device with the monome home patch !

This is great news as i thought that the untz (which is already build and finished) and the HellaUntz (which i got soldered but have to put together) where not going to be able to be used as a “monome” which i regret having sold tbh.

If someone like me ( a complete noob) as you can tell needs a log of how i got it working please hit me up and ill send you a list of steps i did (i like doing this when i might have to do the same on other machines) i dont want to cluster the forum with more of my code!

Also great news as im going to put and old computer back to work!

Hats of to everyone, cheers

Edited:

I tried doing the same thing on my main music machine, with mojave, serialoscd installed fine after following the permission bugs, but at the end:

JOSEs-MacBook-Pro:~ music$ serialoscd MONOME_TTY
/Users/music/.npm-global/lib/node_modules/node-serialoscd/index.js:69
const sysId = ttyFile.split("/")[2].replace(/(tty|cu)./, “”);
^

TypeError: Cannot read property ‘replace’ of undefined
at Object. (/Users/music/.npm-global/lib/node_modules/node-serialoscd/index.js:69:36)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:829:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
JOSEs-MacBook-Pro:~ music$
serialoscd shows:
/Users/music/.npm-global/bin/serialoscd -> /Users/music/.npm-global/lib/node_modules/node-serialoscd/index.js

  • node-serialoscd@0.0.3

forum mechanics heads up: when posting logs/etc, use [details]

ie:

[details="long log"]
whoooaooaoa!!
2
3
4
5
5
[/details]

will show up as:

long log

whoooaooaoa!!
2
3
4
5
5

7 Likes

You shouldn’t put MONOME_TTY but replace it with actual device, this might be a bit confusing. When you plug in the diy monome, do ls /dev/cu.* in terminal, and then grab something looking like /dev/cu.usbmodem... and use that: serialoscd /dev/cu.usbmodem... :slight_smile:

Hi! Thanks for your reply.
I got it working on my old mac yesterday, thanks for sharing your work :slight_smile:
I tried on my actual music computer, and i had the official serial osc running at the time. So even though i successfully installed node-serialoscd, i would not connect to the Untz since serial osc was taking over.
Killing the serial osc process and detector and re running node-serialoscd did work.
Thanks a lot!

Thanks for the info tehn!

Hey I’m new around here :slight_smile: just wondering if the hardware side of this was ever put up on github? I can see the software part. Just thinking of remixing this into a grids like controller with mechanical switches and would like to see how the varibright was implemented.

Hello thanks for letting me in your group.

I need help Programming the UNTZtrument/Arduino Leonardo and any help would be appreciated.

UNTZtrument is based on Adafruit’s Trellis, a 4x4 backlit keypad kit.

Four Trellises are combined to make a single large 8x8 matrix for UNTZtrument.

It´s run on a Arduino Leonardo.

The Hardware is build and working. I have succesfully testet the 2 standard examples:

UNTZtrument_Hello_World

UNTZtrument_Step_Seq

My goal is to control a multi-midi-channel patch on a multi timbral synth (Waldorf Blofeld) with sustaining notes to make drones. Pressing buttons on the UNTZtrument and building chords on different midi-channels/synth-presets

I need to be able to specify every button with:

• midi note number and velocity or CC# and value

• midi-channel

• momentary mode or latch mode

• button-led to reflect note on/off

An example could be:


Row 1: 8 notes, C major scale, Midi Ch 1

Row 2: 8 notes, C major scale, Midi Ch 2

.

Row 8: 8 notes, C major scale, Midi Ch 8

best regards Flintholm

@okyeron does your itsagrid work with fates ? If I’m not mistaken it’s basically a untz with a teensy I stead of an Arduino?

Yes it works, but with some hacks on the norns code. It also depends on the Teensy device identifying itself as “monome” over USB (changing the USB product name, manufacturer, etc.). I believe to make that happen with arduino, you would need to reflash the FTDI chip on the ardunio (like for the arduinome project).

My itsagrid code is based on the untz-monome work, but then extended and fixed a bit.

I’m revisiting all this and trying to come up with a “supported” method for grid-clones to work on norns/fates/diy-shield. not sure how long that’s gonna take tho.

5 Likes

Yeah I have been trying a pro micro running the kitty untz code / ftdi combo that has been reflashed to identify as a grid with no luck so far.it seems to communicate with the ftdi ,tx and Rx flash , but the buttons don’t light .just wondering if there was an option that works . I suppose I could build a grid from the Mk kit docs on the GitHub ? I have been toying with making a mechanical keyboard switch version ,which seems feasible using the Mk boards and making a custom PCB for the switches and less.

I had an Adafruit Unztrument which I sold because I bought a Grid. The Unztrument did run with node-serialosc. After installing node.js and node-serialosc I could start it with serialoscd -d /dev/ttyACM0 (as far as I recall) and had a working connection which I used with Sonic Pi on Linux.

Flashing the FTDI chip did not work out for me (maybe this helps if someone wants to give it another try).

Hi!
Sorry i have not been following this as much as i would like due to sickness.

As far as i can remember, i did not manage get the arduino leonardo (or and arduino mega) recognised as an ftdi device, my lack of knowledge hits me here…can this be done?

I installed the ftdi drivers and tried many different combinations but to no avail.

It is recognised as a COM port but no serial…did try uploading the “arduino blink” example but that did not work either.

I tried both on pc and mac.

Actually Ft_prog seems to be only available for windows. :frowning:

The ftdi is a seperate chip to the Leonardo, it’s basically a USB to serial interface. It’s often used for programming Arduino pro micros and the like.i have 2 test setups for my untz , an ftdi adapter with the serial changed via ft_prog connected to an Arduino pro micro or a Arduino Leonardo. I haven’t successfully gotten either to work so far either :slight_smile:

I don’t know if this will help in your situation, but here’s how to reprogram FTDI chips without the windows-only FT_PROG:

https://waterpigs.co.uk/articles/ftdi-configure-mac-linux/

My guide is written for Mac OS X and homebrew, but it should be easy enough to adapt the steps for use on linux, especially with the sensorweb documentation. Let me know if you need any help.

3 Likes

Hi Guys and dolls,

What a marathon to read. What is working/needed now with the HELLA UNTZtriment to use with monome norns for example?

With working/needed i mean, which software from whom and since it is arduino based it’s all to do with
the arduino app?

I wanted an extra less costly grid to use with the Norns for example.

Hope there will be monome grid kits in the future…