So, I made the 1 line change to the Teleteype code (changing the baud rate from 57600 to 115200), and that seems to make everything gel. I was able to hot swap my neotrellis grid between norns (fates), serialoscd (on my mac), and teletype, and all seem to working!

5 Likes

The original trellis is only single color (And mono bright) so this would not likely solve your issue.

@Gerald_Stevens has a variation of the code for the neotrellis that has different colors for various brightness states. So that might work better for you?

This seems to have unlocked the achievement, but I can’t see if it makes noise until the morning.

3 Likes

Saw on adafruit site that you can control each led color individually… Is great that there is already a code doing that!

Hats of to everyone on your work, this is really great news!
May i ask where is the code so i can test it on my diy monomes?
Thanks!

You can modify the Teensy firmware to map the 16 “levels” to whatever RBG values you like, I think.

1 Like

Serendipitously, the FTDI breakout happens to fit nicely in my case:

5 Likes

Did you manage to implement your requirement with the information posted here? You would need to open the DIY Firmware (neotrellis_monome_teensy) and modify the function sendLeds(), which starts at line 195. Based on intensity “value” you can return any color of your choice, instead of multiplying with gvalue.

Something like:

I am currently doing something like this to have a reddish color palette, which would flash pure white when the highest intensity level is reached.

I’d suggest the following:

if you want all the LEDs to be the same color, just modify the R/G/B values at line 28

Otherwise - look at @Gerald_Stevens’s code and create a custom gamma table (palette) for the colors you want (or just use Gerald’s code) https://github.com/oldmanfury/neotrellis-grid-paletted/blob/master/neotrellis_monome_teensy_paletted.ino

As posted above the code will ignore the gamma table which is there to help keep the device from browning-out when all the leds are on.

Dear all, as requested I created a fork of the DIY Grid firmware which allows to connect the Teletype via FTDI, and added documentation and hex dump:

Everything is explained and linked in the README.md, shown at the bottom of the page.

Personally I think it would be easier to have just one DIY firmware for all devices, and allow activating Teletype support by preprocessor option, but that decision is not up to me. Someone who has Teletype and other devices might do the necessary cleanup - I am using the Grid exclusively with my Teletype, so I am not the best candidate here.

All the best

6 Likes

if you are referring to my screenshot, that is not really the case. You can see that I am using factor 128 instead of gvalue, which is equivalent to the gvalue used for the highest intensity in the gamma table (gammaTable[15]). So hopefully, nothing should “burn”) But if there is a dedicated project, that’s surely better.

Really, at least look at my code. It has eight custom palettes that you can modify - I explain an easy way to create new ones on my github page. More importantly it allows overall intensity selection on boot, which WILL be important for teletype, since I doubt it can source amps.

I apply an intensity gradient to each palette so that dark is dark. I haven’t found any patches that don’t work well with color yet.

2 Likes

Thank you, much appreciated.

Well - I bought a couple genuine FTDI adapters from Adafruit - both were configurable with the FTDI software, and changes survived unplugging. I connected to my Teensy as described, and programmed the Teensy with the github code copiled through the arduino IDE. I couldn’t get the teensy software to recognize the .hex that was uploaded at all BTW. Once programmed, my norns shield no longer recognizes the grid at all. My teletype doesn’t respond to it either. I haven’t done anything to the teletype firmware since I don’t want to try to compile it (I think some of the required libraries were inaccessible last time I tried to set up to do that). I did all this from a windows laptop. Grid is fine - I can flash the old .ino and it works great. Any ideas?

Make sure you connect RX-to-TX not RX-to-RX. That was a gotcha for me.

Should a direct connect to the Teensy still work with norns?

No, not if the baud rate is 57600. You need to use 115200 for it to work with Norns. (That is why I modified the Teletype firmware to use 115200 – so that both Norns and Teletype would work with the same grid)

Edit: misunderstood your question maybe. A direct connection to the teensy will no longer work with the new firmware since the calls to Serial have been replaced with Serial1.

But Norns should work using the FTDI connection if you change the baud rate for Serial1 to 115200.

Connections are right. When I push grid buttons I see a green LED on the FTDI friend - so it is getting serial data. TT and norns shield don’t respond like it is there at all… not sure what else to try. Hrm…

Did you try changing the baud rate? Why are there 5 wires connected to your breakout board (I only have 3)?