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

Search:

Type: Posts; User: dgranger

Search: Search took 0.00 seconds.

  1. Replies
    26
    Views
    4,618

    Spec page for the sensor says 3.1-5v so you...

    Spec page for the sensor says 3.1-5v so you should be okay.

    You need 4.7K pullups on both SDA and SCK lines, not a single 10K pullup on SDA. Best to put the pullups to 3.3v.

    Run the scanner...
  2. Because you are using Serial.println() to send...

    Because you are using Serial.println() to send the data, you are transferring quite a bit more data than you may realize.

    All of the data sent is first converted to ASCII so your 16bit values take...
  3. I think you aren't getting the correct status...

    I think you aren't getting the correct status from your color.begin() function which you modified to test and return status as follows:

    if ((x != 0x44) && (x != 0x10) && (y != 0x44) && (y !=...
  4. There are several problems with the device and...

    There are several problems with the device and code combination you linked in post #1.

    First, the device link is for a 5v 16bit DAC, not an ADC as you say you want to interface. Moreover since...
  5. Replies
    1
    Views
    661

    sizeof (data_obj) returns the size of the object...

    sizeof (data_obj) returns the size of the object in bytes. If you want the length of say, an int array then try

    for(int i = 0; i < sizeof(inputValues) / sizeof(int); i++){
  6. Replies
    6
    Views
    907

    RFID? ...

    RFID?

    https://en.wikipedia.org/wiki/Transponder_timing

    Coupled with telemetry you'd get pretty accurate lap timing at both ends as well as exchanging any other useful data.
  7. The default baud rate for the BC127 is 9600. ...

    The default baud rate for the BC127 is 9600.

    The sketch in post #7 has:

    Serial.begin(9600);
    Whereas the sketch in post #11 has:

    Serial1.begin(19200);

    The responses all seem to timeout,...
  8. Replies
    81
    Views
    21,422

    I believe the diagram doesn't reflect the...

    I believe the diagram doesn't reflect the suggestion, which is to move the vertical diode between the horizontal diode and the opto.
  9. Replies
    81
    Views
    21,422

    Kurt, Note that I am NOT a EE so filter my...

    Kurt,

    Note that I am NOT a EE so filter my input accordingly.

    There are a number of ways to detect a/c on/off status and your wall wart idea is a reasonably good one.

    I would advise that any...
  10. Replies
    15
    Views
    2,165

    If the display you have is the same as the one on...

    If the display you have is the same as the one on Amazon: https://www.amazon.com/HiLetgo-Serial-128X64-Display-Color/dp/B06XRBTBTB it appears to have 4.7k pullups installed on the SDA & SCK lines so...
  11. Replies
    44
    Views
    6,727

    My 2 cents on a Wiki. Although the Arduino...

    My 2 cents on a Wiki.

    Although the Arduino Playground Wiki is clearly poorly organized and seems chaotic, that doesn't make it useless nor a wasted effort. Rather, it presents an alternative, if...
  12. Replies
    29
    Views
    4,203

    So you edited the posted code after I pointed out...

    So you edited the posted code after I pointed out the endless loop on "while (!Serial) ????

    Okay, I guess I can't help here.
  13. Replies
    29
    Views
    4,203

    What do you think should happen when the...

    What do you think should happen when the following code is executed without USB (and USB Serial) connected?


    // Open serial communications and wait for port to open:
    Serial.begin(500000);
    while...
  14. Hi, I have several vintage British motorcycles...

    Hi,

    I have several vintage British motorcycles and am somewhat familiar with Smiths tachometers and speedometers. There is often a calibration number printed above the "mph" on the face of the...
  15. Replies
    14
    Views
    1,941

    Hi, There are a number of ways to speed up...

    Hi,

    There are a number of ways to speed up your display output. Keep in mind that the 1306 has no read screen data back capability so virtually all 1306 libraries use an in memory "frame buffer"...
  16. Well that's pretty strange. If the i2c_t3 code...

    Well that's pretty strange. If the i2c_t3 code doesn't see the 9250 then for sure your library wont.

    Looking at the scanner code for Wire & i2c_t3 they both do essentially the same thing, look...
  17. Try running the i2c scanner...

    Try running the i2c scanner (examples>wire>scanner) to see if the 9250 responds on addr 0x68. If not, then you have a hookup problem. If it responds on a different addr then you need to change the...
  18. Replies
    64
    Views
    26,565

    Does this:...

    Does this: https://www.segger.com/products/debug-probes/j-link/models/j-link-edu-mini/ work for Teensy 3x? It says it works with all Cortex M cpu's and is only $18 US (non-commercial use, however)....
  19. Replies
    6
    Views
    2,190

    There's a long running thread on porting Marlin...

    There's a long running thread on porting Marlin to Teensy/ARM. It gets a bit more relevant here: https://forum.pjrc.com/threads/26015-3D-Printer-Software-with-Teensy-3-1/page4
  20. Replies
    9
    Views
    2,509

    While POGOs are a popular way to access bottom...

    While POGOs are a popular way to access bottom pins on a Teensy there are breakouts that expose most or all the pins in a DIP fashion, which can then plug into a breadboard or sockets on a custom...
  21. Both your client and server examples hang waiting...

    Both your client and server examples hang waiting for the USB Serial port to come ready:
    "while (!Serial) ; // Wait for serial port to be available"

    If the USB isn't there, the code will never...
  22. Replies
    54
    Views
    29,245

    Although you are using an AtMega 328 rather than...

    Although you are using an AtMega 328 rather than a Teensy, you may be running into the same issue discussed in the first 10 or so posts in this thread. The fix for that issue was incorporated into...
  23. Replies
    54
    Views
    29,245

    I have had two 3.2's communicating over LoRa...

    I have had two 3.2's communicating over LoRa without lock-up issues for quite some time now.

    However, I have not had any problems since the fix that was incorporated into Teensyduino 1.36 (which...
  24. Replies
    54
    Views
    29,245

    Pim, I did not mean to imply that the double...

    Pim,

    I did not mean to imply that the double clear of the IRQ wasn't needed as your post (#39) clearly showed that the first clear was not reliably working for you.

    I do think that the _mode...
  25. Replies
    54
    Views
    29,245

    The v1.76 RadioHead library linked above in post...

    The v1.76 RadioHead library linked above in post #43 won't compile due to an error in RHGenericDriver.cpp.

    The function at around line 155 should be changed from


    int8_t...
  26. Replies
    54
    Views
    29,245

    Somehow an earlier post of mine got lost. I...

    Somehow an earlier post of mine got lost.

    I think the 3.2 vs 3.5 thing is not really the issue. In your earlier post (#30) you stated that the sample sketch was running without problems using the...
  27. Replies
    54
    Views
    29,245

    Hmm, Glad you got it working. I have no...

    Hmm,

    Glad you got it working.

    I have no clue as to why HIGH works and RISING does not.

    I tested the race condition fix with a Teensy 3.2, and I believe that KurtE was using a 3.2 as well. I...
  28. Replies
    54
    Views
    29,245

    Hi, I don't have your hardware setup so I...

    Hi,

    I don't have your hardware setup so I can't run your sketch. However, I did read the code you posted and saw a problem which could explain the "lock ups".

    In the "loop()" portion of your...
  29. Replies
    54
    Views
    29,245

    Paul, Arduino 1.8.2 w/ teensyduino 1.36.b4,...

    Paul,

    Arduino 1.8.2 w/ teensyduino 1.36.b4, teensy 3.2 w/ RFM95 lora 433. No problems with the teensy-supplied library.

    IMO, the rising vs high "fix" is simply narrowing an already small...
  30. Replies
    54
    Views
    29,245

    While I agree with the idea of avoiding prints in...

    While I agree with the idea of avoiding prints in ISR's, in this case the interrupt timing is non-critical. The Rf9x will hold the state of an IRQ until it's read, and then not interrupt again until...
  31. Replies
    54
    Views
    29,245

    Hi Epyon, If you're experiencing hangs or...

    Hi Epyon,

    If you're experiencing hangs or other strange behavior in the Radiohead lib it might help to see if there's a disconnect between the current RH state and the interrupt source. I ended...
  32. Replies
    16
    Views
    3,514

    Sorry, I'm not aware of any such registry. The...

    Sorry, I'm not aware of any such registry.

    The RF9x LoRa modules are pretty much sub 1 km range in non elevated, line of sight environments. Moreover, the LoRa spreading algorithms greatly reduce...
  33. Replies
    16
    Views
    3,514

    The 433/915 ASK radio modules require a preamble...

    The 433/915 ASK radio modules require a preamble to synchronize the receiver. Both the rc-switch and virtualwire libs use approximately 32-36 bit periods for the sync preamble. Also, the bit rates...
  34. Replies
    16
    Views
    3,514

    Well i took a look at the RF69 module in the...

    Well i took a look at the RF69 module in the Radiohead library.

    Mike McCauley provides some pertinent info in the 'h' file:


    /// All messages sent and received by this RH_RF69 Driver conform...
  35. Replies
    16
    Views
    3,514

    I, perhaps incorrectly, assumed that latency in...

    I, perhaps incorrectly, assumed that latency in communications between the camera and the remote flash would be a problem. I understand that the 4 flash calibration may be less sensitive to latency...
  36. Replies
    16
    Views
    3,514

    I assume it all depends on the shutter speed used...

    I assume it all depends on the shutter speed used for flash sync. On a classic SLR film camera I recall that 1/125 sec was the norm.

    My Canon underwater setup uses fiber optic for the remote...
  37. Replies
    16
    Views
    3,514

    LoRa sacrifices data rate for range. Semtech has...

    LoRa sacrifices data rate for range. Semtech has a calculator where you can enter various factors such as bandwith, spreading factor, & payload size and determine the total air time for your packet....
  38. Replies
    81
    Views
    21,422

    Not quite sure what your goal is other than...

    Not quite sure what your goal is other than system state monitoring. For simple current monitoring of a pump to determine it's state (none = off, low = cavitating, normal = running, high = locked...
  39. Replies
    54
    Views
    29,245

    The RH lib has software SPI which can be...

    The RH lib has software SPI which can be specified in the constructor for the particular radio driver. In addition Bill Greiman has a software SPI driver he includes in his SdFat library. I believe...
  40. Replies
    54
    Views
    29,245

    Which fix? The ATOMIC ops or the move of the...

    Which fix? The ATOMIC ops or the move of the _mode var sets?

    Also can I get your changes to test with? I'm very interested in transaction support for the RH lib.
  41. Replies
    54
    Views
    29,245

    I thought about turning off interrupts around the...

    I thought about turning off interrupts around the setModes, but was worried that the SPI stuff might take long enough to disrupt other time critical interrupt handling. So I simply moved the _mode...
  42. Replies
    54
    Views
    29,245

    Moving the _mode sets is pretty safe. The IRQ...

    Moving the _mode sets is pretty safe. The IRQ flags on a RF95 are broken out so you know the source of the interrupt (RxTimeout, RxDone, RXCRC, TxDone, CadDone, etc). Unfortunately, the RF95...
  43. Replies
    54
    Views
    29,245

    Hi Kurt, Is your version the same as what is...

    Hi Kurt,

    Is your version the same as what is in the Teensyduino 1.35 distribution? If so, the posted sketch does hang reliably (on a 3.2 w/ the Adafuit rf9x Feather module) on the second...
  44. Replies
    54
    Views
    29,245

    Probable race condition in Radiohead library

    Environment: Win7, Arduino 1.8.1, Teensyduino 1.35, Radiohead v1.62 or v1.67 or Teensy RH version

    Iíve been trying to get the example sketch on Adafruitís RFM9x page:...
  45. I'm pretty sure your buffer allocation isn't...

    I'm pretty sure your buffer allocation isn't working the way you think it is:

    uint32_t sz = ff.size();
    ...
    char buffer[sz];

    As the buffer is a compile-time static declaration, using the...
Results 1 to 45 of 45