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

Search:

Type: Posts; User: rcarr

Page 1 of 5 1 2 3 4

Search: Search took 0.00 seconds.

  1. Yes from the results you are getting, both slaves...

    Yes from the results you are getting, both slaves are responding to the read command at the same time. If it were 8 bit data and the true reading of unit 1 was 0xF1 and the true reading of unit 2...
  2. The open collector I2C bus with pullups acts as a...

    The open collector I2C bus with pullups acts as a wired AND or wired NOR. Each device can turn ones into zero's but cannot change zero's into ones. You will never get the actual correct reading...
  3. Thread: 24 Keys Matrix

    by rcarr
    Replies
    8
    Views
    393

    Thinking about the differences between a UNO and...

    Thinking about the differences between a UNO and a Teensy:

    The Teensy is faster and will fail when the program needs more time between steps. I think that is probably the issue and would suggest...
  4. As a valid test, you could wire say pin 5 over to...

    As a valid test, you could wire say pin 5 over to one of the resistors on the breadboard and then write a signal pulse in loop like


    delay(100);
    digitalWrite( 5, LOW );
    digitalWrite( 5,...
  5. The signals on the scope show undershoot, ( they...

    The signals on the scope show undershoot, ( they go below zero volts ) and the rising edge looks like there is capacitance. Perhaps your scope probes are not compensated. There are a couple of...
  6. There is something that doesn't quite add up with...

    There is something that doesn't quite add up with this experiment. Just touching the pin with a probe shouldn't cause a low going signal. Your power wiring looks a little suspect, the connector on...
  7. class AudioAnalyzePrint : public AudioStream {...

    class AudioAnalyzePrint : public AudioStream
    {
    public:
    AudioAnalyzePrint(void) : AudioStream(1, inputQueueArray),
    myname(NULL), state(0), trigger_edge(0), delay_length(0), print_length(500)...
  8. Thanks. I guess I should update my install. I...

    Thanks. I guess I should update my install. I was reluctant to because of some edits I made so I could use non-blocking I2C_t3 functions instead of Wire.
  9. Looks like it updates a receive only buffer at...

    Looks like it updates a receive only buffer at least in the version of the library that I have.


    void AudioEffectRectifier::update(void)
    {
    audio_block_t *block = receiveReadOnly();
    if...
  10. Is there something wrong with Audio rectify1

    I am making a SDR radio, but this example shows the problem.

    Teensy 3.2 at 72mhz compiled faster. Not sure how to find my version of Teensyduino. I haven't downloaded recently.

    The idea is...
  11. I think it would be useful to see if you can...

    I think it would be useful to see if you can leverage use of the SPI hardware built in to the Teensy. Looking at wikipedia, it seems that FM encoding could be done by encoding two bits for each bit...
  12. Replies
    15
    Views
    869

    >> drawing circle at (-8,263) This is...

    >> drawing circle at (-8,263)

    This is probably not your issue but something I noticed:
    Your calls to fillCircle with coordinates off the screen probably return without doing any drawing. So...
  13. Replies
    10
    Views
    1,578

    Here is some simple polling code for cheap...

    Here is some simple polling code for cheap mechanical encoders. Just replace the new_ = PINC line with some digitalReads for whatever micro you are using. The code does not keep track of absolute...
  14. Since it is on a breadboard with long wires I...

    Since it is on a breadboard with long wires I suggest trying a slower clock, 10 mhz or slower: // tft.setClock(10000000);

    It could be a faulty display that forgets its rotation setting. You...
  15. Yes it is.

    Yes it is.
  16. Pretend your keeping the values listed on a piece...

    Pretend your keeping the values listed on a piece of paper:

    The first value, you simply write that down on the paper and also its index 0

    Scenario 1: The values are always increasing: Since...
  17. Replies
    4
    Views
    512

    The circuit has an opto-isolator which consists...

    The circuit has an opto-isolator which consists of a light emitting diode and photo sensitive transistor. When the jumpers are off, the Teensy will be totally isolated from the relay power supply -...
  18. Replies
    4
    Views
    512

    23623 According to this schematic from Amazon...

    23623

    According to this schematic from Amazon which may or may not be correct, you do not need the ground connection from the external power supply to the Teensy. BUT your external supply should...
  19. Serial.write(incomingByte); Serial.println();

    Serial.write(incomingByte);
    Serial.println();
  20. Replies
    1
    Views
    313

    println expects a zero terminated char array...

    println expects a zero terminated char array which you don't have. Also do you really want to put a return/line_feed every 512 characters into your file ?
    I think you will be better served with...
  21. I suggest you take the whole debug routine out of...

    I suggest you take the whole debug routine out of interrupt context and put it in loop(). That would just be I guess.



    #ifdef DEBUG
    serialInput();
    ...
  22. You have interrupts disabled during this loop. ...

    You have interrupts disabled during this loop. That shouldn't be needed. Have you tried running your EEprom loop with interrupts enabled?
  23. char s[4]; char h[2]; These char arrays...

    char s[4];
    char h[2];

    These char arrays are not big enough. A char string has a zero terminator on the end.
  24. Replies
    37
    Views
    2,220

    char line[17]; int scen_min = 0; int scen_max =...

    char line[17];
    int scen_min = 0;
    int scen_max = 18;
    ......

    void scenario ()
    {
    line[16];
    for (int y = scen_min; y < scen_max; y++)
  25. Thread: 14+ PPM inputs?

    by rcarr
    Replies
    14
    Views
    1,261

    If the servo glitches are from random noise, then...

    If the servo glitches are from random noise, then an average makes sense. When I have sampled PWM servo signals, I found the issue was due to interrupt latency. My solution was to ignore values...
  26. Replies
    2
    Views
    353

    You appear to be reading PWM with a library that...

    You appear to be reading PWM with a library that uses pin change interrupts. Your analog read on pin A9 changes the interrupt pin from digital to analog and it may no longer respond to pin changes(...
  27. Replies
    18
    Views
    1,197

    A basic idea without any details: you could set...

    A basic idea without any details: you could set up a PWM pin at 150 khz, set up another PWM pin at 150500 hz, run those outputs to a 2:1 mux and toggle the mux select pin at the 600 baud rate. And...
  28. Replies
    4
    Views
    559

    A10 is an analog only pin. It does not have...

    A10 is an analog only pin. It does not have digital drivers.
    https://www.pjrc.com/store/teensy35.html
  29. Replies
    4
    Views
    415

    I find that datasheet quite lacking in...

    I find that datasheet quite lacking in information. But it says the max current is 15ma. The Teensy 3.2 suggests a max of 10ma on an output pin. So to be safe, go with 10ma which would suggest a...
  30. The typical way to do this is to use a shadow...

    The typical way to do this is to use a shadow register in ram. It may be slower than what you are currently doing. The advantage of this is that you don't need to keep track of the rest of the...
  31. Replies
    4
    Views
    1,050

    It should be possible. Look here: ...

    It should be possible. Look here: https://github.com/threeme3/QCX-SSB
    There the author did EER with an 8 bit UNO processor.
  32. Replies
    7
    Views
    1,121

    Yes you seem to be correct, although a quick look...

    Yes you seem to be correct, although a quick look in core shows there are different ways to attach with different levels of functionality.
  33. Replies
    7
    Views
    1,121

    Yes I think you should determine where in the...

    Yes I think you should determine where in the system the error is happening. Your description of the problem lead me to believe it is in the return data, Teensy4 --> Teensy3. Your examples seem...
  34. // maximum number of lamps in a row #define...

    // maximum number of lamps in a row
    #define NUMLAMPS 7
    ......................................
    int pwmPins[2][NUMLAMPS] = {{3, 4, 6, 9}, {10, 16, 17, 20, 22, 23}};
    int howManyLampsOnRow[2] = {4,...
  35. Derek's library mentions correcting the phasing...

    Derek's library mentions correcting the phasing issue automatically. I made it a menu item and call this function when I see issues on the waterfall.


    // GUItool: begin automatically generated...
  36. Hi, After learning a bit from this library and...

    Hi,

    After learning a bit from this library and the ZL2CTM code, I wrote my own implementation. For the twin peaks issue, I put a 2 element FIR filter in I and Q channels, constants 1.0 and 0.0...
  37. Sounds like a fun project. You could use a...

    Sounds like a fun project.
    You could use a Teensy 3.5. It has a built in SC card holder which you will need.
    The Teensy Prop Shield with motion sensors ( not the LC version without motion sensors...
  38. Thread: Corrupted Data?

    by rcarr
    Replies
    7
    Views
    944

    In your text file, every byte has bit 8 set. ...

    In your text file, every byte has bit 8 set. That could have happen when you loaded the file in a text editor and the editor loaded a different code page due to some reason. And then the saved file...
  39. Hi Derek, Thanks for the reply. While...

    Hi Derek,

    Thanks for the reply. While building the QCX I left out the 10nf caps C4, C7 and changed the QSD caps to 47nf instead of 470nf. For a bit of humor you might ask why 47nf ? I did...
  40. Thanks Derek for sharing the library. I just got...

    Thanks Derek for sharing the library. I just got this working, but not without some problems to solve. Perhaps listing my issues can help someone else. I am running on the Teensy 3.6.

    Program...
  41. Replies
    3
    Views
    1,682

    I suggest you remove your biquad filter, apply...

    I suggest you remove your biquad filter, apply signals of known frequency to the input and see what bins are populated. You should be able to figure out how it works in short order.

    I have played...
  42. Replies
    9
    Views
    1,742

    >>> using pinMode() on them makes them digital ...

    >>> using pinMode() on them makes them digital

    Your right, pinMode statements are not needed.
  43. Replies
    9
    Views
    1,742

    My guess now is that the POT is wired incorrectly...

    My guess now is that the POT is wired incorrectly and shorts out the 3.3 volts when turned.

    Your program is missing the pinMode(A0,INPUT) statement, but I don't see how that would cause the...
  44. char fname[6] = "a1.txt"; Your string...

    char fname[6] = "a1.txt";

    Your string dimension of 6 is too short for 6 characters plus the zero terminator. And you say the original program generates new filenames each minute, so better check...
  45. Replies
    9
    Views
    1,742

    >>>each output is connected to a BI color led...

    >>>each output is connected to a BI color led with a simple circuit to have red on when low and green on with high

    >>>with other 3.2 just plugged into usb (no pins connected) same code, it worked...
  46. while (all_tokens[i] != NULL) { ...

    while (all_tokens[i] != NULL) {
    all_tokens[++i] = strtok(NULL, "{,}"); // char msg1[] = "{message_1,1}";
    }

    There are 3 tokens in the test string( msg1[] ), open bracket, comma, close...
  47. Your oscilloscope picture is not really great for...

    Your oscilloscope picture is not really great for making careful measurements, but to me it looks like your delay is a bit too long. Part of your delay will be interrupt latency, so it needs to be...
  48. I suggest you remove all the UNO register stuff...

    I suggest you remove all the UNO register stuff in your program ( DDRD, PORTD, PIND etc ). These registers do not exist in the Teensy, they are faked for compatibility. Use digitalReadFast and...
  49. Replies
    5
    Views
    1,424

    The underlying ARM processor implements a...

    The underlying ARM processor implements a windowed watchdog, and will reset on too fast or too slow watchdog service intervals. It looks like the default value for the lower counter is 16 ( which...
  50. 50% off on a Pickit3 currently until the end of...

    50% off on a Pickit3 currently until the end of the month. That puts the cost in what I consider the pocket change range.
    https://www.microchipdirect.com/product/search/all/PG164130
Results 1 to 50 of 248
Page 1 of 5 1 2 3 4