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. 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...
  2. Replies
    15
    Views
    494

    >> 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...
  3. Replies
    10
    Views
    1,096

    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...
  4. 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...
  5. Yes it is.

    Yes it is.
  6. 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...
  7. Replies
    4
    Views
    268

    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 -...
  8. Replies
    4
    Views
    268

    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...
  9. Serial.write(incomingByte); Serial.println();

    Serial.write(incomingByte);
    Serial.println();
  10. Replies
    1
    Views
    201

    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...
  11. 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();
    ...
  12. 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?
  13. 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.
  14. Replies
    37
    Views
    1,142

    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++)
  15. Thread: 14+ PPM inputs?

    by rcarr
    Replies
    14
    Views
    906

    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...
  16. Replies
    2
    Views
    193

    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(...
  17. Replies
    18
    Views
    718

    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...
  18. Replies
    4
    Views
    296

    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
  19. Replies
    4
    Views
    202

    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...
  20. 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...
  21. Replies
    4
    Views
    581

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

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

    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...
  24. // 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,...
  25. 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...
  26. 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...
  27. 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...
  28. Thread: Corrupted Data?

    by rcarr
    Replies
    7
    Views
    520

    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...
  29. 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...
  30. 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...
  31. Replies
    3
    Views
    1,088

    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...
  32. Replies
    9
    Views
    1,082

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

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

    Your right, pinMode statements are not needed.
  33. Replies
    9
    Views
    1,082

    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...
  34. 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...
  35. Replies
    9
    Views
    1,082

    >>>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...
  36. 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...
  37. 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...
  38. 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...
  39. Replies
    5
    Views
    944

    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...
  40. 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
  41. A PIC 12F series would do what you wish. With 6...

    A PIC 12F series would do what you wish. With 6 I/O pins, you would have 4 spares that could be used with jumpers to select one of 16 delay times.
    The LF parts are very low power, as low as 30...
  42. I don't have an answer. I do find it interesting...

    I don't have an answer. I do find it interesting that at 400khz, one bit time is 2.5 us. So it appears you need to wait longer than one bit time although that could be a coincidence.
  43. Replies
    7
    Views
    873

    Line in is on the audio shield. Upper right...

    Line in is on the audio shield. Upper right center on the picture.
    16443
  44. Replies
    16
    Views
    1,670

    Not knowing what insertPadFloat does with the...

    Not knowing what insertPadFloat does with the MAX_LINE_SIZE, but assuming it checks for overflow, maybe your calls to


    Utilities::insertPadFloat(string_buff, MAX_LINE_SIZE, iter, v.j, 3, 3, ' ');...
  45. I suggest you just write the low level code for...

    I suggest you just write the low level code for this approach and forget about modifying softwareserial. The problem with softwareserial is that it is coded to send bytes, meaning that it blocks...
  46. Replies
    4
    Views
    623

    something.something You need to look in the...

    something.something

    You need to look in the header file and get the names of the structure members.


    typedef struct __PRGMTAG_ {
    const uint8_t *data;
    uint8_t image_width;...
  47. Replies
    4
    Views
    623

    At the end of your attached C file is an array of...

    At the end of your attached C file is an array of type tChar. You need to use that information as the link from character to the font description and image. It looks like this:


    static const...
  48. Are you picking the correct tools? I don't see...

    Are you picking the correct tools? I don't see your program description as needing a state machine. You simply want to dispatch to one of 10 functions. I don't see your program as needing a task...
  49. Replies
    6
    Views
    822

    From your description, I envisioned state driven...

    From your description, I envisioned state driven code and a switch case type of structure. For example:



    loop(){

    static unsigned long t;

    if( t != millis() ){
    t = millis();
  50. Replies
    3
    Views
    832

    I suggest you remove the setting of priority on...

    I suggest you remove the setting of priority on the interrupts. Interrupts of the same priority do not interrupt each other. That is probably not your problem.

    Some general observations about...
Results 1 to 50 of 238
Page 1 of 5 1 2 3 4