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

Search:

Type: Posts; User: zapta

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    188

    Thanks @luni, this is what I was looking for.

    Thanks @luni, this is what I was looking for.
  2. Replies
    2
    Views
    188

    How to make printf() to work?

    I am using Teensy 4.1 with platformio and the configuration below.

    platform = teensy
    board = teensy41
    framework = arduino

    Serial.printf() does work and prints to the serial-over-USB but...
  3. Replies
    4
    Views
    381

    Yes, it does, I am using the Garmin Lidar Lite...

    Yes, it does, I am using the Garmin Lidar Lite arduino library, direct connection to the T4.2, with an additional I2C device onboard (MPU6050) and it all seems to work. Obviously the Garmin library...
  4. Replies
    4
    Views
    381

    Thanks Michael. I will take a look and try to...

    Thanks Michael. I will take a look and try to learn, never used bidirectional level shifter.

    As for my immediate application, just found out that the Garmin Lidar already has level shifters that...
  5. Replies
    4
    Views
    381

    How to connect a 5V I2C device to T4.1?

    Hi everybody,

    I need to connect Garmin Lidar to a Teensy 4.1 via I2C. The lidar specification says it operates on 5V so I presume this are also its I2C levels.

    Any suggestion on how to connect...
  6. Replies
    7
    Views
    464

    Paul, the association between the 'Wire' variable...

    Paul, the association between the 'Wire' variable and the hardware is done in the teensy I2C driver implementation, right? If so, what prevents you from allowing users to control that association? ...
  7. Replies
    7
    Views
    464

    Thanks Mark, this is very useful. It that...

    Thanks Mark, this is very useful.

    It that thread they initialized the display library to use the bus of choice but the MPU6050 library I am using seems to be hard coded to use Wire.
    ...
  8. Replies
    7
    Views
    464

    Are SCL2/SDA2 functions of the T4.1 usable?

    Hi all,

    I am trying to talk I2C via SCL2/SDA2 of the T4.1 but not success. The SCL2 pin is constantly low with no transitions due to I2C writes.

    The setup is as follows


    Wire.setSCL(24);...
  9. Replies
    12
    Views
    859

    Unless if your circuit is like mine and a battery...

    Unless if your circuit is like mine and a battery kicks in when the USB power is lost. ;-)

    I used a diode OR between the VUSB and the regulated 5V from the battery.
  10. Replies
    12
    Views
    859

    That's a good idea. I presume that would be a...

    That's a good idea. I presume that would be a P-CHAN with a pull down resistor and a switch from gate to +Vin.

    It seems that a dedicated IC such as this one can also do the job. In my case a pair...
  11. Replies
    12
    Views
    859

    Can you explain with more details how to do that?...

    Can you explain with more details how to do that? My understanding is that when in reflashing mode (that is, after pressing the T4.1 onboard button), none of my code is actually active.
  12. Replies
    12
    Views
    859

    Thanks manicksan. Looking at Digikey for NC...

    Thanks manicksan. Looking at Digikey for NC tactile switches, they are limited to 100ma. Do you know of a small one that can be mounted on a PCB and carry the full current? (I also use the 3.3V...
  13. Replies
    12
    Views
    859

    Thanks @tonton81. Can I use the watchdog timer...

    Thanks @tonton81. Can I use the watchdog timer and an external reset button to reset the T4.1 when in Program mode?
  14. Replies
    524
    Views
    73,044

    +1 for reset button and/or reset pin.

    +1 for reset button and/or reset pin.
  15. Replies
    12
    Views
    859

    Thanks @blackketter. The best I found so far is a...

    Thanks @blackketter. The best I found so far is a pad at the bottom of the T4.1 that is connected to pin 4 (EN) of the TLV75733P and the PMIC_ON_REQ pin of the MCU. Shorting it to ground with a...
  16. Replies
    1
    Views
    262

    How to access T4.1 SD card?

    Is there an example or a post explaining how to access the SD card on the Teensy 4.1? That is, listing, reading and writing files.

    I looked at the Teensy's library documentation and examples but...
  17. Replies
    12
    Views
    859

    How to add a teensy 4.1 reset button?

    Any suggestion on how to add an external reset button that will always reset the Teensy 4.1 (e.g. even if I pressed the programming button, or if my firmware is faulty).

    I couldn't find any T4.1...
  18. Are you the author of VisualTeensy, it was...

    Are you the author of VisualTeensy, it was godsend for me and I was impressed with the cleanness of the UI to the point I added to my TODO to look at the code and see what frameworks and techniques...
  19. @luni, the Tasks extension works very well....

    @luni, the Tasks extension works very well. Exactly what I was looking for. Thanks.
  20. @luni, thanks for the Tasks pointer, I will check...

    @luni, thanks for the Tasks pointer, I will check it up.

    The ctl-shift-b used to open a menu with a few build options, it didn't actually run anything by itself. That's was my experience.
  21. @luni, I am using arduino builder to make sure...

    @luni, I am using arduino builder to make sure other people can build. It's an open source project and VSC is not required.

    @mstiller, I presume that platform.io provides an extension. I am...
  22. Single click build with Visual Studio Code and Visual Teensy?

    I am using Teensy 4.0 with Visual Source Code and a Visual Teensy generated project with the Arduino builder and everything works just great (I am new to VSC and am very impressed).

    My question...
  23. Replies
    12
    Views
    2,334

    If absolute accuracy is required, one potential...

    If absolute accuracy is required, one potential workaround may be do also doing an A/D reading of an external reference and calibrating the payload reading with that information. Assuming that the...
  24. Replies
    12
    Views
    2,334

    @dan.col, didn't find a precision vref or analog...

    @dan.col, didn't find a precision vref or analog ground. Just using the default configuration and performing in firmware basic signal filtering.
  25. Replies
    524
    Views
    73,044

    Looking at the latest Arduino modules, they are...

    Looking at the latest Arduino modules, they are designed so they can be soldered directly to a PCB, for a lower profile.

    https://store.arduino.cc/usa/nano-every

    PJRC, please design similar...
  26. Replies
    75
    Views
    15,560

    A dumb question, doesn't Arduino has a built in...

    A dumb question, doesn't Arduino has a built in mechanism to support third party boards and libraries? What do other hardware vendor do?
  27. Replies
    524
    Views
    73,044

    Thanks Blackketter, this is very useful. I am...

    Thanks Blackketter, this is very useful.

    I am designing my own PCB so I can make the teensy 4.0 area similar to your breakout board.

    PJRC, please consider for next designs ease of low profile...
  28. Replies
    10
    Views
    2,758

    Thanks JBeale. Can you post here the full...

    Thanks JBeale. Can you post here the full example?

    The one in post #5 above does not include the reading (the standard Teensy dual channel example uses a single isr and a single read that return...
  29. Replies
    524
    Views
    73,044

    I am now designing a mainboard for a design that...

    I am now designing a mainboard for a design that include Teensy 4.0 and would appreciate this method of soldering the teensy to a PCB.
    ...
  30. Replies
    10
    Views
    2,758

    Hi JBeale, I need to sample at 100KHZ on both of...

    Hi JBeale, I need to sample at 100KHZ on both of the T4 ADCs in parallel.

    Can this be done with PDB or should I use a timer? Can you post an example?
  31. Replies
    12
    Views
    2,334

    Thanks Paul! Regarding vref, what is the...

    Thanks Paul!

    Regarding vref, what is the best possible vref setup I can use (internal or external)? My signal is single ended and the range 0.5V - 2.5V, coming from a ACS70331EESATR-2P5U3...
  32. Replies
    12
    Views
    2,334

    There are three GND pins among the outer pins....

    There are three GND pins among the outer pins. Any idea which one is closest (in term of noise) to the MCU's analog ground pads?
  33. Replies
    12
    Views
    2,334

    3.3v supply rail is a poor reference for a 12 bit...

    3.3v supply rail is a poor reference for a 12 bit A/D. Hope that there is a better way to provide reference for a 0 - 3.3V analog input range. (In my current application range up to 2.7V would also...
  34. Replies
    12
    Views
    2,334

    Does Teensy 4.0 have an analog ground pin?

    Looking at the pinout diagram, the T4 has a few grounds pins. Is one of them designated as analog ground?

    I need to feed two non differential signals to the two ADCs and would like to know how to...
  35. Replies
    10
    Views
    2,758

    Thanks for doing it Bumbler@.

    Thanks for doing it Bumbler@.
  36. Replies
    11
    Views
    9,636

    Thanks a lot Bumbler, I will take a look. I...

    Thanks a lot Bumbler, I will take a look.

    I have a primitive working version that access the registers directly but it doesn't allow to set thing such as sampling and conversions speeds.
  37. Replies
    11
    Views
    9,636

    On a second thought, I don't need two interrupts,...

    On a second thought, I don't need two interrupts, one for the timer (which starts the ADC) and one for the ADC result. I can do everything in the timer ISR, reading previous value and then triggering...
  38. Replies
    11
    Views
    9,636

    Thanks JBeale, this is very useful! I will look...

    Thanks JBeale, this is very useful! I will look also at the existing ADC.h.

    I can squeeze from T3.2 50k double samplings and shallow processing in the ISR, leaving about 60% CPU time to main but I...
  39. Replies
    11
    Views
    9,636

    Thanks JBeale. That example is of ADC with...

    Thanks JBeale. That example is of ADC with blocking calls, right? Is there an example for a non blocking ADC for T4? For example, something similar to what described here...
  40. Replies
    11
    Views
    9,636

    Thanks JBeale. What do you mean? I can do it...

    Thanks JBeale. What do you mean? I can do it without ADC.h support? How? Accessing the hardware directly? Any other useful library?

    Also, anybody knows the ETA of ADC.h support for T4? I am...
  41. Replies
    11
    Views
    9,636

    What ADC library to use with Teensy 4.0?

    Hi all,

    I am trying to use ADC.h from a Teensy 4.0 Arduino sketch and am getting a build error that the library doesn't support T4.

    Any idea what library to use?

    I want to trigger...
  42. Michael, when you experience the SPI issues, did...

    Michael, when you experience the SPI issues, did you have more than one SPI devices connected to the same MISO/MOSI ?

    In my case there is only one device, the display. I wonder if I even need to...
  43. It seems that the problem with not updating the...

    It seems that the problem with not updating the background is related to comment here

    https://github.com/adafruit/Adafruit-GFX-Library/blob/master/Adafruit_GFX.cpp#L1136

    This is a bad choice in...
  44. I got the 1.8" TFT, followed the connections...

    I got the 1.8" TFT, followed the connections described in the Teensy ST7735_t3 example (I am using Teensy 3.2) and everything works just fine. That's was easy.

    The only problem I encountered so...
  45. I may try the hardware timer to pace the...

    I may try the hardware timer to pace the sampling. Currently its every ~30usec with ~1usec isr time.

    The T4 seems to be superior to the T3.2 and at same size and price so no brainer from my...
  46. Bumbler@, it needs to read both channels...

    Bumbler@, it needs to read both channels continuously, ~10k per channel per sec so it doesn't lose stepper steps. This works on a T3.2 though I am considering using a timer to trigger the samplings...
  47. Is there another supported library to use the...

    Is there another supported library to use the T4's ADCs under the Arduino IDE?
  48. Does this continuous simultaneous ADC sampling look reasonable?

    Hi everybody,

    I am new to teensy and am trying to understand the ADC library. For my application I need to sample two analog channels that represent the currents through a stepper motor coils and...
  49. Thanks Kurte, this is very useful. The LCDs...

    Thanks Kurte, this is very useful.

    The LCDs should arrive in 2-3 weeks so I will sample whatever Teensduino will be available at that time and give it a try.

    I think that the pending issues...
  50. Thanks Michael, this is very useful information. ...

    Thanks Michael, this is very useful information.

    I don't need to run anything else with SPI so I presume that CS is not an issue for my application.

    I just ordered a T4 here and two 1.8"...
Results 1 to 50 of 54
Page 1 of 2 1 2