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

Search:

Type: Posts; User: brtaylor

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Ltc4311

    by brtaylor
    Replies
    1
    Views
    129

    Ltc4311

    Has anyone used an LTC4311 (adafruit.com/product/4756)? Did it help extend the I2C bus?

    I, anecdotally, hear people complain about I2C not working well at long distances in drones. I bought one...
  2. Replies
    1
    Views
    311

    Yes, see this thread:...

    Yes, see this thread: https://forum.pjrc.com/threads/57842-Future-Teensy-features-amp-pinout
  3. Replies
    9
    Views
    249

    Looks like you have it on pins 16 and 17 (Wire1)...

    Looks like you have it on pins 16 and 17 (Wire1) instead of 18 and 19 (Wire). So, you would need to modify the example to use Wire1 instead of Wire. You definitely need pullups from SCL and SDA to...
  4. Replies
    9
    Views
    249

    Hi, I wrote that library. Should be as simple...

    Hi,

    I wrote that library. Should be as simple as downloading or cloning into your Arduino / libraries folder:
    1. Our MPU9250 library (https://github.com/bolderflight/mpu9250)
    2. Our unit...
  5. I would suggest also looking at the Adafruit...

    I would suggest also looking at the Adafruit Powerboost 500 (https://www.adafruit.com/product/1944) or Adafruit Powerboost 1000 (https://www.adafruit.com/product/2465) for integrated solutions....
  6. Recommend talking with a lawyer specializing in...

    Recommend talking with a lawyer specializing in this area. My understanding, from a lot of searching and reading, is that LGPL may be problematic since you are either statically linking libraries or...
  7. Replies
    1
    Views
    183

    Teensy 4.x Analog Write Resolution

    Am I correct in reading this table that Teensy 4.x does not support an analogWriteResolution of 16 and that 15 is the maximum?
    https://www.pjrc.com/teensy/td_pulse.html

    Thanks in advance!
  8. Replies
    4
    Views
    272

    A search brought up this library:...

    A search brought up this library: https://forum.pjrc.com/threads/66389-SPISlave_T4

    Note that I haven't used it, I would ask questions regarding library use in that thread. Agree with others that I...
  9. Replies
    1
    Views
    262

    Minor: Warning with ARM architectures

    I've been in the process of updating some of my libraries and noticed that if I specify
    architectures=ARM inside library.properties, it produces a warning on compilation with Teensy boards...
  10. For my Teensy-based flight control system, we use...

    For my Teensy-based flight control system, we use Simulink to generate C++ code using Embedded Coder. Our build system pulls that in with a modified version of the Teensy core and low level drivers...
  11. Replies
    2
    Views
    534

    Thanks for the suggestion. I ended up trying this...

    Thanks for the suggestion. I ended up trying this approach on a simple library to start:
    https://github.com/bolderflight/circle_buf

    If anyone has any suggestions for improvements or feedback, I'd...
  12. Replies
    2
    Views
    534

    Cross Platform Arduino Code

    I use CMake for my internal development. In some cases, I have both a CMake version of a library (i.e. https://github.com/bolderflight/mpu9250) and an Arduino version of the library...
  13. Replies
    899
    Views
    139,888

    I'm assuming that if I'm using mailboxes, the RX...

    I'm assuming that if I'm using mailboxes, the RX queue wouldn't matter either since a new message would just overwrite the old one sitting in the mailbox?
  14. Replies
    899
    Views
    139,888

    @tonton81, sorry if I missed it in this thread -...

    @tonton81, sorry if I missed it in this thread - how does the queue work in the class template? Is it in terms of bytes or messages? In other words, using TX_SIZE_16 would queue two CAN 2.0 messages...
  15. Replies
    35
    Views
    3,026

    Based on what I can see, that maps to Pin 22 on...

    Based on what I can see, that maps to Pin 22 on the Teensy 4.1, so it appears to just be an analog input. But I'm only in the design phase currently.
  16. Replies
    35
    Views
    3,026

    Gotcha, thanks! I'm working on a board design and...

    Gotcha, thanks! I'm working on a board design and would like USB to work. Was going to leave unconnected - thanks a lot for the hint!
  17. Replies
    35
    Views
    3,026

    Am I correct in reading this as you don't have a...

    Am I correct in reading this as you don't have a separate 5V to 3.3V regulator and are using the MMOD USB VIN as the only power source? Would you then get 3.3V output via MMOD pins 2 and 74?
    ...
  18. Can you share code? It's really hard to help...

    Can you share code? It's really hard to help without seeing what's going on.
  19. Do a search for Over the Air updates for options,...

    Do a search for Over the Air updates for options, this gets brought up often.

    Other option is if you can have a second Teensy, BeagleBone Black, Raspberry Pi, etc, then you can upload software...
  20. If you search, I'm sure that you'll find more...

    If you search, I'm sure that you'll find more examples on GitHub as well. I went the CMake route and enjoy that - lot's of different ways to build code.
  21. Why not just use a Makefile and skip Arduino...

    Why not just use a Makefile and skip Arduino altogether?
  22. Replies
    3
    Views
    528

    Yep, thanks. I have some MPU-9250 stock in-house.

    Yep, thanks. I have some MPU-9250 stock in-house.
  23. Replies
    3
    Views
    528

    Minimal MicroMod Carrier

    I'm working on designing a very minimal MicroMod carrier board consisting of only:
    1. The Teensy 4 MicroMod
    2. A 3.3V regulator
    3. An MPU-9250 IMU
    4. A 4-pin serial connection

    I'm doing this...
  24. Replies
    62
    Views
    5,744

    I like CAN Aerospace and ARINC 825. I think CAN...

    I like CAN Aerospace and ARINC 825. I think CAN Aerospace's documentation is excellent and the protocol is very straightforward. ARINC 825 also has excellent documentation; although, it costs around...
  25. Replies
    62
    Views
    5,744

    Anecdotally, the JST-GH connectors aren't great...

    Anecdotally, the JST-GH connectors aren't great either and I'm glad the industry is moving away from I2C on cables and towards CAN; although, the protocol is a discussion for another day.

    Might be...
  26. Replies
    62
    Views
    5,744

    4 wire cable with JST-GH connectors (DroneCode...

    4 wire cable with JST-GH connectors (DroneCode I2C standard) from a Teensy 4.1 based flight controller to a custom board with 2 AMS5915 pressure transducers for static and differential pressure from...
  27. Replies
    62
    Views
    5,744

    Hi Paul, let me see if I can replicate the I2C...

    Hi Paul, let me see if I can replicate the I2C piece with a simple example.
  28. Replies
    62
    Views
    5,744

    Just to bring the original hard freeze to a close...

    Just to bring the original hard freeze to a close - it was I2C on a cable that was causing the issues. Switching over to a protocol meant for cables (i.e. CAN bus) solved the issue.
  29. Replies
    62
    Views
    5,744

    Yes, it's a hard freeze and the Teensy is...

    Yes, it's a hard freeze and the Teensy is unresponsive. COM port is greyed out and a power cycle is required. Good idea about the crash report, thanks! So far just adding back in chunks of code and...
  30. Replies
    62
    Views
    5,744

    Ditto, stalling on Windows with the bare Teensy...

    Ditto, stalling on Windows with the bare Teensy 4.1, but no hard crashes.

    With the other Teensy 4.1 (which has sensors and is in an enclosure running about 10C hotter / around 62C typical), I'm...
  31. Replies
    62
    Views
    5,744

    Teensy 4.1 Lockup

    EDIT: Sorry, wrong category, I thought this was in bug reports...please move.

    I'm encountering a weird issue with a Teensy 4.1 locking up.

    The following is the code that I am using:


    ...
  32. Close. 1. For the ISR, you don't have to...

    Close.

    1. For the ISR, you don't have to check the pin state, you can just attach the ISR on the leading edge of the pulse, assuming that it's a positive pulse (i.e. low to high), check for the...
  33. Add a digital line I/O line that the I2C...

    Add a digital line I/O line that the I2C controller ("master") can pulse and the I2C responder ("slave") can read.
    1. The I2C controller pulses the digital line using digital write fast at the time...
  34. Replies
    899
    Views
    139,888

    How do we emit messages with an extended id? Do...

    How do we emit messages with an extended id? Do we just set the CAN_message_t id field or is there some setup that's needed first?
  35. Replies
    475
    Views
    155,455

    Templates seem like a natural solution. No...

    Templates seem like a natural solution. No dynamic memory allocation and easy to set by the user.
  36. Replies
    899
    Views
    139,888

    What's random doing in this method?...

    What's random doing in this method?
    https://github.com/tonton81/FlexCAN_T4/blob/master/FlexCAN_T4.tpp#L942



    FCTP_FUNC int FCTP_OPT::read(CAN_message_t &msg) {
    bool _random = random(0, 2);
    ...
  37. Replies
    6
    Views
    594

    I would write a state machine that parses the...

    I would write a state machine that parses the packet. You can find an example in my uBlox UBX parser library here:
    https://github.com/bolderflight/ublox-arduino/blob/main/src/ublox.cpp#L225

    It's...
  38. Aircraft, both fixed-wing and multirotor, can be...

    Aircraft, both fixed-wing and multirotor, can be well controlled at much lower rates. We used to run at a 50Hz loop rate and were even successfully controlling vehicles that had flexible structures...
  39. As someone who develops flight controllers around...

    As someone who develops flight controllers around the Teensy series of microcontrollers (https://github.com/bolderflight/spaaro), what I generally do, in pseudo code is:



    void daq() {
    ...
  40. Replies
    2
    Views
    465

    Are you able to post the code and the wiring...

    Are you able to post the code and the wiring diagram? I have some of these in my "future work" drawer and could setup some tests to see if I can re-produce the issue.
  41. Replies
    1
    Views
    383

    Sure, this is what Teensy 4.1 is doing all the...

    Sure, this is what Teensy 4.1 is doing all the time. I would search the forum - there's been a few threads for getting the Teensy 4.x to operate as an SPI Peripheral / Slave and at least one library...
  42. Replies
    21
    Views
    1,805

    I would suggest searching the forum for "over the...

    I would suggest searching the forum for "over the air updates", it seems similar to what you're trying to accomplish and has been asked many times.
  43. Low pass filter + fast moving momentary contact...

    Low pass filter + fast moving momentary contact seem to be contradicting requirements. I think you would need really good knowledge of the frequencies involved to get it to work, assuming there is...
  44. Replies
    259
    Views
    107,731

    I wonder if it's an issue with counterfeits?

    I wonder if it's an issue with counterfeits?
  45. Replies
    259
    Views
    107,731

    The old emsensor boards modified to work with SPI.

    The old emsensor boards modified to work with SPI.
  46. Replies
    259
    Views
    107,731

    I just updated the library with an increased...

    I just updated the library with an increased delayNanoseconds time, should hopefully be a little more robust now.
  47. Replies
    259
    Views
    107,731

    Should work at a CPU speed of 600 MHz. The...

    Should work at a CPU speed of 600 MHz. The sampling rate will always be 1kHz or less because we're using the MPU-9250 internal filter. To go above the 1kHz, you need to disable the internal filtering...
  48. Replies
    259
    Views
    107,731

    Should work, or at least it works fine for me....

    Should work, or at least it works fine for me. Please post your complete code, the error message that you get indicating it's not working, and a picture of the sensor and connections to the Teensy.
  49. Replies
    46
    Views
    3,358

    I can't help with a walk through - I don't have...

    I can't help with a walk through - I don't have the sensor to test a driver against and my work is very busy at the moment. Maybe someone else on the forum can help?

    I wouldn't use the library you...
  50. Replies
    46
    Views
    3,358

    You'll want to use the Wire library:...

    You'll want to use the Wire library:
    https://www.arduino.cc/en/Reference/Wire

    If you search by the sensor name and "github arduino" you'll find some arduino drivers for the sensor. I've never...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4