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

Search:

Type: Posts; User: dmhummel

Search: Search took 0.00 seconds.

  1. Disable/reduce wear leveling on Teensy 4

    I plan on using the EEPROM reserved flash memory for storing initialization parameters that require approx 10KB. These parameters will be updated far less often than the code is updated. Probably...
  2. github.com/PaulStoffregen/Ethernet but Wireless?

    I am looking for a reliable server/client library for use with a Teensy 3.6 - just like Paul's library for Ethernet over Wiznet chipsets. However, my current use case is on a mobile, battery powered...
  3. Replies
    16
    Views
    5,376

    There is an excellent and very compact piezo...

    There is an excellent and very compact piezo driver and piezo speaker combo build by One Horse on Tindie

    It amplifies from 3.3v (or 5v) at 2x,2x or 3x and implements full +- range with great sound...
  4. Thanks defragster. To be clear, Teensyduino and...

    Thanks defragster. To be clear, Teensyduino and its teensy uploader works perfectly. Its a problem with PlatformIO in Windows. Its interested to see Stino being developed again, I abandoned it a...
  5. This does work, thank you blackketter! I do...

    This does work, thank you blackketter!

    I do find that, regardless of clock speed, in windows the platformIO upload to teensy3.5/3.6 is unreliable. It relies on manually pressing the button on the...
  6. Here is an example platformio.ini file configured...

    Here is an example platformio.ini file configured to build for both 3.5 and 3.6 (normal clock speed)

    [env:teensy35]
    platform = teensy
    board = teensy35
    framework = arduino

    [env:teensy36]...
  7. Alternate clock speeds in platformio for 3.2/3.5/3.6

    I am moving much of my work to platformIO, also using the platformIO IDE in Atom. While it is easy to configure for default speeds, I see no options for the overclocked options that may show up in...
  8. Replies
    138
    Views
    46,229

    After reading through the code and looking at...

    After reading through the code and looking at documents for low level mode settings and registers in the LidarLite, I am not sure the code is implemented correctly. The switch to 400khz works...
  9. Replies
    138
    Views
    46,229

    Yes, this is not abnormal. If you are using the...

    Yes, this is not abnormal. If you are using the second generation, variability can be reduced by passing an extra integer parameter that defines how many samples/noise processing strategy to use. I...
  10. Thanks, not sure how I missed that contact page. ...

    Thanks, not sure how I missed that contact page. Do you think it is possible that I need to complete all the steps of the SD fix, not just bridge J1?
  11. Refreshing this thread as I would want to request...

    Refreshing this thread as I would want to request a replacement but see know obvious information for returns/replacement on the site? What is the correct way of doing this.
  12. Ok, looks like that may have worked, but also...

    Ok, looks like that may have worked, but also disabled touch capability entirely. Worth a shot.
  13. Looks like a pretty straightforward soldering to...

    Looks like a pretty straightforward soldering to do/undo, I'll give it a try and see if it helps. Thanks!
  14. DISPLAY_ILI9341_TOUCH - Displays goes white and unresponsive after hours of operation

    I recently ordered one of the DISPLAY_ILI9341_TOUCH from PJRC shop. Both touch and display well for a time, but if I leave a project running, when I return the display is all white and is not longer...
  15. Thanks for the help. Is there a full proof way...

    Thanks for the help. Is there a full proof way of translating between the physical layout and the logical layout diagram?
  16. Broke off small resistor on teensy 3.1 - can it be saved? (pic)

    See the damaged part circled.
    5420
    What is it and what effect will it have? Can I fix it?
  17. Replies
    138
    Views
    46,229

    Updates on my end. 1) My Lidar lite is defective...

    Updates on my end.
    1) My Lidar lite is defective ... over time the noise in its readings grow (from +-3cm to +-30cm) and the duration that it takes to be ready to read grows from the normal 13-14ms...
  18. How do I trigger code to process the read buffer?

    How do I trigger code to process the read buffer?
  19. I simply want to see an example of the best...

    I simply want to see an example of the best practice way to enable the handler. I am comfortable with the code I will put in the handler, probably just read from the buffer and switch a volatile...
  20. Teensy 3.1 - Correct way to use interrupts on received Serial data

    There seem to be a few potential ways to fire an interrupt on data arriving on a Serial port. Which is the most robust/correct way? I am handling three different Serial communications separately...
  21. Replies
    138
    Views
    46,229

    I wish this was true for me. I am running it at...

    I wish this was true for me. I am running it at 20ms intervals and I get a lockup every 5 min or so. I have resorted to quickly switching off/on the 5V supply to the teensy and lidar with a mosfet...
  22. Should I get misc compile errors when using stl vectors?

    I am writing some basic c++ classes that use the stl "vector" library. When I compile the code in the Arduino environment, i get a compile error


    dh_controller\dh_controller.cpp.o: In function...
  23. Replies
    138
    Views
    46,229

    The I2C_T3 library works on an ATMega chip? The...

    The I2C_T3 library works on an ATMega chip? The example that ran on my UNO was written by the lidar lite folks and uses the 'Arduino I2C Master Library' from DSS Circuits:...
  24. Replies
    138
    Views
    46,229

    I have found that all update rates can freeze. ...

    I have found that all update rates can freeze. Anything above 15ms is very unlikely to poll more than once, so this reduces communication over I2C quite a bit, but still eventual freezes for me.
  25. Replies
    138
    Views
    46,229

    Man you're like batman, you have all the cool...

    Man you're like batman, you have all the cool toys! What would you recommend for my first logic analyzer. I do always have a laptop on my work bench, so a usb managed device seems like a good idea,...
  26. Replies
    138
    Views
    46,229

    Interesting, I suppose that will cause more...

    Interesting, I suppose that will cause more problems if I have other devices on this I2C connection. Do you mind posting your code?
  27. Replies
    138
    Views
    46,229

    Cool, never tried it outside. If its sending 0...

    Cool, never tried it outside. If its sending 0 on purpose, then you can ignore the getting sick messages. Big thing is .. has it ever froze in a "C4C4C4...." loop? If not .. please share the...
  28. Replies
    138
    Views
    46,229

    Hmm, that is very good behavior. Its working as...

    Hmm, that is very good behavior. Its working as expected and your getting a very fast read rate, moving between 3ms per read and 12ms per read. If you swing your arm in front, you should see more...
  29. Replies
    138
    Views
    46,229

    Can you try replacing the delay(15) with...

    Can you try replacing the delay(15) with delay(1)? this will basically make the program depend on polling the device for ready state and put a bit more activity over I2C. Even better, run the code...
  30. Replies
    138
    Views
    46,229

    Cool, what code are you running specifically?

    Cool, what code are you running specifically?
  31. Replies
    138
    Views
    46,229

    Interesting work around. Did the device start...

    Interesting work around. Did the device start working on the next query after this (without restarting the teensy)? I used the timeout features of the newer I2C library to avoid a lockup, but the...
  32. Replies
    138
    Views
    46,229

    Ok, well this suggests there still is a problem...

    Ok, well this suggests there still is a problem beyond just my teensy. The arduino example polls every 1 ms and never freezes. For me, even at 20ms, it will freeze on the teensy, but it may last a...
  33. Replies
    138
    Views
    46,229

    Garug, I ran your code and it eventually froze as...

    Garug, I ran your code and it eventually froze as well. Have you run it for more then a few minutes?

    A few comments on it, you normally don't need to validate the return value of...
  34. Replies
    138
    Views
    46,229

    When the device stops responding, 95% of the time...

    When the device stops responding, 95% of the time it gets stuck in the part of the code that prints "C" with the error code "4". This, according to the I2C library is a catch all error code "Other...
  35. Replies
    138
    Views
    46,229

    Awesome! I will move on to the next part of my...

    Awesome! I will move on to the next part of my project and wait for news.
    Last note, running a primitive version with no polling using the Wire.h library also fails over time.
  36. Replies
    138
    Views
    46,229

    Thanks everyone for the help - Im new, have too...

    Thanks everyone for the help - Im new, have too much to learn and really appreciate it. Paul, also thank you for bringing such an affordable and well featured board. I blew up my first teensy with...
  37. Replies
    138
    Views
    46,229

    I think I may have found something. When I plug...

    I think I may have found something. When I plug the Lidar Lite into the 5v Vin (usually powered by USB, but even other sources that can provide more current), the voltage suddenly drops to 4.2-4.4v ...
  38. Replies
    138
    Views
    46,229

    Paul, I got mine from...

    Paul,
    I got mine from http://www.trossenrobotics.com/lidar-lite , great guys. Also Sparkfun carries it.
    Headroom,
    I am rather new at this, and haven't quite accumulated that much fancy...
  39. Replies
    138
    Views
    46,229

    It appears the Lidar Lite I2C does operate at...

    It appears the Lidar Lite I2C does operate at 3.3v (also works at 5v).

    Testing so far requires only a Teensy 3.1 and a Lidar Lite unit.
  40. Replies
    138
    Views
    46,229

    I ran the I2C through an I2C safe logic level...

    I ran the I2C through an I2C safe logic level converter sparkfun and still fails after a short while. I also dug out an Arduino Uno, loaded the lidar example code and it ran flawlessly for hours.
  41. Replies
    138
    Views
    46,229

    I am now, and everything is working great. Using...

    I am now, and everything is working great. Using 4.5k resistors between the 3.3v pin and SCL0 and SDA0. Thanks!
    Edit .. almost great ... it froze up again .. the Lidar never acking the second read...
  42. Replies
    138
    Views
    46,229

    For testing I have the Teensy powered by USB and...

    For testing I have the Teensy powered by USB and the Lidar wires connected in a breadboard with the teensy.
    Lidar -- Teensy
    5v -> Vin
    SDA -> SDA0(18)
    SCL -> ...
  43. Replies
    138
    Views
    46,229

    I have an almost working solution, the only...

    I have an almost working solution, the only problem is the communication will stop responding after some amount of time, usually within a minute or two.



    #include <i2c_t3.h>
    #define ...
  44. Replies
    4
    Views
    1,611

    Mr G. Wrangler, thanks for taking the time to run...

    Mr G. Wrangler, thanks for taking the time to run the code. I have removed the teensy and am testing it alone at this point. Things went goofy during the second I2C communication, when it decided...
  45. Replies
    4
    Views
    1,611

    Can't load any programs on to it unfortunately. I...

    Can't load any programs on to it unfortunately. I actually cant get my USB hub to even light up or my computer to load a serial port. The device seems dead. I do have a second teensy that works...
  46. Replies
    138
    Views
    46,229

    Translating Lidar Lite I2C example to Teensy

    I am trying to implement this Lidar Lite sketch for Arduino (based on the 'Arduino I2C Master Library' from DSS Circuits). Since this uses features beyond the basic Wire library, i am trying to...
  47. Replies
    4
    Views
    1,611

    Killed my Teensy 3.1 by running I2C sketch

    I am not sure if I can safe my little guy, but thought it was worth a post. I was running the sketch linked below which was a I2C test to try to interface with a Lidar Lite device. After a few...
  48. Replies
    2
    Views
    1,362

    Programming Teensy 3.1 from Intel Edison

    I have a Intel Edison which is currently connected to a teensy via serial. Since this is all enclosed in a wifi connected robot, I would love to be able to reprogram the teensy without physically...
Results 1 to 48 of 48