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. Replies
    4
    Views
    92

    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...
  2. Replies
    1
    Views
    112

    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...
  3. 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...
  4. Replies
    2
    Views
    435

    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...
  5. Replies
    2
    Views
    435

    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...
  6. Replies
    872
    Views
    121,542

    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?
  7. Replies
    872
    Views
    121,542

    @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...
  8. Replies
    35
    Views
    2,295

    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.
  9. Replies
    35
    Views
    2,295

    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!
  10. Replies
    35
    Views
    2,295

    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?
    ...
  11. 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.
  12. 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...
  13. 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.
  14. Why not just use a Makefile and skip Arduino...

    Why not just use a Makefile and skip Arduino altogether?
  15. Replies
    3
    Views
    422

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

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

    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...
  17. Replies
    62
    Views
    4,070

    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...
  18. Replies
    62
    Views
    4,070

    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...
  19. Replies
    62
    Views
    4,070

    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...
  20. Replies
    62
    Views
    4,070

    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.
  21. Replies
    62
    Views
    4,070

    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.
  22. Replies
    62
    Views
    4,070

    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...
  23. Replies
    62
    Views
    4,070

    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...
  24. Replies
    62
    Views
    4,070

    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:


    ...
  25. 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...
  26. 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...
  27. Replies
    872
    Views
    121,542

    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?
  28. Replies
    475
    Views
    144,619

    Templates seem like a natural solution. No...

    Templates seem like a natural solution. No dynamic memory allocation and easy to set by the user.
  29. Replies
    872
    Views
    121,542

    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);
    ...
  30. Replies
    6
    Views
    494

    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...
  31. 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...
  32. 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() {
    ...
  33. Replies
    2
    Views
    397

    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.
  34. Replies
    1
    Views
    327

    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...
  35. Replies
    21
    Views
    1,611

    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.
  36. 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...
  37. Replies
    259
    Views
    101,052

    I wonder if it's an issue with counterfeits?

    I wonder if it's an issue with counterfeits?
  38. Replies
    259
    Views
    101,052

    The old emsensor boards modified to work with SPI.

    The old emsensor boards modified to work with SPI.
  39. Replies
    259
    Views
    101,052

    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.
  40. Replies
    259
    Views
    101,052

    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...
  41. Replies
    259
    Views
    101,052

    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.
  42. Replies
    46
    Views
    2,841

    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...
  43. Replies
    46
    Views
    2,841

    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...
  44. Replies
    259
    Views
    101,052

    Hi, I split that library between a version...

    Hi,

    I split that library between a version built for my build system and one for the Arduino. You want the library located here:
    https://github.com/bolderflight/mpu9250-arduino

    Brian
  45. Replies
    6
    Views
    590

    MSP is a binary protocol, I'd be tempted to try...

    MSP is a binary protocol, I'd be tempted to try UART2, which should be NMEA and at least human readable.
  46. Replies
    975
    Views
    59,937

    On your spreadsheet, I think MMOD Pin 17 and Pin...

    On your spreadsheet, I think MMOD Pin 17 and Pin 19 are swapped.
  47. Replies
    975
    Views
    59,937

    Thanks! I missed that MMOD Pin 4 was a UART. For...

    Thanks! I missed that MMOD Pin 4 was a UART. For MMOD Pin 40 and Pin 42, your spreadsheet has those as I2C buses, but when I look at the Teensy 4.1 pinout for Pins 40 and 41 (the corresponding Teensy...
  48. Replies
    975
    Views
    59,937

    There is a lot of capability built into this...

    There is a lot of capability built into this board! I started making a KiCAD symbol, matched back to the Teensy 4.1 pin numbers, and labeled the additionally functionality. I realize this is what...
  49. Replies
    975
    Views
    59,937

    Thanks! That's what I initially thought and got...

    Thanks! That's what I initially thought and got tripped up (and greedy) when I saw the USB VIN.
  50. Replies
    975
    Views
    59,937

    Sorry if this is a silly question - is there...

    Sorry if this is a silly question - is there power regulation on the micromod board? I see USB VIN on Pin 9, 3.3V enable on Pin 4, and 3.3V on Pin 74 and on Pin 2. What is the capacity of the output...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4