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

Search:

Type: Posts; User: paynterf

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Kurt, Ironically, I used to be a sysadmin for...

    Kurt,

    Ironically, I used to be a sysadmin for a 50+ PC research lab, and most of the PC's were dual-boot Win x and Linux. Back in the day, as a sysadmin for a 50+ Linux box research lab, I could...
  2. Kurt, Great that you put up a PR for this! ...

    Kurt,

    Great that you put up a PR for this! I'm having an odd problem downloading your repo (https://github.com/KurtE/vl53l0x-arduino/tree/multi_wire), as the 'Code' button on your Github account...
  3. Kurt, Glad you are playing with the VLXXX...

    Kurt,

    Glad you are playing with the VLXXX sensors. I agree the Adafruit library is very limited, but it does allow for different Wire objects - a necessity for me. Also, my application is pretty...
  4. Well, it is officially time to eat crow.* After...

    Well, it is officially time to eat crow.* After all the whooping and hollering I've done, it turns out the entire problem was a hidden ground wire*break in I2C daisy-chain cable attached to the...
  5. Kurt, I really appreciate the time and effort...

    Kurt,

    I really appreciate the time and effort you have put into this, but I'm not sure where you are going with the delay questions. Do you have a theory that explains why sensors 1 & 2 operate...
  6. Yes, the delays are in there and they have no...

    Yes, the delays are in there and they have no effect. Here's the latest code. However, I have to say that I have been running a 3-sensor array successfully for months without any delay between the...
  7. Adding delays does not appear to change the...

    Adding delays does not appear to change the symptoms. As you might have surmised looking at the commented-out lines, have looked at the error codes before, but they aren't very helpful. Here is an...
  8. I also inserted a 1-Ohm resistor in the +V line...

    I also inserted a 1-Ohm resistor in the +V line to all six sensors to look at the dynamic current flow. It appears the peak current is about 20-30 mA, and this occurs for 10-20 mSec ever 100 mSec or...
  9. I added a 100 mSec delay after each 'begin()'...

    I added a 100 mSec delay after each 'begin()' call, but it didn't seem to affect anything; still getting correct readings from sensors 3-6, invalid results from 1 & 2.

    Good point regarding...
  10. Thanks for all the feedback! Unless there is...

    Thanks for all the feedback!

    Unless there is some overriding reason to do so, I prefer to document everything on my blog site, as this is my 'engineering notebook' for all my projects.

    I have...
  11. Paul, Thanks for taking the time to look at...

    Paul,

    Thanks for taking the time to look at this. I'll definitely check out all of these possibilities. I think I can answer the power consumption question directly, as the Pololu spec sheet...
  12. Interactions between Wire1 & Wire2 I2C busses on Teensy 3.5?

    I have a project where I am attempting to use six ST Microelectronics VL53L0X Time-of-Flight (ToF) sensors grouped into two 3-element arrays for position/orientation sensing on an autonomous...
  13. Replies
    0
    Views
    117

    Teensy DRV8825 Rotary Scan Table

    I created a small Teensy 3.2 program to control a stepper motor to implement a simple rotary scan table. The program uses a Pololu DRV8825 micro-stepping driver to give me fine control over angle...
  14. TyCommander Serial Window. Previous 'send' input gets added to new input

    The 'send' window at the bottom of the TyCommander Serial window gets filled with the previous input as soon as any character is entered. For instance, entering the character '-' causes the send...
  15. Hmm, hadn't thought of that - and it seems to...

    Hmm, hadn't thought of that - and it seems to help! That REALLY makes my day, as now I can get back to making mistakes with my code, rather than fighting with the serial monitor!

    THANKS!!

    Frank
  16. Kurt, Been there, done that - got the T-shirt....

    Kurt,

    Been there, done that - got the T-shirt. I have something like


    while (!Serial)
    {
    delay(10);
    }
  17. defragster, Thanks! Using TyCommander seems...

    defragster,

    Thanks! Using TyCommander seems to help. I can now consistently get proper serial port display in TyCommander's serial window after a edit/compile/upload cycle.

    Frank
  18. This seems to work semi-consistently: Close...

    This seems to work semi-consistently:

    Close VS2019
    Disconnect Teensy USB cable
    Re-open VS2019 and verify that Teensy USB port options are missing
    Re-connect Teensy USB cable
    Select the 'COMx...
  19. In the continuing saga, I can sometimes regain...

    In the continuing saga, I can sometimes regain full serial monitor functionality by physically disconnecting the Teensy USB cable, closing VS2019 entirely, re-opening it, and then selecting the 'COMX...
  20. OK, so there may be something going on with the...

    OK, so there may be something going on with the way Teensy is reporting USB ports. There appear to be TWO ports associated with a Teensy connected via a USB cable to my Win10 box. There is a port...
  21. Thanks for the feedback. I just tested this...

    Thanks for the feedback. I just tested this whole thing again, using delay(2000), delay(3000) and delay(5000). Nothing works on my Printf_Demo program with a T3.2. However, I just tried the same...
  22. Here's another short program that exhibits the...

    Here's another short program that exhibits the problem, both in VS2019 with Visual Micro, and in the latest version of Arduino IDE (1.8.12) and Teensyduino (1.52).


    #include <Stepper.h>

    //...
  23. Kurt, Thanks for looking at this! I have...

    Kurt,

    Thanks for looking at this!

    I have the Visual Micro add-in to Visual Studio 2019 Community Edition. I develop Arduino code in Visual Studio, and Visual Micro handles the interface to the...
  24. FWIW, I think I'm running TeensyDuino 1.48 ...

    FWIW, I think I'm running TeensyDuino 1.48



    Deep search for libraries ...
    "C:\Program Files (x86)\Arduino\hardware\teensy\..\tools\arm\bin\arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall...
  25. Replies
    54
    Views
    3,919

    When you mention the 'Tools' menu - is this in...

    When you mention the 'Tools' menu - is this in the Aduino IDE or something else. I'm running Win 10 and don't see the same layout, so any help would be appreciated

    TIA,

    Frank
  26. Don't know if this is relevant or not, but I have...

    Don't know if this is relevant or not, but I have also started noticing that the Teensy USB port is being reported with a strange name that doesn't show up as a port in device manager


    Uploading...
  27. Serial.printf("String without a terminating linefeed"); Doesn't Display on Monitor

    I've run across a weird issue with Serial.printf() on a Teensy 3.2. I am trying to use a small Teensy program I created a few years ago, and discovered that some of my print statements no longer...
  28. Replies
    683
    Views
    413,396

    Thanks for the information - that sounds a whole...

    Thanks for the information - that sounds a whole lot easier than trying to track down all the library references.

    So, for my Windows 10 setup:

    rename 'C:\Program Files...
  29. vjmuzik, Thanks - I tried this and it worked!

    vjmuzik,

    Thanks - I tried this and it worked!
  30. Replies
    683
    Views
    413,396

    nox771, Hmm, This is what I tried, something...

    nox771,

    Hmm, This is what I tried, something from an earlier post of yours.

    20230

    I have used your fine i2c_t3.h library in many other Teensy projects, but can't in this one because the...
  31. Arduino Now supports Wire1, Wire2 & Wire3?

    In another post I described my idea for managing an array of VL53L0X ToF sensors using one of the secondary I2C buses available on T3.x devices.

    However, that meant I had to once again run the...
  32. Replies
    683
    Views
    413,396

    Not working for me; the #include line in...

    Not working for me; the #include <wire.h> line in the main sketch still picks up the file in C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Wire\Wire.h
  33. Dual I2C bus for VL53L0X ToF Sensor Array Management

    Hi,

    I plan to use an array of six GY530/VL53L0X 'Time of Flight' sensors for an autonomous robot project. The VL53L0X sensors use I2C for control, but also require a separate digital control line...
  34. I've been poking around trying to figure out why...

    I've been poking around trying to figure out why Slave-to-Master data transfer is failing with my Mega-T3.2 setup with the T3.2 as slave. Wending my way down into the library code, I found this:

    ...
  35. Teensy 3.2 I2C slave data transfer to Arduino Mega master fails

    I have a very simple 3-wire (SCL/SDA/GND) connection from an Arduino Mega 2560 to a Teensy 3.2. I can send data from the Mega to the Teensy fine, but no matter what is sent from the Teensy to the...
  36. Replies
    20
    Views
    661

    defragster, Good suggestion. I edited the...

    defragster,

    Good suggestion. I edited the ReadMe to include the links
  37. Replies
    20
    Views
    661

    All, I have updated the Teensy sniffer on my...

    All,

    I have updated the Teensy sniffer on my Github account to allow its use with any I2C slave device via a #ifdef MPU6050_SPECIFIC pre-processor switch. By default this switch is disabled, so...
  38. Replies
    20
    Views
    661

    Never mind. I found this post...

    Never mind. I found this post that explains the problem. Apparently the Arduino pre-processor 'sees' the #include line before it 'sees' the #ifdef/#endif block - bummer.

    So, to generalize the...
  39. Replies
    20
    Views
    661

    Anyone, I have been trying to generalize my...

    Anyone,

    I have been trying to generalize my I2C sniffer for all I2C devices. Only the code that computes a yaw value from a 28-byte packet returned from a MPU6050 register is specific to the...
  40. Replies
    20
    Views
    661

    Defragster, The only MPU6050-specific feature...

    Defragster,

    The only MPU6050-specific feature is the ability to recognized and decode the 28-byte DMP FIFO packet containing accelerometer data (this is the only thing the helper_3dmath.h library...
  41. Replies
    20
    Views
    661

    Teensy I2C Sniffer for MPU6050

    I believe I have finally succeeded in creating a usable I2C sniffer, somewhat specialized for monitoring traffic between an I2C master and a MPU6050 slave.

    The complete sniffer program is...
  42. Replies
    7
    Views
    303

    Defragster, wow - FASTRUN did the trick;...

    Defragster,


    wow - FASTRUN did the trick; went from 1.45 uSec to 0.89 uSec - thanks!

    If anyone ever had any doubts about the value of Paul's forum, this thread shows it; I had never heard of...
  43. Replies
    7
    Views
    303

    Joe, Thanks for the quick reply - that's a...

    Joe,

    Thanks for the quick reply - that's a great idea combining the two values into the same 8-bit word! Your first suggestion,

    uint8_t last_current = (last_portb << 4) | (current_portb);...
  44. Replies
    7
    Views
    303

    Faster way to do if() compares in ISR?

    Hi,

    I'm working on a Teensy 3.2 I2C Sniffer project, and I have an ISR that triggers every 1 uSec using Timer1. I have instrumented the ISR with 'digitalWriteFast()' calls so that I can monitor...
  45. Replies
    183
    Views
    16,163

    Tonton81, OK, thanks. Maybe functions that...

    Tonton81,

    OK, thanks. Maybe functions that only operate on circular arrays could have a '_array' appended to their name, like 'remove_array'?

    Frank
  46. Replies
    183
    Views
    16,163

    tonton81, Have you verified that...

    tonton81,

    Have you verified that cb.remove(element) actually removes the element? Here's a partial output from my current program, where I parse through a capture buffer to remove invalid bytes,...
  47. Replies
    183
    Views
    16,163

    The Teensy I2C sniffer project now works properly...

    The Teensy I2C sniffer project now works properly with tonton81's circular buffer library (although without the latest peekBytes() fix - I'm still using peek()). Here's the output from just one pass...
  48. Replies
    183
    Views
    16,163

    It appears that peekbytes() might have an issue...

    It appears that peekbytes() might have an issue too. Here's my (somewhat messy, sorry) code in its entirety:


    /*
    Name: Teensy_I2C_Sniffer_V6.ino
    Created: 1/4/2020 8:40:20 AM
    ...
  49. Replies
    183
    Views
    16,163

    I'm trying to use cb.ReadBytes() in a function,...

    I'm trying to use cb.ReadBytes() in a function, but it doesn't seem to be working the way I would expect. Here's the function



    //uint8_t Get7BitDeviceAddr(byte * simdata, uint16_t & readidx)...
  50. Replies
    183
    Views
    16,163

    I understand they are just pointers, but why is...

    I understand they are just pointers, but why is there a difference of 1852 between the front and back pointers of a 928-byte 8-bit-per-element circular buffer? The inference is that it takes 2...
Results 1 to 50 of 114
Page 1 of 3 1 2 3