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

Search:

Type: Posts; User: jwatte

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    474
    Views
    290,533

    Copying to the library folder should work fine. I...

    Copying to the library folder should work fine. I don't know that there's necessarily a "single correct way."

    Btw, I highly recommend developing in very small increments. Compiling code, and...
  2. Does this array need to be mutable, or is it...

    Does this array need to be mutable, or is it static initialized data?

    If it doesn't have to be mutable, can you declare it as PROGMEM and keep it in flash?
  3. Yes, he can. C and C++ totally allows that. ...

    Yes, he can. C and C++ totally allows that.

    The actual error is this:


    cannot convert 'Way_Pt' to 'float' for argument '1' to 'void Ev_GoTo_Pos(float, float, float, float, float, float, float,...
  4. I think ossi has explained the problem clearly,...

    I think ossi has explained the problem clearly, especially in post #7.
    The problem is: something wakes up, every now and then, and disables interrupts for some amount of time.

    The main question I...
  5. Replies
    5
    Views
    124

    A big enough capacitor (220 uF or so) should...

    A big enough capacitor (220 uF or so) should clean up a too-noisy wall wart.
    If you hook up a scope or logic analyzer, do you see the random MIDI being sent by the Teensy?
    If so, it's likely you...
  6. Replies
    10
    Views
    343

    The "teensy loader" software can load firmware...

    The "teensy loader" software can load firmware into the Teensy without you pressing the button, and without you doing special things in your firmware.

    That being said -- the whole brilliance of...
  7. Replies
    474
    Views
    290,533

    The syntax highlighting is not semantic. It...

    The syntax highlighting is not semantic. It doesn't always work right, because it's extra decoration added by the text editor, not actual meaningful information extracted by the compiler. In the end,...
  8. The built-in ADCs on the microcontroller are not...

    The built-in ADCs on the microcontroller are not even 13 bits, unless your analog solution and buffering is quite excellent.
    Meanwhile, the ADCs built into the audio board (and other audio systems)...
  9. In my opinion, you absolutely want to use the...

    In my opinion, you absolutely want to use the audio library for this. 16 bits is going to be much more important than oversampling, assuming that you can get a low-noise electronics implementation to...
  10. Replies
    22
    Views
    364

    I think you mis-understand what "ground" means....

    I think you mis-understand what "ground" means.
    Ground, in small-signal electronics, is simply the signal designated as a potential of 0 Volts compared to the other parts of the circuit.
    ...
  11. Replies
    19
    Views
    531

    To make that "tinny distorted AM radio sound,"...

    To make that "tinny distorted AM radio sound," you need the following pieces in sequence:

    1) The sound input.
    2) A high pass filter to remove the rumble and microphone proximity bass. Set it at...
  12. I would want more waveforms, to get a better...

    I would want more waveforms, to get a better (longer) fit. I'd also want the trigger sound to be of higher frequency.
    You might be able to use a bandpass filter with a lower cut-off at 200 Hz, and a...
  13. Replies
    22
    Views
    364

    These don't affect what the Teensy sees at all....

    These don't affect what the Teensy sees at all. Well, theoretically, if your keyboard relied on the MacBook ground, and the Teensy relied on the USB connector to see MacBook ground, perhaps it would...
  14. That's not really feasible for the main inline DC...

    That's not really feasible for the main inline DC blocking caps and bulk capacitance, though. Hence, the fall-back to film!
    Even there, a 4.7 uF capacitor is going to be 7.5x7.5 millimeter of board...
  15. Oh, that's sweet! I was going by the old...

    Oh, that's sweet! I was going by the old documentation that says SPDIF shares hardware with I2S.
  16. Just play chip tunes using PWM. Turn off...

    Just play chip tunes using PWM.
    Turn off interrupts and control the PWM directly for each pin, manually.
    MUSIC ON ALL THE PINS!

    Also, I thought S/PDIF used the same hardware as IIS, so you...
  17. The problem is with the SDCard FAT library. It is...

    The problem is with the SDCard FAT library. It is quite inefficient in how it reads blocks, and how it scans directories for files.
    If you can add a multi-threaded runtime into the Teensy runtime,...
  18. Those long loopy rails look like big inductors or...

    Those long loopy rails look like big inductors or antennas to me ...

    My experience is that high-quality audio benefits from four-layer boards, and may benefit from two-sided component mounts....
  19. Replies
    22
    Views
    364

    Long wires matter when you communicate at tens or...

    Long wires matter when you communicate at tens or hundreds of megahertz.
    Long wires also matter if they are very long, and VERY thin (like, thinner than 36 gauge) because they may have some...
  20. Replies
    797
    Views
    36,553

    Very nice! I wish we could collect all of these...

    Very nice! I wish we could collect all of these into a single, descriptive page, and put it inside the Teensy documentation somehow.
    In general, the Teensy documentation links on the main...
  21. I love PlatformIO. Thanks!

    I love PlatformIO. Thanks!
  22. It may be better to just run the sampling all the...

    It may be better to just run the sampling all the time, and when the noise crosses the threshold, wait for a small amount of time, and copy the data you need out of the buffer. That way, you get a...
  23. Replies
    3
    Views
    127

    A "register file" is generally the CPU registers,...

    A "register file" is generally the CPU registers, these come from the ARM cortex architecture specification.
    These are the registers where integers, floats, and pointers are manipulated by the CPU....
  24. Replies
    16
    Views
    744

    I could have sworn I saw a 4244 description...

    I could have sworn I saw a 4244 description somewhere but I can't find it now.
    Waiting for confirmation seems fine, no need to add mention of un-confirmed chips.
  25. Replies
    797
    Views
    36,553

    The best I've found is this: ...

    The best I've found is this:

    https://www.pjrc.com/store/teensy40.html

    These symbol section decorators work much like PROGMEM does on old-school AVR Arduinos, so you may be able to get a...
  26. Replies
    22
    Views
    364

    You can debug the hardware by running a sketch...

    You can debug the hardware by running a sketch that sets one column, and then checks each row input, waiting for a connection, and prints what it sees.
    Advance to the next column, check each row...
  27. Replies
    19
    Views
    701

    With a de-coupling capacitor, the input impedance...

    With a de-coupling capacitor, the input impedance is much less of a problem. Also, linearity isn't a super bad problem -- you can either not worry about it at all (the effect is somewhat muted) or...
  28. The uploader needs to read the output hex file. I...

    The uploader needs to read the output hex file. I wonder how it does that?
    If you're on linux, you can use "top" and "strace" and "oprofile" to figure out where the time is spent.
    On Windows, you...
  29. Replies
    16
    Views
    744

    @PaulStoffregen for the tool: The list of...

    @PaulStoffregen for the tool:

    The list of compatible chips says:

    Compatible CODEC Chips:
    STGL5000
    TLV320AIC3206
    AK4558
    Compatible DAC Chips:
    PCM5102A
  30. Replies
    19
    Views
    701

    Connecting the pots to agnd is probably the right...

    Connecting the pots to agnd is probably the right choice. However, you want to reduce the amount of current into agnd. With your current pots, you're sending 3.3/(2500/12) amps, or about 16 milliamps...
  31. Is it just me, or does it seem like using both...

    Is it just me, or does it seem like using both JSON and XML on a microcontroller perhaps not the sweet spot of the Teensy microcontroller?
    If you need JSON and XML and maybe HTTPS then perhaps using...
  32. Replies
    16
    Views
    744

    For what it's worth, a set of tabs, each with...

    For what it's worth, a set of tabs, each with their own list of things, might be better than a pulldown menu.
    Or a popup menu to select a set of things, and then the list of things.
    You can get...
  33. Replies
    6
    Views
    181

    This means that you're doing too much with...

    This means that you're doing too much with interrupts disabled. Copying a few global variables shouldn't take any appreciable time. However, if you try to copy large strings, or worse, do malloc() or...
  34. The Teensy LC is specified at 5 mA for most pins,...

    The Teensy LC is specified at 5 mA for most pins, and some pins can do 20 mA output.
    The other Teensies are generally specified for 10 mA per pin.
    There's also often a "sum across all pins"...
  35. One theory: The code in the SD library has no...

    One theory:
    The code in the SD library has no caching. It will scan your entire root directory to find the "BA" directory, each time you open something. Then it will scan the "BA" directory it...
  36. Replies
    11
    Views
    377

    If you're making many of these devices, and you...

    If you're making many of these devices, and you only need programmability for development, then you can use another programmer (such as a JTAG programmer) to program the production chips once you...
  37. Replies
    3
    Views
    178

    Thanks both of you!

    Thanks both of you!
  38. Replies
    15
    Views
    937

    I agree with the conclusion: wiring all that must...

    I agree with the conclusion: wiring all that must have been maddening!
    There's a reason modern electronics largely use touch screens :-D
  39. Replies
    3
    Views
    178

    Which pin is OUT1A on Teensy 4.1?

    I see both pin 39 and pin 7 marked as OUT1A, with neither of them being dimmed (secondary.)
    Is it still pin 7, like on the Teensy 4.0, or did it move to pin 39 on the 4.1?
  40. You shouldn't use comparators or interrupts at...

    You shouldn't use comparators or interrupts at all. Just use the ADC input(s) and sample the audio. Hook the microphones to the sound-in circuitry and use the Audio library to sample it.
    You should...
  41. How do you set up the USB audio-in endpoint? Are...

    How do you set up the USB audio-in endpoint? Are you using the audio library / setup?
    I don't see code in the USB library to set up 11 kHz (it all sets up at 44 kHz) but maybe you changed something?...
  42. Replies
    56
    Views
    5,127

    When you need a MMU, AND more than 4 GB of...

    When you need a MMU, AND more than 4 GB of addressable space, that will happen.
    Interestingly, the Pi uses 64-bit kernel but 32-bit user space, by default, although now that they have a 4 GB...
  43. I don't disagree. But the data sheet for the K66...

    I don't disagree. But the data sheet for the K66 says:


    Is the data sheet wrong?
  44. That's a good theory, but in this case, the VCC...

    That's a good theory, but in this case, the VCC is not hooked up at all -- the GND and pin 25 are the only pins connected. That means VCC is floating/undefined.
    However, there are circuits that can...
  45. But there is no 5V power into the Teensy. The 5V...

    But there is no 5V power into the Teensy. The 5V regulator does not start up. The 12V power switch does not turn on, because the voltage of the "INPUT" pin doesn't rise enough.
    I have tried this by...
  46. No, I think I'm using an earlier Teensyduino...

    No, I think I'm using an earlier Teensyduino (1.44 perhaps?)
    However, I don't get that far -- the power switch doesn't turn on, so the boost regulator doesn't turn on, so the Teensy doesn't turn on...
  47. Also: Powering the Teensy from USB, it can turn...

    Also: Powering the Teensy from USB, it can turn on and off the 12V rail fine. This is some kind of feedback problem when the Teensy itself is not yet powered.
  48. Teensy 3.6 pin impedance before being powered

    I have a PCB that has an electronic power switch for "12V" input (really, 3S or 4S LiPo,) that feeds a buck regulator, that generates 5V, that powers a Teensy 3.6.

    The power switch is latched high...
  49. Are you using the +5V output pin of the LC? That...

    Are you using the +5V output pin of the LC? That pin is not the same on the 3.2.

    Other than that, hook up your logic analyzer or oscilloscope to figure out what the difference is...
  50. I'd be down for a 4.6 form factor. Even with the...

    I'd be down for a 4.6 form factor. Even with the current chip, that could be useful. Although, TBH, the current robot doesn't use all the MHz of the 3.6 it has, so ...
    It *does* use all the edge I/O...
Results 1 to 50 of 306
Page 1 of 7 1 2 3 4