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

Search:

Type: Posts; User: BrianC

Search: Search took 0.00 seconds.

  1. Replies
    19
    Views
    19,041

    @randomvibe, I'm not sure about the Sparkfun...

    @randomvibe, I'm not sure about the Sparkfun board, however, it seems like it should work with SPI. Refer to the pin description table on this page.

    I personally just got the cheapest MPU-9250...
  2. Replies
    19
    Views
    19,041

    This has been tested on the teensy 3.0 and 3.1....

    This has been tested on the teensy 3.0 and 3.1. Should also work for teensy 3.2.
  3. Replies
    19
    Views
    19,041

    For anyone who needs help getting the MPU-9250...

    For anyone who needs help getting the MPU-9250 working with SPI, the library with an example is here.
  4. Replies
    19
    Views
    19,041

    Thanks. I've got it working by porting this ...

    Thanks. I've got it working by porting this to arduino.
  5. Replies
    19
    Views
    19,041

    Has anyone gotten the MPU-9250 to work with SPI?

    Has anyone gotten the MPU-9250 to work with SPI, including the magnetometer?

    Thanks.
  6. Update: It seems like someone has already found...

    Update:
    It seems like someone has already found the fixes, just that the main repo hasn't been updated.
    https://github.com/btmcmahan/Teensy-3.0-SPI-Master---Slave/pull/5

    Thanks
  7. Arduino 1.0.6/Teensyduino 1.24 compatibility with btmcmhan's t3spi library

    Hi,

    I've been using @btmcmahan Teensy SPI master/slave library for a while (with arduino 1.0.5 and teensyduino 1.20).
    https://github.com/btmcmahan/Teensy-3.0-SPI-Master---Slave
    However, since...
  8. Thanks Paul. I may try that, though I'll probably...

    Thanks Paul. I may try that, though I'll probably end up doing some rerouting to pin 26 and removing the header of pin 33 altogether, using some messy external wiring.

    As a side note. I agree with...
  9. I'm interfacing with the ili9341 with parallel,...

    I'm interfacing with the ili9341 with parallel, and the 10k pullup doesn't seem to work. It's wired correctly, but whenever the lcd is powered on, the voltage still drops to around 10mV. Adding...
  10. Any chance of the workaround in firmware to...

    Any chance of the workaround in firmware to happen soon?
  11. Thanks guys. The pullup was just what I was...

    Thanks guys. The pullup was just what I was thinking, just a bit ugly to solder up a pullup on a pcb. Will try soon.

    Moving pin assignments around will be difficult. There is only one pin left...
  12. Any help please? Thanks

    Any help please?
    Thanks
  13. Is the fix available yet? I'm having an issue...

    Is the fix available yet? I'm having an issue where the device I'm using causes pin 33 to go low on power up, causing the teensy to stop working.
    If I connect the device after power up, everything...
  14. Hi, Thanks! I believe the thread is now really...

    Hi,
    Thanks! I believe the thread is now really based here. There are a few others that also are attempting a mix of software and hardware decoding at >=50kHz.

    Perhaps this would be of use to...
  15. Replies
    90
    Views
    91,256

    unix_guru, I suggest you try both pure software...

    unix_guru, I suggest you try both pure software decoding or a mix of both. Right now I'm under the impression that software might just be better for encoder edge rates of <100kHz.
  16. Replies
    90
    Views
    91,256

    It's taken me a while to get the interrupts...

    It's taken me a while to get the interrupts working without conflicting. I'm using a similar approach to fdavies and interestingly, using pure software decoding is faster than a mix of both hardware...
  17. Replies
    51
    Views
    32,607

    Thanks Paul. and thanks btmcmahan for the...

    Thanks Paul.
    and thanks btmcmahan for the library. It works well.
  18. Replies
    51
    Views
    32,607

    Can the ibrary be used at higher speed than 24...

    Can the ibrary be used at higher speed than 24 MHZ ?
    Probably not. I believe it's the max (and that's very fast)

    On another note, Paul, is there any chance of SPI slave support on the core SPI...
  19. Replies
    11
    Views
    2,715

    Sorry. Forgot to emphasise the built in 10k...

    Sorry. Forgot to emphasise the built in 10k resistors (on both the breakout and the shield)
  20. Replies
    51
    Views
    32,607

    Does this library support native chip select?

    Does this library support native chip select?
  21. Replies
    11
    Views
    2,715

    I believe this is regarding the capacitive...

    I believe this is regarding the capacitive breakout? http://www.adafruit.com/product/1770
    Just some tips from experience:
    1. you don't really need pullups if you've only got one i2c device
    2....
  22. Replies
    11
    Views
    2,715

    Actually. Disregard this. I'm experiencing the...

    Actually. Disregard this. I'm experiencing the same behavior with both now.
  23. Replies
    11
    Views
    2,715

    Weird behaviour from digitalReadFast?

    I've been working with the ili9341 cap touch display recently. There is an active high interrupt pin that goes low when touched.

    Here is a simplified version of my code:


    void setup(){
    ...
  24. The PCB is expensive and quite large (the lcd is...

    The PCB is expensive and quite large (the lcd is just a small part of it). They haven't arrived yet, but I'm not expecting to make another revision for a while until this one is fully tested....
  25. Unfortunately, I've made a pcb that doesn't have...

    Unfortunately, I've made a pcb that doesn't have the right connections. The 8 pins are all split between 4 ports so I'm assuming it probably wouldn't be any faster than the method I'm using currently.
  26. ok then. Thanks.

    ok then. Thanks.
  27. thanks. Perhaps I wasn't clear enough on my...

    thanks.
    Perhaps I wasn't clear enough on my issue.
    From what I see the UTFT library uses the B and D ports of the Teensy. I am unable to connect the lcd to any of these ports, but instead have...
  28. ILI9341 Parallel without using direct GPIO manipulation

    Hi,

    I've spent a while modifying the Adafruit_TFTLCD library to get the ILI9341 breakout board working with the T3.1.

    Currently, it runs very slow (at a similar speed to the speed of the Due in...
  29. Replies
    90
    Views
    91,256

    Thanks TLB. fdavies, 4 20KHz encoders without...

    Thanks TLB.

    fdavies, 4 20KHz encoders without hardware is impressive.
    Do you think it'll still work at several hundred Hz if you implemented the Teensy as an SPI slave and received commands for...
  30. Replies
    90
    Views
    91,256

    Lastly, the pins will work with 5v right?

    Lastly, the pins will work with 5v right?
  31. Replies
    90
    Views
    91,256

    Hi TLB, For 4x count mode, 4 counts are made...

    Hi TLB,

    For 4x count mode, 4 counts are made per pulse (low, rising, high, falling)
    For 2x count mode, 2 counts are made per pulse (low, high)
    For 1x count mdoe, 1 count is made per pulse (just...
  32. Replies
    90
    Views
    91,256

    Forgot to ask. Which type of count mode does the...

    Forgot to ask. Which type of count mode does the library support by default (I don't mind but it's good to know)?
  33. Replies
    51
    Views
    32,607

    I'm confused now, I need the cs low at all times?...

    I'm confused now, I need the cs low at all times? I have a multi-slave configuration in which I've got two teensy 3.1s as slaves, and some other spi devices.
  34. Replies
    66
    Views
    45,271

    In the new SPI library in 1.20, is it possible to...

    In the new SPI library in 1.20, is it possible to change


    #elif defined(__arm__) && defined(TEENSYDUINO)

    to this?


    #elif defined(__arm__) && defined(CORE_TEENSY)
  35. Replies
    51
    Views
    32,607

    When you say it's good to do a small delay before...

    When you say it's good to do a small delay before trying to "pop" any data received, is this on the slave?

    Thanks for your help.
  36. Replies
    51
    Views
    32,607

    Sorry. Worded my question wrong. Is it possible...

    Sorry. Worded my question wrong.
    Is it possible to say send 1 byte to the slave, and then receive 4 bytes from the slave (i.e. the number of bytes received is unequal to the number of bytes sent).
  37. Replies
    51
    Views
    32,607

    Hi, Regarding the SPI slave rxtx8() and...

    Hi,

    Regarding the SPI slave rxtx8() and rxtx16(), is it possible to send and receive data of different lengths using the current library?

    thanks,
    Brian
  38. Replies
    51
    Views
    32,607

    Thanks! I've only managed to get it compiling...

    Thanks!

    I've only managed to get it compiling (by changing the things John mentioned about).
  39. Replies
    51
    Views
    32,607

    Has anyone tested this with the Teensy 3.1?

    Has anyone tested this with the Teensy 3.1?
  40. Replies
    90
    Views
    91,256

    Just to confirm: Encoder X is connected to...

    Just to confirm:
    Encoder X is connected to digital pins 3/4,
    Encoder Y is connected to digital pins 32/25?

    The following is from QuadDecode.h


    * HARDWARE DETAILS
    *
    * ENCXA 3 PTA12 ...
  41. Replies
    90
    Views
    91,256

    I don't think the index channel is actually...

    I don't think the index channel is actually useful to me, as I only need velocity.

    thanks,
    Brian
  42. Replies
    90
    Views
    91,256

    One last question. I'm assuming the library...

    One last question. I'm assuming the library doesn't support the index channel (I) from scanning through the code. Does the chip not support this?

    Brian
  43. Replies
    90
    Views
    91,256

    Thanks. Hopefully one of the methods will work,...

    Thanks. Hopefully one of the methods will work, the preferable being the second option (third channel by direct sampling).

    Brian
  44. Thanks guys. Unfortunately, having more Teensies...

    Thanks guys. Unfortunately, having more Teensies is not really an option, as the current robot already has 4 Teensy 3.1s, each dedicated to their own specific tasks that actually require quite a lot...
  45. Replies
    90
    Views
    91,256

    Hi, I've been looking for ways to decode 3...

    Hi,

    I've been looking for ways to decode 3 quadrature encoders with just 1 teensy 3.1, and I've been pointed to this topic.

    It seems like the MK20DX256/MK20DX128 both have
    "Two 2-channel...
  46. Thanks. Perhaps I should more clearly say what...

    Thanks. Perhaps I should more clearly say what I'm trying to do.

    This year, I've got an 3 wheeled omnidirectional robot that runs ridiculously fast with 14W motors. There were issues with the...
  47. Teensy 3.1 Quadrature Encoder Speed with Multiple Encoders

    Hi all,

    I need to be able to control the speeds (exactly) of 3 motors running at 12400rpm or 207 rotations per second. For this, I'm hoping to work with encoders that have 256 counts per...
Results 1 to 47 of 47