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

    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...
  2. Replies
    9
    Views
    281

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

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

    Your right, pinMode statements are not needed.
  3. Replies
    9
    Views
    281

    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...
  4. 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...
  5. Replies
    9
    Views
    281

    >>>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...
  6. 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...
  7. 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...
  8. 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...
  9. Replies
    5
    Views
    344

    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...
  10. 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
  11. 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...
  12. 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.
  13. Replies
    7
    Views
    350

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

    Line in is on the audio shield. Upper right center on the picture.
    16443
  14. Replies
    16
    Views
    500

    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, ' ');...
  15. 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...
  16. Replies
    4
    Views
    177

    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;...
  17. Replies
    4
    Views
    177

    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...
  18. 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...
  19. Replies
    6
    Views
    332

    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();
  20. Replies
    3
    Views
    174

    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...
  21. Replies
    6
    Views
    332

    So it is working correctly, and tap is shorter...

    So it is working correctly, and tap is shorter than a second or so.
  22. Replies
    2
    Views
    146

    I do not know if it will work but it seems as...

    I do not know if it will work but it seems as though it should. You currently have 8 bounce objects all with a different pin. And you call the update function for each of those in turn.
    ...
  23. Replies
    7
    Views
    393

    About the transistors in the link, in my opinion...

    About the transistors in the link, in my opinion the base resistor(10k) is too small for your circuit. Going back to your circuit with a 10k in the emitter lead and considering that the base current...
  24. Replies
    7
    Views
    393

    turtle9er's circuit looks good. For the other,...

    turtle9er's circuit looks good. For the other, try hfe of 100 in your calculators and maybe a 5k in the emitter side. In the single transistor approach you should keep in mind that the base...
  25. Replies
    5
    Views
    238

    The counters are always counting. While you are...

    The counters are always counting. While you are timing the HIGH time, the LOW counter is counting too. When the HIGH time expires, the LOW time could already be expired.
    You should set the...
  26. Replies
    7
    Views
    393

    Consider using a NPN transistor in that circuit. ...

    Consider using a NPN transistor in that circuit. Choose the resistor divider such that the voltage across the lower resistor is less than ( 3.3 - 0.6) volts. Then you will not need to find a FET...
  27. Replies
    38
    Views
    1,352

    Ok, thanks for the clarification. That makes...

    Ok, thanks for the clarification. That makes more sense. Looking around the web, it seems everyone has issues with I2C with this part using FPGA, or Raspberry PI, or PIC32mx.
  28. Replies
    38
    Views
    1,352

    Personally I find this signal very strange for...

    Personally I find this signal very strange for open collector logic. It is hard to believe that a pullup could produce an overshoot of what appears to be a little over 1 volt. And viewed from a...
  29. Replies
    38
    Views
    1,352

    Something subtle must be happening. Looking at...

    Something subtle must be happening. Looking at the two first scope pictures, I see a little bit of undershoot on the SDA line that looks just a little bit worse with the Teensy 3.6. I would try...
  30. Replies
    38
    Views
    1,352

    An interesting thread, but aren't you decoding...

    An interesting thread, but aren't you decoding the serial bits incorrectly?


    If you decode the packet, the addres byte is 0011|0100 = 0x34 which is 0x1A<<1 which is correct,
    and then the 9th bit...
  31. Try if( j == -1 ) rainbow(30); In...

    Try


    if( j == -1 ) rainbow(30);


    In function rainbow, a loop of 256 times 30ms means you will be in this function for over 7 seconds, so you need a way to break out. Your local variable...
  32. Replies
    4
    Views
    202

    I suspect there is something wrong in the...

    I suspect there is something wrong in the shifters. Looking at your data
    ( damn proportional fonts )


    result 412
    expect 341


    So it looks like you shifted up too far and lost the...
  33. Replies
    5
    Views
    276

    I think this is a fairly open question, so...

    I think this is a fairly open question, so consider a mux. One input to the mux is scaled for 10v signals, another for 5 volt signals, another for 3 volt signals, and a 4th with a gain stage ahead...
  34. So many questions. I will try to answer a few...

    So many questions. I will try to answer a few but you should look for a good tutorial on pointers.

    You have questions about the scope(global, static, auto) of pointers and they act like any other...
  35. The example called OpenNext seems to be the way...

    The example called OpenNext seems to be the way things are done, even in the ls() method. I wished to capture the file name and file size and I think this code is going to work. Ignore the fake...
  36. Replies
    8
    Views
    404

    Since you have a scope there, hook up a probe to...

    Since you have a scope there, hook up a probe to your 5 volt supply and see how slow it ramps up. Maybe what you see on the scope will provide some insight to what you need to do.
  37. Looking at the library docs, there are two ls()...

    Looking at the library docs, there are two ls() variants that you provide a pointer to a stream. The exact details on use are not clear to me, but I would start there.


    void FatFileSystem::ls ...
  38. I wish I had an answer because I think in about 2...

    I wish I had an answer because I think in about 2 weeks time I will want to do the same thing. Would redirecting the stream work on the Teensy?...
  39. Replies
    3
    Views
    157

    The write up at the link looks correct. RTS is...

    The write up at the link looks correct. RTS is an output and is wired to CTS on the other end. When you assert RTS, it means send me data.
    CTS is an input and is wired to RTS on the other end. ...
  40. Replies
    24
    Views
    975

    This program will log errors on my Teensy 3.6. ...

    This program will log errors on my Teensy 3.6. The idea of variables t1,t2,t3,t4,t5 is to align 3 events in time.
    First is the millis() tick over to a new value
    Second is the evaluation of this...
  41. Replies
    24
    Views
    975

    Yes and you probably know more about this than I...

    Yes and you probably know more about this than I do. I know very little about C++ objects.
    Still, tLastNewFrame is not a simple variable and I suspect the answer to this puzzle lies somewhere in...
  42. Replies
    24
    Views
    975

    Add the interrupts wrapper to this version: ...

    Add the interrupts wrapper to this version:

    noInterrupts();
    unsigned long tNow = tLastNewFrame;
    interrupts();
  43. Replies
    49
    Views
    1,919

    That's great. I have been inspired to dig out...

    That's great. I have been inspired to dig out my Tandy M200 laptop.
  44. Replies
    24
    Views
    975

    The program is missing a PINMODE(8,INPUT)...

    The program is missing a PINMODE(8,INPUT) statement but apparently that doesn't matter here.

    One thing I can think of that explains the described behavior is if the Teensy in resetting. If reset...
  45. Replies
    49
    Views
    1,919

    Good news then! Although some strange issues...

    Good news then! Although some strange issues left. Is POKE 14316,1 the same as the select line issue you mentioned?

    I guess your serious about the beer. If you have a favorite dark beer, send...
  46. Replies
    49
    Views
    1,919

    With everything happening inside one chip, I am...

    With everything happening inside one chip, I am not sure a logic analyzer is as useful a tool as it once was. I used analyzers back in the 80's and 90's working on discreet microcontrollers ( with...
  47. Replies
    49
    Views
    1,919

    You may want to try the other suggestion( clock...

    You may want to try the other suggestion( clock the wait flop with a different signal ) before proceeding too far with this one. If it stops at T2 with the WR signal low, that might also work. I...
  48. Replies
    49
    Views
    1,919

    >>>Well, I have an inverted RD signal already (on...

    >>>Well, I have an inverted RD signal already (on pin 1 of IC7), so I'm thinking you're saying: remove WR* from pin 15 of IC7, and just join pins 1 and 15.

    Yes. And perhaps try this on the...
  49. Replies
    49
    Views
    1,919

    >>>Am I following you? I think so. I...

    >>>Am I following you?
    I think so.

    I had another idea that may be simpler. You don't need to decode WR. If it is not a read, then it must be a write. You could cut free of the WR...
  50. Replies
    49
    Views
    1,919

    Maybe you should clock your wait flop with the...

    Maybe you should clock your wait flop with the signal 37EX_ ( but inverted ). It seems you are committed to an address selection at that point and it is before the read or write strobe has been...
Results 1 to 50 of 208
Page 1 of 5 1 2 3 4