Need help with a Teensy++2.0 build
Need help with a Teensy++2.0 build Posted on: 09.07.2012 by Santiago Brasier Me and a mate of mine started our first controllerbuild based on the Teensy++2.0We ran into some issues though. We tried hooking up some LEDs, momentary buttons and pots with good results at first. With the teensy in usbmidi mode midisignals is detected with Midi-OX. However, when trying to map our buttons in traktor it does not work. Learn does not work and the little blue light showing incoming midi is pitch black. Hopefully this is a quick fix due to some user error but we just can't believe of what it could be. Therefore we shout out to you guys! Hopefully someone familiar with the teensy could point us in the right direction. Cheers //Joel | |
Maisha Lutcher 30.07.2012 |
Originally Posted by mariakos
|
Nydia Jaurigue 29.07.2012 |
Originally Posted by DJTux
|
Iraida Woike 25.07.2012 |
Originally Posted by DJTux
If so you can use the usbMIDI.read(channel) or usbMIDI.read() to check if it there is an incoming message. It will return true if so or false if not. Then you can use either usbMIDI.getData1() or usbMIDI.getData2() to get the actual message. Data1 is the midinote and Data2 is like the velocity (depending if CC or note). Here is an example that worked for us. (We haven't tried with multiple LEDs yet) Code:
int led = 25; int state = 1; void setup(){ pinMode(led,OUTPUT); } void loop(){ if(usbMIDI.read(1)){ if(usbMIDI.getData1()==1){ if(state){ digitalWrite(led,HIGH); state=0; } else{ digitalWrite(led,LOW); state=1; } } } } Hope this will point you in the right direction. For multiple LEDs just use an array. |
Maisha Lutcher 25.07.2012 |
Originally Posted by steffex
please keep me informed about your progress. Cause i cant find a good LED feed back Tut |
Era Roka 19.07.2012 |
Originally Posted by steffex
|
Bon Finix 12.07.2012 |
Originally Posted by ZiiK
@DJDoubleYou: There is an official reseller in the Netherlands, floris.cc |
Era Roka 04.08.2012 | already checked out the project, seems cool. (throug add on DJTT) |
Bethanie Darmiento 04.08.2012 | Hi guys, I'm using Teensy++ in my XFX Pitch product I have up on kickstarter and its an awesome core embedded processor. To get things working properly you do have to have a reasonable coding background and understanding of Traktor mapping. I believe you guys worked through most of the issues in this thread, but if you do the function calls properly, out of the box it will work great with Traktor regarding button interaction. The code for faders and rotaries is also quite straight forward, but does get a bit more complex when you get into smoothing and high-resolution fader interaction (pitch). Regarding the button pad, that pad works great, but to do multi-color, as most LED matrices out there, you have to pulse-width modulate the R, G and B channels through analog outs to get the desired combined color per LED. Also, you get into multiplexing with any kind of significant tri-color LED count which often requires an outboard multiplexing IC (which has been done by many people with Teensy). Anyway, I've spent a lot of time developing my Pitch box (below) and thought I'd share a little bit if it helps at all. Cheers! Adam |
Nydia Jaurigue 01.08.2012 | this is the button pad i am referring to and i dont see unique I/O for each individual button or led.. https://www.sparkfun.com/products/8033 |
Iraida Woike 01.08.2012 | How much programming do you know? Cause all you need to do code-wise is to scan all ports on the teensy and separate inputs from outputs and digital from analog etc. I do not know how this matrix is connected to the teensy, but if all individual buttons and leds have a unique I/O I do not see any problem of doing the above. |
Nydia Jaurigue 01.08.2012 | ok my problem is that i dont know how to connect the MATRIX of buttons and leds to teensy, not just 8 buttons and 8 leds, all with independent wires..and then how to scan the rows and columns |
Bon Finix 01.08.2012 | It all depends on the total amount of i/o points you need. If you want to build a controller with 8buttons and 8 leds, you don't need any multiplexing because the teensy has enough i/o ports. |
Maisha Lutcher 30.07.2012 |
Originally Posted by mariakos
|
Nydia Jaurigue 29.07.2012 |
Originally Posted by DJTux
|
Iraida Woike 26.07.2012 | Yeah it's something like that we are planing to do We will see next week if it all comes together as we are planing. One more day in the workshop before assembly. Can't wait |
Maisha Lutcher 26.07.2012 | Thanks. that did help. i got more questions but i dont want to hijack this post. |
Bon Finix 26.07.2012 | A good practice to speed up your firmware is to first read all states of buttons and incoming notes and then process them. This is a lot faster than doing this per input and note. Collecting "data" is very time consuming. example: Code:
var button1 = AnalogRead(1); var button2 = AnalogRead(2); var button3 = AnalogRead(3); if( button1 == HIGH ) { // do something } else { //do something more } if( button2 == HIGH ) { } else { } if( button3 == HIGH ) { } else { } |
Iraida Woike 25.07.2012 |
Originally Posted by DJTux
If so you can use the usbMIDI.read(channel) or usbMIDI.read() to check if it there is an incoming message. It will return true if so or false if not. Then you can use either usbMIDI.getData1() or usbMIDI.getData2() to get the actual message. Data1 is the midinote and Data2 is like the velocity (depending if CC or note). Here is an example that worked for us. (We haven't tried with multiple LEDs yet) Code:
int led = 25; int state = 1; void setup(){ pinMode(led,OUTPUT); } void loop(){ if(usbMIDI.read(1)){ if(usbMIDI.getData1()==1){ if(state){ digitalWrite(led,HIGH); state=0; } else{ digitalWrite(led,LOW); state=1; } } } } Hope this will point you in the right direction. For multiple LEDs just use an array. |
Maisha Lutcher 25.07.2012 |
Originally Posted by steffex
please keep me informed about your progress. Cause i cant find a good LED feed back Tut |
Era Roka 19.07.2012 |
Originally Posted by steffex
|
Germaine Bernadin 13.07.2012 | Oh that looks like fun! |
Bon Finix 13.07.2012 | did you know it has the same brains as the midifighter/midifighter pro? |
Santiago Brasier 12.07.2012 | You find the official list under teensy, references, counterfeit. I had a little trouble finding it myself, so I might aswell share Might save a minute for anyone looking. And I must say that so far the Teensy has been brilliant to work with. Everything is going so much easier then expected! I'm already planning my next project even though this is hardly half finnished Great work by PJRC! Cheers |
Era Roka 12.07.2012 | Tnx! |
Bon Finix 12.07.2012 |
Originally Posted by ZiiK
@DJDoubleYou: There is an official reseller in the Netherlands, floris.cc |
Era Roka 11.07.2012 | cool tnx, i'll check it out! p.s. nice to see that a fellow dutch guy is intrested in this! |
Santiago Brasier 11.07.2012 | @steffex, We don't have much to show yet. Mostly a huge birdsnest of stuff when testing different components. We're out of town next week, but the week after that should show some progress. Hopefully our arcadebuttons should have arrived from Hongkong by then. |
Santiago Brasier 11.07.2012 | The Fuzzywobble homepage is also very inspiring and show what can be done. http://www.fuzzywobble.com/project.p...controllers-v2 @ DJDoubleYou, We ordered ours from Hitech store in Germany, fast customer service and no hassle at all. http://www.hitechstore.de/ If you want to check out other stores Fuzzywobble has a few lined up in his instructable (on this page: http://www.instructables.com/id/A-Fr...tylish-Modula/). |
Bon Finix 11.07.2012 |
Originally Posted by ZiiK
Get some pictures in, because i'm curious about your progress. Here is a sneak-peak of my progress: |
Era Roka 12.07.2012 | where do i order a Teensy++2.0 the cheapest & best? |
Era Roka 10.07.2012 | thank you verry much!! |
Iraida Woike 10.07.2012 | Yeah my computer sucks! DJDoubleYou check out Fuzzy-Wobble's awesome instructable http://www.instructables.com/id/A-Fr...dula/?ALLSTEPS. It will provide you with what you need to know to start with. Also Fraganators is really good http://www.instructables.com/id/Arca...ller/?ALLSTEPS We might post a build log later on! |
Era Roka 10.07.2012 | i'm verry intrested in this! can you post an little how to? |
Santiago Brasier 10.07.2012 | Progressreport: When switching computers it worked just fine on traktor to. The issue was related to that computer or that install of traktor. Will post pictures and stuff when there is more to show. Cheers //Joel |
Santiago Brasier 10.07.2012 | Progressreport: We tried it with ableton and got it to work. Still don't work with traktor. Traktor recognize the device as teensy midi but no input is detected. If anyone had this issue we'd be keen to know how you got it sorted. Cheers //^Joel |
<< Back to Reviews of DJ equipment Reply