Teensy 2.0 not working?

Status
Not open for further replies.

frankestrada41

New member
I just bought a Teensy 2.0 and my problem is that I followed the instructions of "How to make a MIDI Controller" from DJ Tech Tools and the firsts days worked but then an issue showed up. The CC values oscillated like crazy when trying to map the controller (on Ableton Live).
The code compiles correctly and the electronics work.
Does that mean my Teensy is broken?

Here shows the electronics ;
https://djtechtools.com/2015/08/25/how-to-make-your-own-diy-midi-controller/

and the code;

#include <Bounce.h>

// define how many pots are active up to number of available analog inputs
#define analogInputs 8
// make arrays for input values and lagged input values
int inputAnalog[analogInputs];
int iAlag[analogInputs];
// make array of cc values
int ccValue[analogInputs];
// index variable for loop
int i;



void setup() {
// MIDI rate
Serial.begin(31250);
pinMode(0, INPUT_PULLUP);
pinMode(1, INPUT_PULLUP);
pinMode(2, INPUT_PULLUP);
pinMode(3, INPUT_PULLUP);
pinMode(4, INPUT_PULLUP);
pinMode(5, INPUT_PULLUP);
pinMode(6, INPUT_PULLUP);
pinMode(7, INPUT_PULLUP);
pinMode(8, INPUT_PULLUP);
pinMode(9, INPUT_PULLUP);
pinMode(10, INPUT_PULLUP);
pinMode(11, INPUT_PULLUP);
}

void loop() {
// loop trough active inputs for knobs
for (i=0;i<analogInputs;i++){
// read current value at i-th input
inputAnalog = analogRead(i);
// if magnitude of difference is 8 or more...
if (abs(inputAnalog - iAlag) > 7){
// calc the CC value based on the raw value
ccValue = inputAnalog/8;
// send the MIDI
usbMIDI.sendControlChange(i, ccValue, 3);
// set raw reading to lagged array for next comparison
iAlag = inputAnalog;
}
delay(5); // limits MIDI messages to reasonable number
}



}
 
Maybe try a test sketch (no MIDI) that just does analogRead() and prints value for various ADC pins controlled by pot or jumpered to GND or 5v.

Maybe Robin or Paul can comment on provenance of amazon offering. photo looks OK, but then knockoffs can just steal PJRC's T2 photo. Can you attach a photo of your T2.0?
 
Hello! here is a photo of the Arduino.

I've tried to test a sketch with a pot and analogRead() to see the print values, but my Monitor serie doesn't seem to work, and this error appears every time I try to open it (sorry its in Spanish):

Tarjeta en /dev/cu.usbmodem1411 no disponible

(board in /dev/cu.usbmodem1411 not available )(im guessing that's the translation)

I've read that this is a typical message in fake Teensy boards... So maybe it is a Knockoff.. :(

in the microcontroler you can read:
ATMEL
MEGA32U4
-MU
1710E-PH
A8VFMA


Unknown.jpg

Thank you very much!!!
 
Yup, that's a counterfeit. No genuine Teensy has ever been made with that type of pushbutton (round with 2 legs).

Contact Amazon and arrange to return it and get a refund. If the seller refuses to return your money, contact your bank. Usually they will start a dispute that eventually returns your money when you can show the seller gave you a counterfeit.
 
okey.. Sad to hear that amazon is selling fake Teensy's.. I will make contact with them and try to get a refund!

Thank you so much Manitou and Paul for all your help!!!, I really appreciate how good the Teensy community (specially this forum) works!

Im excited to get a genuine Teensy and keep trying things!
:D
 
If Amazon will still let you post a review, please give it a 1-star review with mention it's a counterfeit. That will help others avoid it.
 
Status
Not open for further replies.
Back
Top