list of components : //////////////////////////////////////////////////////////////// 1 x Teensy 2 1 x accelerometer GY61 (analog outputs) 9 x buttons 1 x Joystick with 1 momentary switch
// for TEENSY 2 #include <Bounce.h> #include <Statistic.h> // auto-calibration of joysticks byte midiChannel = 1; byte reception_midi_channel = 16; byte CTRL_num = 1; // number of the first midi controller message to be sent for the 10 buttons byte CTRL_Joy = 22; // number of the first midi controller message to be sent joystick et acceleration sensor byte CTRL_Accl_OnOff = 100; // inbound controller number to switch on/off midi controller for acceleration sensor byte CTRL_channel_select = 101; // inbound controller number to choose outbound midi channel /* A0 : joystick 1 A1 : joystick 2 A2 : acceleration Y
Statistics: Posted by oli_lab — 21 Aug 2020, 18:09
]]>2020-08-21T11:45:51+02:002020-08-21T11:45:51+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=42850#p42850Statistics: Posted by oli_lab — 21 Aug 2020, 11:45
]]>
2020-08-20T11:17:57+02:002020-08-20T11:17:57+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=42848#p42848And if you can can share an example of your work/ workspace/ino, could be cool for the community
Statistics: Posted by nay-seven — 20 Aug 2020, 11:17
]]>2020-08-20T10:31:36+02:002020-08-20T10:31:36+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=42847#p42847just to let you know that we found the problem compiling the pseudo-MIDI generation module for firmata. The SendMidiMessageToOut procedure is defined after its first declaration. You have to cut/paste the procedure before the callback in the script. And it works! Cheers!
]]>2020-08-19T21:14:27+02:002020-08-19T21:14:27+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=42846#p42846Statistics: Posted by oli_lab — 19 Aug 2020, 21:14
]]>2020-08-19T18:54:17+02:002020-08-19T18:54:17+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=42845#p42845but not sure it can help you cause it basically send classic midi message note ?
Statistics: Posted by nay-seven — 19 Aug 2020, 18:54
]]>2020-08-19T16:23:26+02:002020-08-19T16:23:26+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=42844#p42844Don't know if we can find a solution, cause Martignasse (who create the module) is not anymore a part of the team And we really don't have a lot of users using arduino. Maybe OliLab can help, will ask him
Statistics: Posted by nay-seven — 19 Aug 2020, 16:23
]]>2020-08-19T15:37:00+02:002020-08-19T15:37:00+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=42843#p42843Unfortunately none of the attached examples are about firmata The only documentation I found is from hesspet but it doesn't work for me.
]]>2020-08-19T11:31:26+02:002020-08-19T11:31:26+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=42842#p42842It's a really old 8 years post, and long time i don't test arduino in Usine But have you test the basic help patches?
Statistics: Posted by nay-seven — 19 Aug 2020, 11:31
]]>2020-08-19T11:13:46+02:002020-08-19T11:13:46+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=42841#p42841thank you for this great contribution! I'm on Mac OS X and I'm desperately trying to communicate with my arduino via firmata with usine. I tried your script to create firmata protocol but there is a problem at compile time:" Unknown declaration "SendMidiMessageToOut" at line 71 " What do you think? Is there another way to send a message to firmata? There's no example in the arduino tutorial. Thanks to all of you!!!
BTW: Uses VVVV and Usine as OSC simple midi router under the hood. In the next step it needs the Serial module to control some switches for live performance
Statistics: Posted by hesspet — 25 Dec 2012, 15:11
]]>2012-12-17T19:37:03+02:002012-12-17T19:37:03+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=25096#p25096 I just tested it with IR range sensor Sharp
The module received the value very well!
No crash
Great
Statistics: Posted by headphoner — 17 Dec 2012, 18:37
seems to work well when the COM number is configured
but a bad COM setting (like when you load a someone else patch) cause a lot of instability (crash usine or corrupt the patch) the error handling should be more robust
CODE:
What do you think? Should I transfer the source to Github or to an other repository? Maybe when it is finished it can be added to the next Usine version. The code is build with "STL" and "boost", so it should be possible to compile it on a Mac also (I've no access to Mac, so I can't compile it).
well, yes and no...
yes to put it on github, as it will make easier for maintenance, tracking and correcting bugs and for the future mac conversion
no to add it to usine distrib, because basically, the purpose of modules is to let them the author responsibility and if we do, we have to assume the stability and maintenance, it's not a trivial task and our resources are not infinite i think the community is the best place to guaranty a well maintained module like this
but don't make me wrong, this module will be a killer extension to usine for a lot of uses and users
if you put it to github, i'll try to put an eye on it to help about the instability and shut down problem
Statistics: Posted by martignasse — 17 Dec 2012, 12:23
Statistics: Posted by hesspet — 16 Dec 2012, 13:23
]]>2012-12-15T00:16:19+02:002012-12-15T00:16:19+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=25092#p25092set the latency to 1 has solved the problem
Statistics: Posted by nay-seven — 14 Dec 2012, 23:16
]]>2012-12-14T23:47:31+02:002012-12-14T23:47:31+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=25091#p25091 Depends on the rx buffers of you system. There a so many buffers in a system, which must be filled until they are send. Which Arduino type do you use? I've tested it with an Uno which does not use the FTDI drivers (all Arduinos < Uno uses FTDI). The FTDI driver do such things sometimes (known as "latency problem"). They wait a fix time before sending the data to the application. (Little bit similar to the BLOC Frame, but much longer
Serial communication can be magic I'll test it with an older Arduino the next days. But I've similar effects when I use the PD serial in an older installation. Normally the data which is sende is more than 1 byte
Hope this helps. I'll add a comment to this very common problem to the description.
P.S.: could also be an other problem
Statistics: Posted by hesspet — 14 Dec 2012, 22:47
]]>2012-12-14T20:18:15+02:002012-12-14T20:18:15+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=25084#p25084I've a little difference in the way the example 2 don't give regular change , I've some short and some long
Statistics: Posted by nay-seven — 14 Dec 2012, 19:18
]]>2012-12-14T18:58:09+02:002012-12-14T18:58:09+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=25081#p25081 I've pulished this module early as possible.
Please feel free to ask for changes if some things are not good to use in Usine. The current version is beta.003. Hmm, yes, there a some small bugs in the module. I is not production stable. Sometimes, eg. if you change the comport to often, Usine will crash ( or crash on exit)). I'm working on this problem
The communication works stable. I've tested it with an Arduino board for 24 hours without any problem.
For the Arduino freaks: Yes, it supports the Firmata protocol!
During the next weeks, I'll add more samples and fixes to the package.
list of components : //////////////////////////////////////////////////////////////// 1 x Teensy 2 1 x accelerometer GY61 (analog outputs) 9 x buttons 1 x Joystick with 1 momentary switch
// for TEENSY 2 #include <Bounce.h> #include <Statistic.h> // auto-calibration of joysticks byte midiChannel = 1; byte reception_midi_channel = 16; byte CTRL_num = 1; // number of the first midi controller message to be sent for the 10 buttons byte CTRL_Joy = 22; // number of the first midi controller message to be sent joystick et acceleration sensor byte CTRL_Accl_OnOff = 100; // inbound controller number to switch on/off midi controller for acceleration sensor byte CTRL_channel_select = 101; // inbound controller number to choose outbound midi channel /* A0 : joystick 1 A1 : joystick 2 A2 : acceleration Y
Statistics: Posted by oli_lab — 21 Aug 2020, 18:09
]]>2020-08-21T11:45:51+02:002020-08-21T11:45:51+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=42850#p42850Statistics: Posted by oli_lab — 21 Aug 2020, 11:45
]]>2020-08-20T11:17:57+02:002020-08-20T11:17:57+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=42848#p42848And if you can can share an example of your work/ workspace/ino, could be cool for the community
Statistics: Posted by nay-seven — 20 Aug 2020, 11:17
]]>2020-08-20T10:31:36+02:002020-08-20T10:31:36+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=42847#p42847just to let you know that we found the problem compiling the pseudo-MIDI generation module for firmata. The SendMidiMessageToOut procedure is defined after its first declaration. You have to cut/paste the procedure before the callback in the script. And it works! Cheers!
]]>2020-08-19T21:14:27+02:002020-08-19T21:14:27+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=42846#p42846Statistics: Posted by oli_lab — 19 Aug 2020, 21:14
]]>2020-08-19T18:54:17+02:002020-08-19T18:54:17+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=42845#p42845but not sure it can help you cause it basically send classic midi message note ?
Statistics: Posted by nay-seven — 19 Aug 2020, 18:54
]]>2020-08-19T16:23:26+02:002020-08-19T16:23:26+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=42844#p42844Don't know if we can find a solution, cause Martignasse (who create the module) is not anymore a part of the team And we really don't have a lot of users using arduino. Maybe OliLab can help, will ask him
Statistics: Posted by nay-seven — 19 Aug 2020, 16:23
]]>2020-08-19T15:37:00+02:002020-08-19T15:37:00+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=42843#p42843Unfortunately none of the attached examples are about firmata The only documentation I found is from hesspet but it doesn't work for me.
]]>2020-08-19T11:31:26+02:002020-08-19T11:31:26+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=42842#p42842It's a really old 8 years post, and long time i don't test arduino in Usine But have you test the basic help patches?
Statistics: Posted by nay-seven — 19 Aug 2020, 11:31
]]>2020-08-19T11:13:46+02:002020-08-19T11:13:46+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=42841#p42841thank you for this great contribution! I'm on Mac OS X and I'm desperately trying to communicate with my arduino via firmata with usine. I tried your script to create firmata protocol but there is a problem at compile time:" Unknown declaration "SendMidiMessageToOut" at line 71 " What do you think? Is there another way to send a message to firmata? There's no example in the arduino tutorial. Thanks to all of you!!!
BTW: Uses VVVV and Usine as OSC simple midi router under the hood. In the next step it needs the Serial module to control some switches for live performance
Statistics: Posted by hesspet — 25 Dec 2012, 15:11
]]>2012-12-17T19:37:03+02:002012-12-17T19:37:03+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=25096#p25096 I just tested it with IR range sensor Sharp
The module received the value very well!
No crash
Great
Statistics: Posted by headphoner — 17 Dec 2012, 18:37
seems to work well when the COM number is configured
but a bad COM setting (like when you load a someone else patch) cause a lot of instability (crash usine or corrupt the patch) the error handling should be more robust
CODE:
What do you think? Should I transfer the source to Github or to an other repository? Maybe when it is finished it can be added to the next Usine version. The code is build with "STL" and "boost", so it should be possible to compile it on a Mac also (I've no access to Mac, so I can't compile it).
well, yes and no...
yes to put it on github, as it will make easier for maintenance, tracking and correcting bugs and for the future mac conversion
no to add it to usine distrib, because basically, the purpose of modules is to let them the author responsibility and if we do, we have to assume the stability and maintenance, it's not a trivial task and our resources are not infinite i think the community is the best place to guaranty a well maintained module like this
but don't make me wrong, this module will be a killer extension to usine for a lot of uses and users
if you put it to github, i'll try to put an eye on it to help about the instability and shut down problem
Statistics: Posted by martignasse — 17 Dec 2012, 12:23
Statistics: Posted by hesspet — 16 Dec 2012, 13:23
]]>2012-12-15T00:16:19+02:002012-12-15T00:16:19+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=25092#p25092set the latency to 1 has solved the problem
Statistics: Posted by nay-seven — 14 Dec 2012, 23:16
]]>2012-12-14T23:47:31+02:002012-12-14T23:47:31+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=25091#p25091 Depends on the rx buffers of you system. There a so many buffers in a system, which must be filled until they are send. Which Arduino type do you use? I've tested it with an Uno which does not use the FTDI drivers (all Arduinos < Uno uses FTDI). The FTDI driver do such things sometimes (known as "latency problem"). They wait a fix time before sending the data to the application. (Little bit similar to the BLOC Frame, but much longer
Serial communication can be magic I'll test it with an older Arduino the next days. But I've similar effects when I use the PD serial in an older installation. Normally the data which is sende is more than 1 byte
Hope this helps. I'll add a comment to this very common problem to the description.
P.S.: could also be an other problem
Statistics: Posted by hesspet — 14 Dec 2012, 22:47
]]>2012-12-14T20:18:15+02:002012-12-14T20:18:15+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=25084#p25084I've a little difference in the way the example 2 don't give regular change , I've some short and some long
Statistics: Posted by nay-seven — 14 Dec 2012, 19:18
]]>2012-12-14T18:58:09+02:002012-12-14T18:58:09+02:00https://brainmodular.com/forums/viewtopic.php?t=3660&p=25081#p25081 I've pulished this module early as possible.
Please feel free to ask for changes if some things are not good to use in Usine. The current version is beta.003. Hmm, yes, there a some small bugs in the module. I is not production stable. Sometimes, eg. if you change the comport to often, Usine will crash ( or crash on exit)). I'm working on this problem
The communication works stable. I've tested it with an Arduino board for 24 hours without any problem.
For the Arduino freaks: Yes, it supports the Firmata protocol!
During the next weeks, I'll add more samples and fixes to the package.