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. 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...
  2. Replies
    18
    Views
    316

    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...
  3. Replies
    9
    Views
    238

    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() ) { ...
  4. 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...
  5. Replies
    4
    Views
    179

    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...
  6. 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...
  7. Did you add pullup resistors on the Wire1 pins?

    Did you add pullup resistors on the Wire1 pins?
  8. 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...
  9. 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...
  10. 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. ...
  11. 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...
  12. 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...
  13. 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. ...
  14. 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...
  15. Replies
    2
    Views
    144

    } 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
    ...
  16. 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...
  17. 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;
    }
  18. Replies
    4
    Views
    185

    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...
  19. 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);
    ...
  20. 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...
  21. Thread: CRC calculation

    by rcarr
    Replies
    5
    Views
    270

    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...
  22. Replies
    2
    Views
    310

    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...
  23. Replies
    3
    Views
    279

    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...
  24. I suggest just start with a...

    I suggest just start with a delayMicroseconds(500) in your updateMux1() function. See if that helps with your unstable readings. My other idea is sort of like the blink without delay example where...
  25. https://www.ti.com/lit/ds/symlink/cd4051b.pdf?ts=1...

    https://www.ti.com/lit/ds/symlink/cd4051b.pdf?ts=1655186591995&ref_url=https%253A%252F%252Fwww.google.com%252F

    To find the amount of delay needed, look at the switching characteristics and the...
  26. This would seem to indicate that you have 5 volts...

    This would seem to indicate that you have 5 volts on the pots instead of 3.3 volts. If fed with 5 volts the Teensy LC may be destroyed.


    void updateMux1 () {
    for (int i = 0; i < 8; i++){
    ...
  27. To convert your code to Teensy could be as simple...

    To convert your code to Teensy could be as simple as changing one line:


    #define srxl2port Serial
    Change this line to
    #define srxl2port Serial1


    You would then add the diode circuit to...
  28. If you look at the one-wire protocol, you will...

    If you look at the one-wire protocol, you will see it is completely different from half duplex serial ( rs232 type ) communication. You will not be able to use the OneWire Library.
  29. Replies
    6
    Views
    494

    In one of my programs I used one bi-quad of high...

    In one of my programs I used one bi-quad of high pass and 3 bi-quads of low pass. For the narrow band mode of CW, the bandwidth is split plus and minus from the center frequency of 700 hz. You can...
  30. Replies
    6
    Views
    494

    Q is a value without units. I have used this...

    Q is a value without units. I have used this online calculator for cascading highpass, lowpass filters. I did not have good results with the bandpass filter type and cascaded highpass and lowpass...
  31. Replies
    1
    Views
    238

    The waveform looks like amplitude modulation, so...

    The waveform looks like amplitude modulation, so I would try rectifying, low pass filtering, and then peak detection. I do not know if that would work or not.
  32. Replies
    7
    Views
    271

    int throttle2_input = map(throttle_input, 1497...

    int throttle2_input = map(throttle_input, 1497 ,519 , 0, 180);
    throttel1.write(throttle2_input); You wanted throttel2.write here

    Do your ESC motors combination produce the...
  33. Replies
    7
    Views
    271

    Some thoughts: What gets printed out on...

    Some thoughts:

    What gets printed out on serial? Do you read the channel information correctly?

    Many/Most ESC's need to be armed, need to see zero speed for a certain time. Add that to setup....
  34. Replies
    2
    Views
    245

    From the linked threads, this one is something...

    From the linked threads, this one is something you can try in software: https://forum.pjrc.com/threads/69717-High-gain-audio-amp-picks-up-noise-from-analogRead?p=303208&viewfull=1#post303208

    You...
  35. Replies
    5
    Views
    291

    I don't see how it can not be connected unless...

    I don't see how it can not be connected unless that etch run has burnt open. You could check that by checking for 5 volts over on pin 1 of Encoder1. (But it would be much better if you check for...
  36. Replies
    5
    Views
    291

    The etch shows 5 volts going directly to pin 3,...

    The etch shows 5 volts going directly to pin 3, does it not? It doesn't even matter if the encoders were not plugged in, pin 3 will still see 5 volts.
  37. The library returns negative numbers for any...

    The library returns negative numbers for any error, so I don't think one should be surprised about the values printed being negative - it just points to some kind of error, like Kurt says maybe SPI...
  38. Perhaps receiving with SPI slave mode with a...

    Perhaps receiving with SPI slave mode with a hardware or software one-shot to recover the clock.
  39. Water is not conductive unless it has impurities....

    Water is not conductive unless it has impurities. My well water is very hard, and some water in the sink has about 100k ohms resistance between probes about 6 inches apart. You could measure your...
  40. The pinout is different CBE and EBC. This...

    The pinout is different CBE and EBC.

    This statement is nonsensical.
  41. So the switch blocks the traffic for some reason,...

    So the switch blocks the traffic for some reason, I would check logs/settings in the switch.
    Firewall settings.
    Improper network class chosen.
    Spanning tree decided the IP was on a...
  42. Replies
    10
    Views
    368

    The example code in the library shows some...

    The example code in the library shows some significant differences when using the T4, pin used and time in microseconds.


    /* FreqCount - Example with serial output
    *...
  43. Replies
    1
    Views
    147

    Try removing AudioNoInterrupts(); from your...

    Try removing AudioNoInterrupts(); from your loop. You need to let the audio processing happen in the background while you write the display.
  44. Replies
    3
    Views
    250

    The data sheet has the information to answer your...

    The data sheet has the information to answer your question:

    IIH High-level input current VI = VCC 1 μA
    IIL Low-level input current VI = 0 −1 μA

    1 micro ampere is a very small current, you will...
  45. Replies
    1
    Views
    197

    I2C is relatively slow compared to modern...

    I2C is relatively slow compared to modern processors. Adding to the issue is that the historical Arduino Wire library is somewhat brain dead in that it blocks during the end transaction function...
  46. Interesting thread. ...

    Interesting thread.

    https://forum.pjrc.com/attachment.php?attachmentid=27831&d=1647280960

    Since the circuit uses an external pullup, use of the internal pullup is redundant. I thought for sure...
  47. Thread: USB Audio Mixing

    by rcarr
    Replies
    12
    Views
    701

    A click and drag in the audio design tool and it...

    A click and drag in the audio design tool and it writes the program for you.

    How many sine waves do you need? With 4 mixers fed into one mixer you would have your USB audio plus 15 sine waves all...
  48. You can use two 1K resistors as a voltage divider...

    You can use two 1K resistors as a voltage divider to reduce 6.4 volts to 3.2 volts. Hopefully you haven't damaged pin 15 on your Teensy but you should keep that in mind as a possible future cause of...
  49. You can use attachInterrupt, here is a simple...

    You can use attachInterrupt, here is a simple explaination. https://forum.pjrc.com/threads/42800-Teensy-Interrupts-for-Dummies

    You can see in that example that you do not need to read what pin...
  50. Replies
    22
    Views
    665

    Is "88" less than 10000?

    Is "88" less than 10000?
Results 1 to 50 of 321
Page 1 of 7 1 2 3 4