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. EasyCan, or Yet Another CAN Library, but hopefully easy to use w/deterministic timing

    I'm working on some CAN integrations (CAN Aerospace and Drone CAN) and wanted a CAN driver that:
    1. Supports Teensy 3.x and 4.x
    2. Sends and receives messages sequentially
    3. Supports interrupt...
  2. Replies
    921
    Views
    143,529

    Thanks, I'll take a look. It's for integration...

    Thanks, I'll take a look. It's for integration with Drone CAN, so it might be easier to change the Drone CAN side of things too. I'll dig around a bit.
  3. I had asked in this thread:...

    I had asked in this thread:
    https://forum.pjrc.com/threads/63816-Mimxrt1062dvj6a

    Paul guessed that it would work and that they might even be the same chip and just binned differently. I will be...
  4. Replies
    921
    Views
    143,529

    Thanks! I really like the filtering by ID that...

    Thanks! I really like the filtering by ID that you implemented, but I'm working on interfacing with a library, where the library is going to provide filter and mask pairs. I'll dig into the library a...
  5. Replies
    921
    Views
    143,529

    A question on using masks, from this thread...

    A question on using masks, from this thread (https://www.microchip.com/forums/m456043.aspx), my expectation was setting a mask of 11111111100 (i.e. 0x7FC) and a filter of 0 would let through ID's 1,...
  6. Replies
    921
    Views
    143,529

    If I do that with the following code: ...

    If I do that with the following code:


    #include <FlexCAN_T4.h>

    FlexCAN_T4<CAN1, RX_SIZE_256, TX_SIZE_16> can1;
    CAN_message_t msg;

    void setup() {
    Serial.begin(115200);
  7. Replies
    921
    Views
    143,529

    Based on message #905, I thought there were 32...

    Based on message #905, I thought there were 32 filters available to setup. Did I misunderstand that? Thanks again.
  8. Replies
    921
    Views
    143,529

    If I run this on a Teensy 3.2 #include...

    If I run this on a Teensy 3.2



    #include "FlexCAN_T4.h"
    FlexCAN_T4<CAN0, RX_SIZE_256, TX_SIZE_16> can1;

    void setup() {
    Serial.begin(115200);
    while (!Serial) {}
  9. Replies
    921
    Views
    143,529

    Some more FlexCAN_T4 questions: 1. I noticed...

    Some more FlexCAN_T4 questions:
    1. I noticed that 128 filters are available for the FIFO, is that for both the Teensy 3.x and 4.x?
    2. What is the FIFO depth (i.e. how many messages can fill the...
  10. Replies
    13
    Views
    3,738

    Thanks, I saw that post, but didn't look too...

    Thanks, I saw that post, but didn't look too closely at it, since I was assuming that they were getting UAV CAN v1 ported and Drone CAN is more similar to UAV CAN v0. I think I'm just going to try to...
  11. Replies
    13
    Views
    3,738

    Hi Mike, I'm taking a look at this library;...

    Hi Mike,

    I'm taking a look at this library; I'd like to update it to use DroneCAN, which is basically UAV CAN version 0:
    https://github.com/dronecan/libuavcan

    I'd also like to use FlexCAN_T4...
  12. Thread: Ltc4311

    by brtaylor
    Replies
    1
    Views
    172

    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...
  13. Replies
    1
    Views
    336

    Yes, see this thread:...

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

    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...
  15. Replies
    9
    Views
    298

    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...
  16. 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....
  17. 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...
  18. Replies
    1
    Views
    205

    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!
  19. Replies
    4
    Views
    300

    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...
  20. Replies
    1
    Views
    283

    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...
  21. 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...
  22. Replies
    2
    Views
    554

    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...
  23. Replies
    2
    Views
    554

    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...
  24. Replies
    921
    Views
    143,529

    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?
  25. Replies
    921
    Views
    143,529

    @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...
  26. Replies
    35
    Views
    3,192

    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.
  27. Replies
    35
    Views
    3,192

    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!
  28. Replies
    35
    Views
    3,192

    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?
    ...
  29. 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.
  30. 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...
  31. 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.
  32. Why not just use a Makefile and skip Arduino...

    Why not just use a Makefile and skip Arduino altogether?
  33. Replies
    3
    Views
    552

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

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

    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...
  35. Replies
    62
    Views
    6,107

    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...
  36. Replies
    62
    Views
    6,107

    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...
  37. Replies
    62
    Views
    6,107

    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...
  38. Replies
    62
    Views
    6,107

    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.
  39. Replies
    62
    Views
    6,107

    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.
  40. Replies
    62
    Views
    6,107

    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...
  41. Replies
    62
    Views
    6,107

    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...
  42. Replies
    62
    Views
    6,107

    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:


    ...
  43. 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...
  44. 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...
  45. Replies
    921
    Views
    143,529

    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?
  46. Replies
    475
    Views
    156,894

    Templates seem like a natural solution. No...

    Templates seem like a natural solution. No dynamic memory allocation and easy to set by the user.
  47. Replies
    921
    Views
    143,529

    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);
    ...
  48. Replies
    6
    Views
    604

    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...
  49. 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...
  50. 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() {
    ...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4