Search results

  1. H

    motion sensor

    motion sensor sample frequency Hello, Im using the Teensy 3.6 with the teensy Prop Shield With Motion Sensors (link: https://www.pjrc.com/store/prop_shield.html) maybe i just can't find it, but it doesn't seem like the sample rate is stated for the teensy Prop Shield With Motion Sensors. So...
  2. H

    Serial.read() not working when printing

    Hello Mark, Thank you for the reply, yes sorry there was a copy past problem. The solution was not exactly the one you gave and "startCycleCPU = ARM_DWT_CYCCNT;" needs to be in the beginning of the loop to be used as a timer for the total loop time, however the code you posted led me on the...
  3. H

    Serial.read() not working when printing

    Hello KurtE, thanks for your reply, You are right! sorry there was missing a }} at the end. It should be fixed in the posted code now. The ARM register is just keeping the loop at 2ms, this is no problem, it can also be removed, it will still not work, and im not sure why. The timeout in...
  4. H

    Serial.read() not working when printing

    Hello, I'm using the Teensy 3.6 with PC (windows) as communication over Serial at baud 9600 I'm having trouble with Serial.read, I'm trying to provide an input through Serial but at the same time using serial.print, I guess you can't do both things at the same time and this is why it doesn't go...
  5. H

    Prop shield, EMI, EMF, noise, PSRR

    Hello there, Im using the T_3.6 with the teensy prop shield. I'm controlling some brushless motors (not important) My main question is on EMF and EMI. the teensy 3.6 has a lp38691 voltage regulator to output the 3.3V and that of course has a rejection ratio (PSRR) since there is a voltage...
  6. H

    CPU cycles and data extraction

    Hello defragster Thanks for your reply This brought a lot of clarity to my understanding of the subject. To clarify I am sending data from the teensy 3.6 to PC by the USB port, with the Serial.print command. As i understand your reply, the way i count the cycles, is the amount it takes to...
  7. H

    CPU cycles and data extraction

    Hello pete, Thanks for the reply. Im using the teensy 3.6 ( sorry for not provides clarity on this to start with) im not sure what you mean. The println is of course a extra LF and the number of cycles used is dependent on the size of the data. I just need to know the limitations on how fast i...
  8. H

    CPU cycles and data extraction

    True, it will be about 169 cycles (for the same number). But when using the data, it's easier to have the values in ASCII formate. Is there a faster way then using the Serial. somthing?
  9. H

    CPU cycles and data extraction

    Hello I posted a similar question yesterday but after further research I have some more concrete questions I have counted the number of CPU clock cycles by the code listed below. I can see for serial.print 277 cycles is used. And for .println it takes 391 (this is of course dependent on the...
  10. H

    Output processed data fast

    What are the most common factors that has the greatest influence on the USB speed? And is the 1MByte/sec a value fround from experiments. I have read that the USB0 can transmit 12 Mbit/sec? I assume it would be faster to use the USB1 with 480 Mbit/sec as a host for a USB Stick or is this a fallacy?
  11. H

    Output processed data fast

    Hello I´m new to this forum so please excuse me if i have posted this in the wrong category. Im doing a project where im using the madgwick algorithm to obtain roll, yaw, pitch angles. And i output the angles, all 3 accelerations, gyro and magnetometer outputs. So a output vector [roll, pitch...
Back
Top