Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: PaulD

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    419
    Views
    258,189

    There is no problem, I've read your code, and...

    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...
  2. Replies
    419
    Views
    258,189

    Hello Pedro, Found a small bug in the adc...

    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...
  3. Replies
    26
    Views
    11,630

    great info, I'm working on a hex guitar pitch to...

    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?...
  4. Replies
    3
    Views
    1,202

    usbMIDI.sendControlChange(control, value,...

    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...
  5. Replies
    0
    Views
    870

    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. Replies
    14
    Views
    5,434

    nantonos is right.. a pure Teensy3.1 will...

    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...
  7. Replies
    8
    Views
    4,687

    pitchshifting the hifi manner were used to these...

    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...
  8. Replies
    14
    Views
    5,434

    that sounds like "hard" AVR timercode used in the...

    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...
  9. Replies
    419
    Views
    258,189

    You have a Teensy3.0 and the 3.0 doesn't have 2...

    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. Replies
    419
    Views
    258,189

    Hallo David I dont think you can use other than...

    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,...
  11. Replies
    7
    Views
    4,162

    true story, but didnt the confusion start in the...

    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,...
  12. Replies
    7
    Views
    4,162

    nothing confusing here, the "Welcome to Teensy...

    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. Replies
    1
    Views
    919

    well, just switch the boardtype to "keyboard +...

    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...
  14. Replies
    2
    Views
    1,402

    use separate buffered signal for feeding pin A4...

    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),...
  15. 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...
  16. Replies
    2
    Views
    1,218

    good tip! tnx..

    good tip! tnx..
  17. Replies
    7
    Views
    3,981

    thanks Paul, for correcting us.. and I've read...

    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...
  18. Replies
    7
    Views
    3,981

    It could be anything really..(maybe the...

    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 ...
  19. Replies
    5
    Views
    4,941

    replace all "index" with "myIndex" the var index...

    replace all "index" with "myIndex"
    the var index is used by teensyduino
  20. Replies
    419
    Views
    258,189

    ok, thanks... this will get very popular, I...

    ok, thanks... this will get very popular, I guarantee..
  21. Replies
    419
    Views
    258,189

    Thanks, pedvide! great job. Some questions:...

    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...
  22. it is too simple Im afraid, but it is easy to...

    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:...
  23. HI Deadp1xels, you could share the code if you...

    HI Deadp1xels, you could share the code if you like..
  24. you'll have to use a higher order filter (I...

    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...
  25. Replies
    1
    Views
    1,820

    They have an extra resistor to get the position,...

    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...
  26. Replies
    6
    Views
    2,403

    if (FreqMeasure.available()) this checks if a...

    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. Replies
    6
    Views
    2,403

    You're wrong, if you wait for 1 measurement, it...

    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...
  28. Thank you Deadp1xels, because I needed a filter...

    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...
  29. Note1: ofcourse you can use other samplerates in...

    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...
  30. you have to substitute "next input value" with...

    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!...
  31. Replies
    16
    Views
    15,248

    Your right! But I just wanted to present a...

    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...
  32. Replies
    6
    Views
    2,403

    You wait for 30 measurements with this line: if...

    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...
  33. Replies
    6
    Views
    2,403

    even the slowest micrcontroller can measure...

    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...
  34. Replies
    16
    Views
    15,248

    thanks Frank, today I will test the simplest...

    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...
  35. true mHo2! but I've noticed the same, Teensy 3x...

    true mHo2!
    but I've noticed the same, Teensy 3x serial over usb blocks..
  36. ah, thats nice! thanks for the explanation,...

    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...
  37. I've checked it again: startContinuous with...

    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(),...
  38. DAC output doesn't need to be same bitdepth as...

    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....
  39. so its just the teensy with headers and audio...

    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,...
  40. mmh.. strange.. My last guess is to check if...

    mmh.. strange.. My last guess is to check if you're using the proper Arduino version with Teensyduino.
  41. and what error do you get? There's 3 volt on...

    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...
  42. what sketch did you upload into it to test?

    what sketch did you upload into it to test?
  43. Replies
    3
    Views
    1,298

    my wild guess: try disabling interrupts within...

    my wild guess: try disabling interrupts within the interrupthandlers, clearly they steal from one another..


    void pointer_moved() {
    __disable_irq();
    mouse_has_data = true;
    ...
  44. I sure dont mind power consumption, it will be a...

    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.....
  45. Replies
    16
    Views
    15,248

    haha Eggsperde, I've got the code running, with...

    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,...
  46. I'm looking into the best solution, I'm comparing...

    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...
  47. Ah super, Pedvide! It was just missing in the...

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

    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,...
  49. Replies
    16
    Views
    15,248

    Eggsperde, don't mix the great Paul Stoffregen up...

    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....
  50. Replies
    16
    Views
    15,248

    Hi Eggsperde, Stomppedal code for the arduino...

    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...
Results 1 to 50 of 58
Page 1 of 2 1 2