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

Search:

Type: Posts; User: Theremingenieur

Page 1 of 10 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    3
    Views
    27

    You are welcome! :)

    You are welcome! :)
  2. Replies
    3
    Views
    27

    I guess that you won't see anything when you...

    I guess that you won't see anything when you connect your oscilloscope to the TX1 pin...

    Your code instantiates the wrong serial port. Serial is the virtual serial over USB. The hardware UART on...
  3. How do you expect getting help if you do not give...

    How do you expect getting help if you do not give more precise information about WHAT is not working... is it that myFunc() is not called, or is it called but no reply sent? What about the wiring?...
  4. If I happened to roast a Teensy accidentally, I...

    If I happened to roast a Teensy accidentally, I even wouldn’t post that here. No need to advertise my silliness in public since whatever happened, it was my fault. The correct procedure is trashing...
  5. Think of the many mice, rats, apes, and pigs...

    Think of the many mice, rats, apes, and pigs which are killed during the development of new médicaments or perfumes...

    And think of what you will earn when you’ll have sold the first 5000 units of...
  6. The Teensy SPI library website...

    The Teensy SPI library website https://www.pjrc.com/teensy/td_libs_SPI.html states clearly that slave mode is not supported...
  7. ISR(Vector) works only on AVR but not on ARM...

    ISR(Vector) works only on AVR but not on ARM processors like the Teensy. The SPI library for the Teensy does AFAIK not support attachinterrupt().
  8. I'm not a "savvy mcu/electronics professional", I...

    I'm not a "savvy mcu/electronics professional", I have "only" acquired degrees in mathematics and music more than 30 years ago. But when it comes to developing stuff with an MCU, the approach is the...
  9. An internal pull-up on PTC10/11 can only come...

    An internal pull-up on PTC10/11 can only come either by the GPIO engine or by the I2C engine. Both should normally not play a role as long as these pins are neither configured as GPIO nor as I2C...
  10. If you want to do analog readings, you should not...

    If you want to do analog readings, you should not configure the pins as GPIO input pins to prevent ugly side effects from the pin mux into the ADCs. After booting, pins are by default in analog mode...
  11. Replies
    23
    Views
    269

    The strategy is: 1 Setting the FTM1 clock source...

    The strategy is:
    1 Setting the FTM1 clock source to F_BUS
    2 Setting the FTM1 MOD register to 59 (60-1) because the 0 counts, will give 1MHz clock
    3 Setting the FTM1_CH0 CMP register to 29 or 30...
  12. Replies
    23
    Views
    269

    2 issues: First, there are visible "ringing"...

    2 issues: First, there are visible "ringing" peaks, your oscilloscope probe might not be well compensated and thus the measurement slightly wronged. Second, with using analoigWriteFrequency and...
  13. The BCLK and MCLK signals are RF @ 2.82 and...

    The BCLK and MCLK signals are RF @ 2.82 and 11.29MHz. It should be self-understanding to treat such signals in an appropriate way, keeping the wiring as short as possible to prevent parasitic...
  14. Replies
    1
    Views
    75

    Ohm’s law (8th grade stuff) allows you to...

    Ohm’s law (8th grade stuff) allows you to calculate whatever voltage divider.

    Little reminder: Vout = Vin * R1 / (R1 + R2), so to bring 12V down to 3.3V, select R1 to 3.3k and calculate R2 to 8.7k.
  15. Naturally. Not only in Teensyduino but in all...

    Naturally. Not only in Teensyduino but in all embedded developments which rely on the gcc compiler because it supports inline assembly. Parts of the Teensyduino audio library are written in assembly....
  16. I'm using one of the cheapest Chinese SALEAE...

    I'm using one of the cheapest Chinese SALEAE clones (https://www.amazon.fr/AZDelivery-Logic-Analyser-compatible-version/dp/B01MUFRHQ2) for just 13€ (free shipping in France with Amazon prime) for 2...
  17. Replies
    9
    Views
    234

    This is not only true and important for the...

    This is not only true and important for the comparators but for ALL internal peripherals (DACs, ADCs, SPI, I2C, I2S, UARTS, USB, and so on) which are by default disabled on boot to save energy. Each...
  18. Please write that to Bill Gates. That's clearly a...

    Please write that to Bill Gates. That's clearly a Windows issue (one of the 9764711)...
  19. It's just important that you buy the MKL02/04...

    It's just important that you buy the MKL02/04 pre-programmed from PJRC. A factory fresh empty MKL02/04 won't do the job.
  20. Make the choice of a pin which is associated to...

    Make the choice of a pin which is associated to one of the Flextimers FTM0 to FTM3 (these are the PWM capable pins) as a clock pin. Make sure you do not need that FTM for PWM or input capture...
  21. Man... Look at the Teensy schematics to see how...

    Man... Look at the Teensy schematics to see how it's wired and the corresponding explanations of the MKL02/04 and how to build a custom Teensy on the PJRC website. The MKL02/04 acts as a kind of...
  22. Replies
    5
    Views
    103

    It depends on the multiplexer and the ground...

    It depends on the multiplexer and the ground current peaks it generates during input switching or not. Normally, the logical GND of a multiplexer IC like a CD4051 would go to GND, while the reference...
  23. You might build a programmer around the MKL02/04...

    You might build a programmer around the MKL02/04 and an USB connector and plan to bring out just PTA0-3, 3V3, GND and Reset_B to a pin header of your PCBs.
  24. There is a misunderstanding. Looking at the...

    There is a misunderstanding. Looking at the Teensy 3.6 schematic, you see that the USB power is not "the chip's own". It goes to an external voltage regulator (LP38691) which then feeds 3.3V into the...
  25. Replies
    5
    Views
    103

    Yes, only in conjunction with true analog I/O...

    Yes, only in conjunction with true analog I/O (not PWM)
  26. Replies
    5
    Views
    103

    GND it must be!

    GND it must be!
  27. Replies
    3
    Views
    94

    The error messages show definition conflicts...

    The error messages show definition conflicts between the EventResponder object which is part of the Teensyduino core and the FreeRTOS library. Apparently, this library has not been updated recently...
  28. I’d suggest to move over to a Teensy 3.6 which...

    I’d suggest to move over to a Teensy 3.6 which has an onboard USB host.
  29. You’d have to track down where the (internal, not...

    You’d have to track down where the (internal, not public) function serial_print() is defined. In Eclipse for example, highlight it and press F3 to open the corresponding source file and jump directly...
  30. Happy to see that this extension to the library,...

    Happy to see that this extension to the library, allowing optionally the selection of different parts of the signal, which I contributed many years ago and which seems to be rarely used, is useful...
  31. Replies
    11
    Views
    1,322

    Read the data sheet. VREF May not go below 1.1V!...

    Read the data sheet. VREF May not go below 1.1V! When providing an external VREF, the 470R can remain in place. Some external references do need a bias resistor and there, you have already one.
  32. Could be a file format problem. The wav player...

    Could be a file format problem. The wav player example can only play 44.1kHz 16bit PCM encoded files. It will stutter or not play if a different format is used.
  33. Replies
    11
    Views
    1,322

    The Teensy has two internal ADCs. All analog...

    The Teensy has two internal ADCs. All analog capable pins can be switched to one of the two ADCs by an internal multiplexer when a command like analogRead is invoked. The Teensyduino core (or, for...
  34. I do not know well the snooze library, but there...

    I do not know well the snooze library, but there is for sure a way to keep it awake with a command which you'd insert between

    while (playWav1.isPlaying()) {and

    } // Wait for the file to...
  35. Not sure if int is the same size on 8bit UNO and...

    Not sure if int is the same size on 8bit UNO and 32bit Teensy.

    I'd try to declare every variable explicitly, using for example int32_t and uint32_t instead of int and unsigned long, to avoid...
  36. IMHO, interrupts are not the optimal way for this...

    IMHO, interrupts are not the optimal way for this purpose. Why not use an FTM and capture both signal edges, rising and falling ? There, without any latency, you get a reading of about 48 for an 1us...
  37. 1.) The communication with that sensor is more...

    1.) The communication with that sensor is more complicated. You need to send commands over I2C to start ranging and wait for an interrupt to read the result.

    2.) Forget it for Theremin use. Been...
  38. If it's with a photoresistor, you should not call...

    If it's with a photoresistor, you should not call it a Theremin. As the original Theremin patent states, its primary characteristic is generating sound with continuous pitch through heterodyning two...
  39. The active speaker must be connected to the line...

    The active speaker must be connected to the line output of the audio shield, and NOT to the headphones output. The latter risks to give problems with the ground potential and to destroy the SGTL5000...
  40. Not for embedded systems, but there exists a...

    Not for embedded systems, but there exists a windows tool called LEDstudio. It can display still pictures or videos in a pre-defined (via setup) screen area, executes frame grabbing at the same time...
  41. Replies
    5
    Views
    133

    Most probably, the H-bridge needs 5V logic...

    Most probably, the H-bridge needs 5V logic signals while the Teensy outputs 3.3V logic...
  42. Replies
    2
    Views
    80

    Due to the input impedance of the SAR ADCs which...

    Due to the input impedance of the SAR ADCs which varies during the conversion cycle, a relatively low resistance of the potentiometer is required. An application note from NXP recommends 5k or 10k....
  43. The DAC is disabled on boot up, so it won't...

    The DAC is disabled on boot up, so it won't interfere by default and pin A14 will behave like any other analog input pin. Just take care to not accidentally activate the DAC, i.e. by having a...
  44. The LED acts as an external pull-down, which is...

    The LED acts as an external pull-down, which is much stronger than any internal pull-up, so it electrically overrides that. So yes, it is rather not possible to use pin13 in input pull-up mode...
  45. The inbuilt DAC has only a resolution of 12bits...

    The inbuilt DAC has only a resolution of 12bits which gives a theoretical S/N ratio of 73.6dB. External audio DACs might provide 16bit (PT8211), 24bit(PCM5102A) or even more bits, thus lowering noise...
  46. Replies
    57
    Views
    852

    No, the 3.6 has a maximum clock rate of 180MHz...

    No, the 3.6 has a maximum clock rate of 180MHz while the 3.5 has 120MHz. The 3.6 has 1024kB of program flash, the T3.5 only 512kB.
  47. Replies
    17
    Views
    233

    You simply seem to not fully understand the MK64...

    You simply seem to not fully understand the MK64 architecture. You can’t directly access the FLexNVM. If the EEPROM emulation is enabled, the 128kB FLexNVM hide behind the 4K of FlexRAM. Reads and...
  48. Replies
    17
    Views
    233

    What about a simple and cheap external SPI or I2C...

    What about a simple and cheap external SPI or I2C flash chip? Or using the SD slot?
  49. Replies
    17
    Views
    233

    It's easy to understand: The flash memory tends...

    It's easy to understand: The flash memory tends to wear out and become unreliable after a few thousands of erase/write cycles. Reading does not affect the flash cells' lifetime.

    In order to...
  50. Replies
    19
    Views
    601

    Each I2C bus can communicate with more than 100...

    Each I2C bus can communicate with more than 100 devices as per specifications. All Teensy 3.x have at least 2 I2C busses, so, one might connect up to 200+ devices. Where is the need for a multiplexer?
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4