Search results

  1. P

    BNo085 read times

    The conversion takes around 2us. Pretty fast. Almost the entire 1200us is taken up by bno08x.getSensorEvent(&sensorValue) void quaternionToEuler(float qr, float qi, float qj, float qk, euler_t* ypr, bool Degrees) { start_time = micros(); float sqr = sq(qr); float sqi = sq(qi); float sqj =...
  2. P

    BNo085 read times

    Sorry. I meant to say I am getting 1100 microseconds at 3MHZ. My bad. The issue is not the rate i can poll the device at. I only want around 200Hz sampling. It's the time it takes that is the issue. A bit of context. I built a balancing robot which works pretty good. There is however an issue...
  3. P

    BNo085 read times

    No mate, its microseconds. About 1.2 milliseconds per read. For my application that's too long and is affecting the foc code I'm running with it. Maybe I'm asking too much.
  4. P

    BNo085 read times

    Hi All, I have a BNo085 that takes around 1200 microseconds to read a single report (in this case rotation vector over SPI). I have experimented with different report intervals and SPI speed ranging from 1MHz up to the maximum recommended 3MHz. I could get read time down to around 1100ms at...
  5. P

    Serial1 buffer size question

    Hi All, Just wanted to report on my finding on using Teensy Loader V1.59-beta4. I can confirm that this version of TL does not seem to allow changes to T3.2 buffer size via Serial1.addMemoryForRead(serial_buffer, sizeof(serial_buffer)); My test went as follows - SETUP Transmitter end -...
  6. P

    Serial1 buffer size question

    Hi BriComp. Thanks for the tip.I'll give it a go and report back.
  7. P

    Serial1 buffer size question

    Did a bit more testing. I think there is an issue with T3.2 and the Serial buffer size code. I replicated the circuit using 2 x T4.x's and there was no issue using the Serial1.addMemoryForRead(serial_buffer, sizeof(serial_buffer)); command. When using the T4.x's the buffer overflow issue was...
  8. P

    Serial1 buffer size question

    Thanks Mark. I'll have a look.
  9. P

    Serial1 buffer size question

    Hi All and Happy New Year!! Just playing with Serial receive buffer size. In my machines \AppData\Local\Arduino15\packages\teensy\hardware\avr\1.58.1\cores\teensy3 folder I can see that Serial.c file which contains Serial1 buffer size parameters - #ifndef SERIAL1_TX_BUFFER_SIZE #define...
  10. P

    Teensy 4.1 and attachCts

    Thanks Defragster. I have read that page a few times. I guess I find it a little confusing. It looks like I can use pin 3 for CTS, but that pin is an XBAR (not sure what XBAR is yet) pin. It's polarity is inverted so I'm guessing it wont work. The only option would be to assign the CTS pin to a...
  11. P

    Teensy 4.1 and attachCts

    HI All, Using flow control on a Teensy 3.2 worked well for me. I have decided to move up to the T4.1, but am having a few problems with hardware flow control. For some context, I have Serial1 connected to an Xbee radio. Xbee flow control pins are connected to pins 2 and 3 of the T4.1 with pin...
  12. P

    Double precision floating point for Teensy 3.2

    Hi All, Thankyou for all the advice. For me this felt like a big hurdle to overcome. Thanks to the forum I was able to write a quick bit of code this afternoon that allowed me to test the accuracy (of maybe repeatabiltiy is a better word) of my GPS. if I came within 20cm of the target a buzzer...
  13. P

    Double precision floating point for Teensy 3.2

    Hi All, I've found what appear to be answers to this question but I just need a bit of help. Struggling to implement a solution. I am running a Teensy 3.2 and trying to convert a long integer into a double precision floating point. My understanding is that the Teensy 3.2 uses software...
  14. P

    Serial comms issue

    Hi All, Your advice seemed to do the trick. Modifying serial1.c worked. Comms are now good with whatever buffer size I choose (up to the number i put in serial1.c). @KurtE I get what you are saying. I will do my best in this project to process the serial data as often as possilbe. As always...
  15. P

    Serial comms issue

    Hi All, Woke up this morning to see your posts. As always really appreciate the help. @defragster - I had checked the serial1.c code and couldn't see a reason why I couldn't go up to the uint16_t limit of 65535. @joepasquariello - good to see I was looking at the right code for buffer...
  16. P

    Serial comms issue

    Hi All, I need some help on this serial issue again. Apologies for the second round of questions. So I have had great success with my serial comms after adding incresasing the serial read buffer to 128 bytes. If I try to increase the buffer size to anything larger than 128 bytes the comms get...
  17. P

    Serial comms issue

    Hi Mark. Sorry for not answering your question. I chose 50ms delay as I figured that would be a longer scan time than I would ever see in a project. I wanted to get robust comms up and running with a 50ms delay. The idea being if it worked with that much of a delay between reads it would always...
  18. P

    Serial comms issue

    Ok so I updated to the latest cores version https://github.com/PaulStoffregen/cores.git and now I can compile. The serial comms are now working fine. You guys are legends!! Man this issue was really stopping me from proceeding with my project. Hopefully I can help someone on here one day as...
  19. P

    Serial comms issue

    Hi All, Thanks for the tips. Do I have tried to add Serial1.addMemoryForRead(serial_buffer, sizeof(serial_buffer)); but I am getting the following error - serial_passerV3:13: error: 'class HardwareSerial' has no member named 'addMemoryForRead' Serial1.addMemoryForRead(serial_buffer...
  20. P

    Serial comms issue

    Hi All, This is my first post on here so go easy on me :) I've spent a heap of time trying to work out a serial comms issue I have. If anyone can help it would be really appreciated. I have 2 x Teensy 3.2's communicating to each other via Xbee radios. I am using the hardware Serial1 port on...
Back
Top