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

Search:

Type: Posts; User: rcarr

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    307

    The part is the orange LED connected to pin 13. ...

    The part is the orange LED connected to pin 13. Your Teensy is probably fine but you won't be able to run a blink sketch unless you hook up an external LED and resistor to an I/O pin.
  2. Replies
    12
    Views
    680

    Let me fix my post just for you Mcu32. ...

    Let me fix my post just for you Mcu32.




    Mcu32 has the right idea here.


    The OP said:
  3. Replies
    12
    Views
    680

    I also once wanted to be as fast as possible with...

    I also once wanted to be as fast as possible with the I/O and wrote a speed test program for the Teensy 3.6 ( it may not run on Teensy 4 ). It proved to me that you won't invent anything faster than...
  4. Replies
    12
    Views
    680

    Yes you are being silly. digitalWriteFast will...

    Yes you are being silly. digitalWriteFast will be as fast or faster than anything you write yourself. ( Unless you want to just toggle a pin where you can be faster by writing directly to the...
  5. Replies
    9
    Views
    619

    Leaving unpowered Teensys's connected to powered...

    Leaving unpowered Teensys's connected to powered routers could be detrimental in two ways. Serial lines idle high, so the Teensy was likely powered via the RX I/O pin when not connected to your...
  6. Replies
    16
    Views
    622

    Call flush() before exists() ?

    Call flush() before exists() ?
  7. Replies
    4
    Views
    577

    I think your approach is fine but it may fail in...

    I think your approach is fine but it may fail in 50 days.

    https://www.norwegiancreations.com/2018/10/arduino-tutorial-avoiding-the-overflow-issue-when-using-millis-and-micros/

    Interval timers...
  8. You may be able to make use of the play queue...

    You may be able to make use of the play queue object. It allows external data to be injected into an audio stream.

    A process that takes more than 3ms to calculate 768 values must be either very...
  9. You can use resistors of approximate ratio of 2k...

    You can use resistors of approximate ratio of 2k to 3k to level shift but I would think two of those level shifting boards would be easier to wire than 16 resistors. If you are designing etch then...
  10. Replies
    2
    Views
    205

    You should post your program so people can see...

    You should post your program so people can see what you are trying to do. But I think I understand and I think your best bet would be to connect another change interrupt capable pin to pin 2 ( pin...
  11. Replies
    25
    Views
    1,223

    Yes, I see I was missing the factor of 60 for...

    Yes, I see I was missing the factor of 60 for RPM. Another thought I had was you could call my median routine twice or more, like:


    val = median( 0, val );
    val = median( 1, val );
    ...
  12. Replies
    25
    Views
    1,223

    https://www.pjrc.com/teensy/td_libs_FreqMeasure.ht...

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


    The docs for FreqMeasure indicate that FreqCount would be a better fit for your application, and interestingly you have issues at low speed...
  13. Replies
    25
    Views
    1,223

    Unsigned arithmetic is tricky, subtraction may...

    Unsigned arithmetic is tricky, subtraction may give a modulo largest number effect, and I am not completely sure, but when the rpm is slowing you could see very large spikes. I would suggest...
  14. I have seen those types of errors before. My...

    I have seen those types of errors before. My solution was to change the library to use digitalWriteFast statements. It is just as fast or faster than the direct port manipulation macros.




    ...
  15. I think one way you could send AM with your...

    I think one way you could send AM with your hardware was to have two versions of your AM modulator, one for the I channel and one for the Q channel. The waveform generators would be 90 degrees...
  16. Glad to hear it. Yeah, all variables that are...

    Glad to hear it. Yeah, all variables that are shared between interrupt service routines and your regular code should be declared as volatile, otherwise the compiler will optimize your code away if...
  17. I thought I had done something like this, but I...

    I thought I had done something like this, but I used the sqrt( I^2 + Q^2) methods in this paper. The first part of the paper is just square roots using iterative method and square root as an IIR...
  18. measured should be declared as a volatile...

    measured should be declared as a volatile variable, that may or may not make a difference in your case.
  19. In general I would think of the differences...

    In general I would think of the differences between the T3.2 and T3.5. The T3.5 is faster so there will be less time between writing the columns and reading the rows. The library is using the...
  20. Replies
    6
    Views
    443

    I don't know what gps hardware works this way,...

    I don't know what gps hardware works this way, but this does seem to be a thing...

    https://novatel.com/support/known-solutions/almanac-injection-procedure
  21. Replies
    7
    Views
    477

    And assuming you are using a DS1307 wired to the...

    And assuming you are using a DS1307 wired to the Teensy, the datasheet says this:

    "If a backup supply is not required, VBAT must be grounded. "
  22. Replies
    16
    Views
    826

    pinMode( x, INPUT ) connects the pin to digital...

    pinMode( x, INPUT ) connects the pin to digital input circuitry inside the Teensy. This does load the pin slightly as you have found.



    My opinion is that for a microcontroller you want your...
  23. My thoughts from looking at the mixer object: ...

    My thoughts from looking at the mixer object:


    void Panner::update(void){
    for(int och = 0; och < num_channels; ++och){
    audio_block_t *block = receiveReadOnly(0); You need...
  24. With all those motors hooked to the Teensy you...

    With all those motors hooked to the Teensy you may be drawing too much current, scope your Vin pin to see if the voltage is sagging.

    I would guess you must have the motors wired in parallel...
  25. Replies
    14
    Views
    545

    My code is written for a Pic 16F690, is not a...

    My code is written for a Pic 16F690, is not a complete program, and has nothing to do with Teensy or Arduino. I offered it as an example of how the algorithms work in using a UART with a One-Wire...
  26. Replies
    14
    Views
    545

    Funnily enough, I looked at my Microchip 16F690 ...

    Funnily enough, I looked at my Microchip 16F690 project of many years ago that uses a one-wire temperature sensor and I used the UART.


    char reset_1wire(){

    /* set up uart for 9600 baud,...
  27. Replies
    14
    Views
    545

    I guess the OP is asking for someone to write the...

    I guess the OP is asking for someone to write the code.

    All the info is here, it is an interesting idea: https://www.maximintegrated.com/en/design/technical-documents/tutorials/2/214.html
  28. I didn't really look at your issue at depth but I...

    I didn't really look at your issue at depth but I would think you would want to erase the bounds of the old string instead of the new string. So something like:


    void updateX()
    {
    static...
  29. Replies
    18
    Views
    641

    In looking at the linked document, I would guess...

    In looking at the linked document, I would guess you are looking to hook it up as the common anode setup. I would say NO, you do not want to hook that directly to the Teensy pins as the Teensy will...
  30. Replies
    9
    Views
    436

    I think you need to wait until all the characters...

    I think you need to wait until all the characters have been received:


    void ReceivePacket () {

    char incomingBytes[35] ;

    // Check if data is available
    if ( CH1.available() ) { ...
  31. Traditionally blank eeprom is all ones ( 0xff )...

    Traditionally blank eeprom is all ones ( 0xff ) not zero. I would think Paul would implement that behavior if the eeprom is emulated. You could write a program to read and display a few values to...
  32. Replies
    4
    Views
    291

    Its not that bad. You loose a bit for each...

    Its not that bad. You loose a bit for each power of two number signals added, so you are down to 14 bits per signal.

    There is a floating point version of the audio library. I have not looked at...
  33. The audio library Record Queue object does what...

    The audio library Record Queue object does what you wish? It dumps audio data to buffers that can be accessed by the Teensy program.

    Before I was aware that the queue object existed, I wrote a...
  34. Did you add pullup resistors on the Wire1 pins?

    Did you add pullup resistors on the Wire1 pins?
  35. My proposal was a hardware solution to your...

    My proposal was a hardware solution to your problem and you wouldn't need to make any software changes to the SPI library. I have done this type of thing with UART's before. I do not know if it...
  36. I would envision a hardware hack such that MISO...

    I would envision a hardware hack such that MISO and MOSI are connected with a resistor. The SDA pin would be tied to MISO instead of MOSI. The resistor value would need to be low enough such that...
  37. I don't really know but I doubt there are any...

    I don't really know but I doubt there are any side effects.

    I don't believe you will see any speed improvement in using the i2c_t3 unless you use the added functions that the library provides. ...
  38. My solution was to edit the 6 control files in...

    My solution was to edit the 6 control files in the Audio library like this example for one of the files:


    #include <Arduino.h>
    #include "control_sgtl5000.h"
    //#include "Wire.h"
    #include...
  39. The scope traces look good, I now think your...

    The scope traces look good, I now think your analysis of the issue is correct. May I ask what type of device is driving the signal / why is it slow? Are you relying on just the Teensy internal...
  40. Your scope capture shows some coupling between...

    Your scope capture shows some coupling between Ch1 and Ch2. For example at the falling edge on Ch1, Ch2 shows a slight bump. After the interrupt, the general noise on Ch1 is mirrored on Ch2. ...
  41. To answer my own question, run time size of...

    To answer my own question, run time size of arrays are valid in C now and without the C++ new and delete keywords as in your link. This link has a good discussion of potential issues, most notable...
  42. Replies
    2
    Views
    192

    } else { Serial.println("Reading EEPROM"); ...

    } else {
    Serial.println("Reading EEPROM"); //show reading
    EEPROM.get(store_direct, directions);
    EEPROM.get(sequences, store_seq); Address and data reversed here
    ...
  43. I am asking this as a question because I do not...

    I am asking this as a question because I do not know the answer.


    uint16_t bufCopy[NumElementsInBuffer];

    Does C++ allow dynamically allocated size of auto class arrays? As a C programmer I...
  44. Looking at peak in the audio library bool...

    Looking at peak in the audio library


    bool available(void) {
    __disable_irq();
    bool flag = new_output;
    if (flag) new_output = false;
    __enable_irq();
    return flag;
    }
  45. Replies
    4
    Views
    242

    The most likely scenario is that your 30 feet of...

    The most likely scenario is that your 30 feet of wire is acting as an antenna and picking up stray 60 (50) cycle fields. It could also pick up nearby transmitters such as FM stations, ethernet...
  46. See if this works better....and if it does, see...

    See if this works better....and if it does, see if you can see why.


    void updateMux1 () {
    for (int i = 0; i < 8; i++){
    digitalWrite(pin_Out_S0, i & B00000001);
    ...
  47. Maybe check your wiring? This sounds like a...

    Maybe check your wiring? This sounds like a half duplex, full duplex issue. It would seem that in your T3.5 setup, your DIR pin prevents your transmitted signal from appearing on the serial RX pin...
  48. Thread: CRC calculation

    by rcarr
    Replies
    5
    Views
    363

    You appear to be generating a CRC on 24 bytes, or...

    You appear to be generating a CRC on 24 bytes, or 192 bits; not on 3 bytes or 24 bits.

    Could the data just be int8[] type. Why is it in a string?

    If it needs to be in a string, you could...
  49. Replies
    2
    Views
    381

    I have. I did this sort of an exercise to see...

    I have. I did this sort of an exercise to see how it would work out. I think it would make much more sense to use the audio board. The readme on github has a fairly good explaination of the...
  50. Replies
    3
    Views
    324

    Possibly the difference is due to the difference...

    Possibly the difference is due to the difference in VIH, VIL of the Arduino vs the Teensy, one being a 5 volt input and the other 3.3 volt . They will detect high and low at different levels of...
Results 1 to 50 of 348
Page 1 of 7 1 2 3 4