Search results

  1. P

    ADC library, with support for Teensy 4, 3.x, and LC

    There is no problem, I've read your code, and misread it, it is this part in ADC_Module.h Now I see, that it is about single-ended being uint16_t, okay: I got it wrong! [*hammering on head*] I'm working on a fretscanner, using differential and PGA for the first time. Lots of stuff to learn, this...
  2. P

    ADC library, with support for Teensy 4, 3.x, and LC

    Hello Pedro, Found a small bug in the adc library, concerning the output result of differential readings. When using the adc in differential mode, the results are 2's complement according to the manual: that means that the result has a sign! In the adc library, however, you try to get rid of the...
  3. P

    Fatar TP/8 to midi (8x8 matrix with velocity)

    great info, I'm working on a hex guitar pitch to midi converter with teensy 3.1, I'm interested in this stuff, I might add an onboard wavetablesynth Small question, Paul: will the M7 feature a FPU? I'm getting a slight headache from integer math.. ")
  4. P

    Midi controller problem with Ableton

    usbMIDI.sendControlChange(control, value, channel) 1-ok, you may have wired up your potentiometer wrong. the outer pins should go to +3.3 volt and ground. the inner pin should go to A0, check if you use the proper pin. 2-setup your readresolution, via analogReadResolution(10) - then use...
  5. P

    Guitarsynthesizer build with Teensy 3.1!

    I'm now finishing the first stage of the development of my own guitarsynthesizer system. It uses a Teensy3.1, and a simple hexbufferchip to get the string separated audio into the ADC's. It converts 6 streams of incoming audio into midi. Thanks PJRC for your great product, the Teensy 3.1. Also...
  6. P

    Teensy 3.1 and WaveHC

    nantonos is right.. a pure Teensy3.1 will allready sound better than the WaveHC. You only need a storage if you want longer pieces of music to play, so than you might just as well get the audio adapter, that has a SD card slot and gives even better stereo sound.
  7. P

    polyphonic audio sampler

    pitchshifting the hifi manner were used to these days, will not work anyway.. but you can use this old trick: 1) fill a circular buffer with speed x 2) play the same buffer with speed y*x You will get artefacts and it will sound like a old digitech whammy pedal. If your looking for that sound...
  8. P

    Teensy 3.1 and WaveHC

    that sounds like "hard" AVR timercode used in the WaveHC library, thats not portable straightaway to an other processor like the one of the teensy3.x Adafruit has only provided support for 168/328 and the mega2560, as i can see here: https://code.google.com/p/wavehc/downloads/list
  9. P

    ADC library, with support for Teensy 4, 3.x, and LC

    You have a Teensy3.0 and the 3.0 doesn't have 2 ADCs, so it doesn't support SynchronizedRead anyway.. Only works on 3.1!
  10. P

    ADC library, with support for Teensy 4, 3.x, and LC

    Hallo David I dont think you can use other than "soft breaks" in Teensy programming, so you generate your own dump. Connect an interrupt to a pin with a button, in the attached interrupthandler, send all data you need to Serial. that way you can dump data to your computer on a button press...
  11. P

    Analog inputs on teensy 3.1 smt pads, A15-A20

    true story, but didnt the confusion start in the frist place with the mulitplexer numbers being different than the pin numbers on avr? I always thought that that was the motivation of the Ax names, correct me when I'm wrong.. just interested
  12. P

    Analog inputs on teensy 3.1 smt pads, A15-A20

    nothing confusing here, the "Welcome to Teensy 3.1" postcard, that you've surely got along with your board, does list all these numbers
  13. P

    Multi-device code example for teensy++ 2.0

    well, just switch the boardtype to "keyboard + mouse + joystick" in menu tools/USB type.. and then you can speak to the different objects, like in the simple examples. its that simple I guess, Paul S. allready made it.
  14. P

    analogRead and audio

    use separate buffered signal for feeding pin A4 (or use a opamp buffer for it), and the line with relais goes straight to mixer. The ADC sucks a little current by every measurement (this is normal), so that is what you hear.
  15. P

    Audio Library - "MonoPeakmeterAnalog" wont work on teensy3.1 without audioshield

    Audio Library - "MonoPeakmeterAnalog" wont work on teensy3.1 without audioshield Hi, Im starting to work with audio library, and I assumed that it also works without audioshield on a Teensy3.1 But this example program, using only the onboard stuff, doesn't work ... I've got other sketches...
  16. P

    Audio Library FFT with ADC input

    good tip! tnx..
  17. P

    Teensy 2++ faster than ATMEL 328 ??

    thanks Paul, for correcting us.. and I've read the thread.. you did your best to help Arduino there! I'm afraid Arduino on itself will get stuck if they cling to hard to old stuff, rejecting your improvements was not particularry intelligent imho. Highlevel calls should be the standard to build...
  18. P

    Teensy 2++ faster than ATMEL 328 ??

    It could be anything really..(maybe the implementaion of the digitalWrite function?) but it is good practice to time your program independedly from the cpu performance. E.g: If you had used pure delayMicroseconds(1000), without the loops, you'd get the same results with all different boards.
  19. P

    Arduino Smoothing example failing to compile.

    replace all "index" with "myIndex" the var index is used by teensyduino
  20. P

    ADC library, with support for Teensy 4, 3.x, and LC

    ok, thanks... this will get very popular, I guarantee..
  21. P

    ADC library, with support for Teensy 4, 3.x, and LC

    Thanks, pedvide! great job. Some questions: -So all of the 6 available pins can be paired with adc->analogSyncRead(pin1, pin2) ? -And the singereads are fully independed on the two adc's? (so you can start another adc while the other one is working) -interrupts for second adc like this: void...
  22. P

    Teensy Digital Filter Implementation - Using coefficients

    it is too simple Im afraid, but it is easy to fix.. Your fault: where do you define the samplerate? nowhere!.. so the filter wont work.. So, look at my example above, these lines define the speed: int sampleRate=10000; // beware, this method only supports 1 uS steps for your period time...
  23. P

    Teensy Digital Filter Implementation - Using coefficients

    HI Deadp1xels, you could share the code if you like..
  24. P

    Teensy Digital Filter Implementation - Using coefficients

    you'll have to use a higher order filter (I suggest simple butterworth with 2nd order), and I suggest at least testing it with higher samplerate. You're know crossing the border of 1/2 nyquist, my guts say that that will deteriorate your performance.. You have to put the -3db point an octave...
  25. P

    Motorized fader with teensy

    They have an extra resistor to get the position, an a small motor, so you can steer the motor precisely by mesauring this extra resistor. can be done! You wont need fancy motorsteering, if you dont overdo the speed of the motor.. Source...
  26. P

    FreqMeasure - Sampling time

    if (FreqMeasure.available()) this checks if a period has passed, and a result is known, so it automatically adapts to whatever frequency is involved, thats the way input capture works
  27. P

    FreqMeasure - Sampling time

    You're wrong, if you wait for 1 measurement, it will automatically wait for the period to finish, whatever period that is. The variable "count" counts just your number of measurements. I've used these functions a lot, however: waiting for at least 2 measurements is good praktice.
  28. P

    Teensy Digital Filter Implementation - Using coefficients

    Thank you Deadp1xels, because I needed a filter too, and I completely overlooked this mkfilter thing. So I made this example primairily for myself, and shared it with you and other people with the same question, I've learned a lot on this forum and I like to do my part.
  29. P

    Teensy Digital Filter Implementation - Using coefficients

    Note1: ofcourse you can use other samplerates in this example but they have to be divisions of 1000000, because of the uS timer used. Note2: this is Teensy3.1 code, you have to use another output on other Teensies for monitoring with PWM on another pin..
  30. P

    Teensy Digital Filter Implementation - Using coefficients

    you have to substitute "next input value" with the vlaue read from A1, and your own varname instead of "next output" value. You can use loop() instead of this function to test it... keep timing! This examples will only filter correct in whole uS steps!: only 100k, 50k, 33.3k, 25k, 12.5 are valid...
  31. P

    audio record, processing and play with teensy 3.1

    Your right! But I just wanted to present a simular "crude" approach as some AVR guitar peddles, I know audiolibrary is better for sound and versatility. The only thing my example does better is latency, and the freedom to choose any samplerate/bitdepth you want, on the fly.. and yes: having no...
  32. P

    FreqMeasure - Sampling time

    You wait for 30 measurements with this line: if (count > 30) { You can take 3 or 4 measurements, or even 1 measuremente, as the % error is very low with this low freuencies, I dpends on the amount of noise in the signal you want to even out.. if (count > 1) { //take 1 measurement
  33. P

    FreqMeasure - Sampling time

    even the slowest micrcontroller can measure that.. just take a shorter time to measure, but since the frequency is so low you can not go under several times 1/100 of a second, but thats allready much faster than a second.. Show your code, then we can tweak it.
  34. P

    audio record, processing and play with teensy 3.1

    thanks Frank, today I will test the simplest bufferamp for it, with the least amount of components, it would be nice if the buffer ran on 3volts, that would automatically protect the input, and no divider needed that way if you use the a special trick a friend showed me. I'll keep you posted...
  35. P

    Large delays in code when using Serial.print, etc.

    true mHo2! but I've noticed the same, Teensy 3x serial over usb blocks..
  36. P

    teensy 3.x, delay needed after pinMode() and digitalRead()

    ah, thats nice! thanks for the explanation, Paul.. so thats an alternative methode to measure capacitance using 1 pin, switch on the pullup and count cycles till it reads 1.. (I know the touch functions are there for this, but nevertheless, good to know!)
  37. P

    "Complete" implementation of Teensy 3.0 ADC as a library

    I've checked it again: startContinuous with switching is somewhat faster than startSingleread , and that is the reason I use it. But could not find documentation for it. Just swap the call in loop(), you can see the difference in the serial output. (rounding to uS occurs, take the average of 20...
  38. P

    "Complete" implementation of Teensy 3.0 ADC as a library

    DAC output doesn't need to be same bitdepth as adc input. its another device. yes, I also tested it without continuous, also works. I know that this isnt clean coded, sorry for that.. works anyhow. But ill switch to DMA as soon as I've hacked that code..
  39. P

    Teensy 3.1 and Audio Board - No sound, no SD function

    so its just the teensy with headers and audio connected to it? Then maybe check if you weren't too prudent with the solder, my guess is, that both sides need to make contact with the pins, resoldering is way to go then.. its difficult to check the connections, its quite small in teensy land...
  40. P

    Teensy 3.1 and Audio Board - No sound, no SD function

    mmh.. strange.. My last guess is to check if you're using the proper Arduino version with Teensyduino.
  41. P

    Teensy 3.1 and Audio Board - No sound, no SD function

    and what error do you get? There's 3 volt on the board (have you measured that?), so that should work. And the teensy itself runs and puts out serial debugging? The POT is just a passthrough to teensy adc, so that doesn't matter anyhow..
  42. P

    Teensy 3.1 and Audio Board - No sound, no SD function

    what sketch did you upload into it to test?
  43. P

    Interrupts missing

    my wild guess: try disabling interrupts within the interrupthandlers, clearly they steal from one another.. void pointer_moved() { __disable_irq(); mouse_has_data = true; __enable_irq(); }
  44. P

    "Complete" implementation of Teensy 3.0 ADC as a library

    I sure dont mind power consumption, it will be a wallsocket powered applciation in the end. I've temporarily fixed it with continous and a custom flag in adc_isr, plus mux switching in the adc_isr.. not documented, but seems to work fine.. Heres my code, it is a complete little performance...
  45. P

    audio record, processing and play with teensy 3.1

    haha Eggsperde, I've got the code running, with synchronized background adc function, using Pedvides adc library: https://github.com/pedvide/ADC You can choose resolution and sampleRate you want, lowering sampleRate will give you more cpu time, ofcourse.. I havent tested it with actual guitar...
  46. P

    "Complete" implementation of Teensy 3.0 ADC as a library

    I'm looking into the best solution, I'm comparing the startSingleRead() construction vs. startContinuous () I've got the startSingleRead() running very smoothly, but ik takes about 2/3uS time, so I'm investigating on continuous mode to get it even better. Now I've got the system running @12bits...
  47. P

    "Complete" implementation of Teensy 3.0 ADC as a library

    Ah super, Pedvide! It was just missing in the examples, that is why I couldnt find this function.. really great, Thanks!
  48. P

    "Complete" implementation of Teensy 3.0 ADC as a library

    Hello Pedvide, Thanks for your great work! I have a suggestion for a function I was seeking, and seems very easy to implement in your library imho.. analogRead() now waits for the adc result, and you've lost typically 10uS of coding time per sample, it is to much for my application, I need...
  49. P

    audio record, processing and play with teensy 3.1

    Eggsperde, don't mix the great Paul Stoffregen up with humble me! I'm PaulD, and I will post a working stompbox code this weekend for Teensy3.1, it is testproject for me, so it is no extra work. Wishing you also the best, nevertheless! ")
  50. P

    audio record, processing and play with teensy 3.1

    Hi Eggsperde, Stomppedal code for the arduino wont work straightaway on Teensy3.0/3.1.. it is not the same kind of chip, and many registers are hard coded to get stuff like freerunning adc's and more going on the small AVR chips .. But my guess is, that the Teensy3.1 will quickly be adapted by...
Back
Top