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
    4
    Views
    27

    Using the non blocking DMA mode is described...

    Using the non blocking DMA mode is described here:https://github.com/nox771/i2c_t3
  2. Replies
    4
    Views
    27

    Use DMA for the I2C transfers. Then, these will...

    Use DMA for the I2C transfers. Then, these will not be blocking.
  3. The clock speed is set during compile time, using...

    The clock speed is set during compile time, using the corresponding clock speed option in the tools menu of the Arduino IDE. There you select a clock speed between 4MHz and 96MHz. Editing the...
  4. I didn’t intend to insult you. If it came out...

    I didn’t intend to insult you. If it came out this way, please accept my apologies! I know that my non-native English is not up to refined diplomacy, but I do my best to improve.

    The first part of...
  5. Several people have already gone that path. It...

    Several people have already gone that path. It seems that fully reading a documentation and data sheets has become unmodern... odds are good that the line out will still work if the SGTL has not...
  6. Replies
    10
    Views
    89

    What you consider being an error is the laws of...

    What you consider being an error is the laws of physics (7th grade stuff). As I explained already, the freqmeasuremulti library measures not frequencies but period durations. The period time is...
  7. Pin compatibility exists basically and especially...

    Pin compatibility exists basically and especially for these functions which are traditionally bound to specific pins since the earliest Arduino days. That means that you’ll almost always find at...
  8. Replies
    10
    Views
    89

    I still don’t see a precise timeout handling for...

    I still don’t see a precise timeout handling for your period/frequency measurements.

    And you have enormous delay() times in the loop. Imagine one of the frequencies being around 100Hz. During a...
  9. Replies
    10
    Views
    89

    Sorry, can’t understand what you mean by that?!?...

    Sorry, can’t understand what you mean by that?!?
    Removing a signal from a pin means that the frequency will be zero. Thus, the period time which you get with read() will be theoretically infinite....
  10. Replies
    10
    Views
    89

    Too slow? Too slow for what? Please post code...

    Too slow? Too slow for what? Please post code which demonstrates the problem.
    I think you have read the read me file of the library which states that precise measurement is only possible for...
  11. Just to satisfy my scientific curiosity: The...

    Just to satisfy my scientific curiosity:
    The -1ppm which you measure in the original post will lead to an error of less then 1 second over 10 days. What kind of application would consider this as...
  12. Then, you'd check if this noise gets through to...

    Then, you'd check if this noise gets through to the ADC results. It might be that the sampled results are ok, though, since the the integration period of these SAR-delta-sigma converters is probably...
  13. At 3.3V supply, it is recommended to use 2.2k...

    At 3.3V supply, it is recommended to use 2.2k pull-up resistors on that side.
  14. Replies
    4
    Views
    38

    Yes. BTW, I'm don't think that...

    Yes.

    BTW, I'm don't think that analogWrite(x,255) in Arduino does a true "always on". That's why Teensyduino improved that function. Thus, by writing 255, you should get the same, an "almost...
  15. Replies
    4
    Views
    38

    Conclusion: Teensyduino is smarter than Arduino....

    Conclusion: Teensyduino is smarter than Arduino.

    Look at the source code of analogWrite() in the Teensyduino core files and you will see that analogWrite(255) will and can never be "always on"...
  16. Replies
    5
    Views
    55

    It is (within several limits, for example no USB...

    It is (within several limits, for example no USB audio). Several discussions about this topic exist already in these forums. Please do a search.

    A starting point could be utility/pdb.h where you...
  17. The standard safety requirement in Europe is...

    The standard safety requirement in Europe is 1.0mm^2 copper wire section per 10A (which corresponds to AWG17), independent of the voltage. For full 60A, you'd need 6 of these wires in parallel or one...
  18. The "problem" might be that you have added...

    The "problem" might be that you have added capacitors to Vcc and to the buffered Vcc/2 after the first op-amp. Both sources are Lo-Z, so that there is no true RC low-pass filter effect. I'd modify...
  19. Why not simply shifting the incoming bytes into...

    Why not simply shifting the incoming bytes into an unsigned 32bit integer and then compare for the command sequence pattern?

    uint32_t sr;
    sr = (sr << 8) | newbyte; // each time a byte arrives
    ...
  20. Replies
    1
    Views
    31

    Bad usb cable?

    Bad usb cable?
  21. Replies
    2
    Views
    39

    Time zone parameter?

    Time zone parameter?
  22. Replies
    1
    Views
    70

    Even if you ask friendly, nobody will most...

    Even if you ask friendly, nobody will most probably sit down and write code for you for free. These forums are intended to point people towards the needed resources, so that they get the tools at...
  23. Replies
    26
    Views
    1,628

    The problem is that (AFAIK) we Senior+ can only...

    The problem is that (AFAIK) we Senior+ can only block users via deleting a spam Post in the forums. Users which only send PMs but never posted in the forums seem unfortunately out of our reach.
  24. @rotabox: Why donít you systematically study the...

    @rotabox: Why donít you systematically study the source code of that library until you really understand every single line? Afterwards, it will most probably be very easy to do the needed...
  25. So, random returns an unsigned value. Which...

    So, random returns an unsigned value. Which explains the overflow after the subtraction when the result is expected to be negative. Which goes conform with my interpretion of the high values above.
  26. Replies
    46
    Views
    561

    The program pins have relatively weak pull-up...

    The program pins have relatively weak pull-up resistors internal to the MKL04. After making sure that the MKL04 gets 3.3V at its pins 3 and 4, you might look for something which pulls the pin down....
  27. The huge numbers ARE cast errors, they are the...

    The huge numbers ARE cast errors, they are the binary 2-complements in a 32bit structure. Subtracting 2^32 (4 294 967 296) from these gives the expected -2, -5, -3, -1, and -2.

    On Cortex M4F...
  28. Why would you waste RAM and CPU cycles for a...

    Why would you waste RAM and CPU cycles for a float with double precision (double x), when a simple int8_t is more than sufficient? All these type conversions which you do waste time and memory for...
  29. No. Cutting traces on the PCB might be an option.

    No. Cutting traces on the PCB might be an option.
  30. Replies
    13
    Views
    228

    Yes. Partly by selecting the optimization options...

    Yes. Partly by selecting the optimization options in the menu. More freedom when editing boards.txt. Totally free when composing your own makefile.
  31. Vin can and should remain together. GND too. But...

    Vin can and should remain together. GND too. But 3V3 should be separate.
  32. Replies
    46
    Views
    561

    These MKL04 processors, where did you buy these?...

    These MKL04 processors, where did you buy these? You should know that Teensy works only if you buy them pre-programmed from PJRC. Unprogrammed MKL04 MCUs will not work.
  33. Replies
    46
    Views
    561

    An unprogrammed "virgin" Teensy always shows up...

    An unprogrammed "virgin" Teensy always shows up as a HID device. That's normal and ok - the Teensy loader will be able to flash it over HID. If you want it to show up as a Serial device, you'll have...
  34. Replies
    2
    Views
    49

    https://www.pjrc.com/teensy/troubleshoot.html

    https://www.pjrc.com/teensy/troubleshoot.html
  35. In opposite to the Teensy 3.2 which has internal...

    In opposite to the Teensy 3.2 which has internal PGAs which might optionally amplify an input signal up to 64 times, the Teensy 3.6 doesn‘t have these, thus you have to find other ways to optimize...
  36. Replies
    3
    Views
    93

    There's a paper on the internet which explains...

    There's a paper on the internet which explains the theory behind: Sampling Rate Impact on the Tuning of PID Controller Parametersijet.pl/index.php/ijet/article/download/10.1515-eletel.../244
  37. You haven't forcibly to rely only on the FTM...

    You haven't forcibly to rely only on the FTM timers for generating 4 different frequencies. Many roads lead towards Rome. But to make meaningful suggestions, a little more info would be needed:
    ...
  38. These converters are for simple digitalsignals...

    These converters are for simple digitalsignals which occur in the analog synth world as gate or trigger signals which are either low(0V) or high(5V).

    CVs are much more complex, since (let’s take...
  39. The golden “Moog” standard for control voltages...

    The golden “Moog” standard for control voltages (CVs) in the analogue synth world since the early 1980s is as follows:

    Volume: 0V (mute) to 5V (full volume)

    Pitch: 1V/octave centered around...
  40. Novice user in the title was interpreted by me as...

    Novice user in the title was interpreted by me as novice with the Teensy. That doesn't have to be a contradiction to owning a brilliant diploma in engineering sciences... :cool:
  41. And still then, there is a risk of multiple...

    And still then, there is a risk of multiple events with one button press, due to mechanical contact bounce/chatter. You need a de-bounce algorithm for each button. The Bounce library could be of...
  42. No 5V, this will kill the analog inputs. From...

    No 5V, this will kill the analog inputs.

    From your picture, I see one end of the pot connected to +3.3V with a red wire. I see the wiper of the pot connected to teensy pin A0 with a black wire. I...
  43. It's all on the PJRC website, MCU spec sheets and...

    It's all on the PJRC website, MCU spec sheets and reference manuals : https://www.pjrc.com/teensy/datasheets.html
  44. Replies
    4
    Views
    86

    If the current delivered is limited to 20mA and...

    If the current delivered is limited to 20mA and the 150Ohm is always connected, the voltage can theoretically never exceed 3V. The Zener will hard limit it to 3.3V if the 150Ohm fails. So,...
  45. Replies
    4
    Views
    86

    Your "Arduino analog input model" does not apply....

    Your "Arduino analog input model" does not apply. The Teensy's ADCs are delta-sigma SAR converters which have a switched capacitor input and thus a non constant input impedance. This explains the...
  46. Most performant and universal solution: 74HCT125

    Most performant and universal solution: 74HCT125
  47. Replies
    6
    Views
    94

    So, in order to dim the LEDs, a multiplication of...

    So, in order to dim the LEDs, a multiplication of all R, G, and B values with the same attenuation factor could be a solution. If using a T3.x, there are DSP instructions which allow packed...
  48. Replies
    5
    Views
    115

    It was commented out because each declared WIRE...

    It was commented out because each declared WIRE instance eats up a few system resources, if used afterwards or not. And WIRE3 is a fourth I2C bus. Seen that each bus can theoretically handle 120...
  49. Replies
    3
    Views
    91

    If you "read" these FSRs at low rate, you might,...

    If you "read" these FSRs at low rate, you might, if needed, still apply some low pass filtering in your code. I wouldn't overthink that for the moment and keep it simple.

    The ferrite is (IIRC)...
  50. Replies
    3
    Views
    91

    The ferrite has two functions. First, it shall...

    The ferrite has two functions. First, it shall remove digital noise from GND. Second, it is intended to be the one and single (to prevent ground loops) required DC reference connection point between...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4