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

Search:

Type: Posts; User: ploveday

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,389

    This wouldn't be Teensy specific... You're...

    This wouldn't be Teensy specific... You're assigning a GraphicTest object to an App object. It is likely using some default (ie shallow copy) assignment operator or copy constructor, and what you...
  2. Replies
    3
    Views
    2,873

    The Teensy 3.0 is a 3.3V device, and its inputs...

    The Teensy 3.0 is a 3.3V device, and its inputs are not 5V tolerant, so make sure you're not using anything 5V without appropriate precautions.

    As for the analogue in, well you can't exceed 3.3V,...
  3. I don't know if this is true for their SSD1306...

    I don't know if this is true for their SSD1306 library or not, but with the Adafruit ST7735 library, they offer two constructors:


    Adafruit_ST7735(uint8_t CS, uint8_t RS, uint8_t SID, uint8_t...
  4. Replies
    57
    Views
    33,103

    Change the name of your len define to something...

    Change the name of your len define to something less generic, like MY_LEN or something.

    It's conflicting with something in the headers and causing unexpected errors.

    Or actually, conflicting...
  5. Replies
    12
    Views
    3,623

    You do want to fade them all on and off at once?...

    You do want to fade them all on and off at once?

    You'd probably use a (power) MOSFET to drive the LEDs, via a PWM output on the Teensy.

    Basically drive the MOSFET from a PWM out of Teensy, via...
  6. Replies
    51
    Views
    14,698

    If you do not have external pullups on your...

    If you do not have external pullups on your (button?) inputs, then you should definitely be using INPUT_PULLUP.

    Though if you're running it over long cables, external stronger pullups may be...
  7. Sounds good. I quite often see spam messages...

    Sounds good. I quite often see spam messages prior to you guys getting to them (likely because of Oz/US timezone differences) so anything that allowed users with a track record to have a more active...
  8. Agreed. It's also possible to matrix analogue...

    Agreed.

    It's also possible to matrix analogue channels of Pots via a column of Vcc outputs and a Row of Gnd sinks, with ADC inputs per row. It's a lot like one would multiplex a digital...
  9. Do you need to have multiple buttons pushed at...

    Do you need to have multiple buttons pushed at once?

    It would certainly be possible to read the buttons in a 16x16 matrix.

    It might also be possible to read the Pots in a similar way; but it...
  10. ... or read the datasheet.

    ... or read the datasheet.
  11. It's been a while, so I can't recall.. but does...

    It's been a while, so I can't recall.. but does registration here even have a captcha?
  12. Yes of course you can, you'll get successive...

    Yes of course you can, you'll get successive interrupts for each key held during a full matrix scan, and it will continue scanning after you read out the key row/col.

    I don't think there is a...
  13. Replies
    50
    Views
    12,186

    What VIN are you running? If it's 5V, I would...

    What VIN are you running? If it's 5V, I would suggest you do not connect your MIDI Out resistors to them. Teensy 3's pins are not 5V tolerant. Make sure they are connected to 3.3V and use 47ohm.
  14. Replies
    57
    Views
    33,103

    My apologies, that one is missing from the...

    My apologies, that one is missing from the mk20dx128.h file it seems, I forgot I had added my own define for it.


    #define SPI_SR_TXCTR 0x0000f000

    - Peter
  15. Replies
    24
    Views
    8,872

    Teensy 3.0 (well, the K20 anyway) has this...

    Teensy 3.0 (well, the K20 anyway) has this facility - in fact you can enable half duplex. This is something I'm using in my project, using LTC1480 differential half-duplex transceiver for 3.3V...
  16. Replies
    57
    Views
    33,103

    I'm sure there will ultimately be a way to do it...

    I'm sure there will ultimately be a way to do it via a library, but in the meantime you can do it manually without too much trouble. The biggest issue may be interoperability with other SPI...
  17. Replies
    21
    Views
    13,714

    MQX would be one candidate. I've not used it,...

    MQX would be one candidate. I've not used it, but it should certainly support K20 low power modes, as it's specifically designed for Kinetis CPUs. There's also MQX-Lite if you're looking for a...
  18. Me too. Any chance you can update your link? ...

    Me too.

    Any chance you can update your link? I need multiple USB MIDI ports for my project also.

    - Peter
  19. I'd be surprised if you can reliably detect...

    I'd be surprised if you can reliably detect (momentary) motion between detents, but keep us posted.

    Alternatively, what about applying some sort of velocity-based non linearity, like...
  20. Replies
    2
    Views
    2,598

    My adaptation of the Adafruit ST7735 library...

    My adaptation of the Adafruit ST7735 library already uses hardware CS in a limited fashion.

    I did have it using hardware CS for the actual CS of the LCD, but that didn't work with SdFat, so I...
  21. Replies
    578
    Views
    241,727

    Thanks for this. I'm using I2C to 'network'...

    Thanks for this.

    I'm using I2C to 'network' two Teensy3s in my project, and I have been manually changing the pins and speed, but this will be much cleaner.

    Async transfers will be nice, also.
  22. Replies
    57
    Views
    33,103

    Indeed. I'm seeing around 20Mbit/s pixel fill...

    Indeed.

    I'm seeing around 20Mbit/s pixel fill (write) speed to my LCD via 24MHz SPI. I would assume SD card would be similar, within limitations of the card.

    - Peter
  23. Replies
    18
    Views
    5,437

    If you want to eliminate issues with the library...

    If you want to eliminate issues with the library for initial testing, you could always just send some MIDI events to the serial port directly, which may help isolate whether this is a hardware of...
  24. Replies
    18
    Views
    5,437

    No, not at all. Just make sure you feed that...

    No, not at all.

    Just make sure you feed that into the Vin on the Teensy, it will regulate it down to 3.3V, and also make sure you don't use the 4.7V directly for anything interfacing to the Teensy...
  25. Sure. But that's simply not true of the Cypress...

    Sure. But that's simply not true of the Cypress stuff anyway. Free C++ compiler provided, free libraries provided, etc.

    Anyway, the last thing I'm trying to do is argue against Teensy 3... it...
  26. Absolutely.

    Absolutely.
  27. Sure they have. The kickstarter orders have...

    Sure they have. The kickstarter orders have shipped, or are in the process of shipping. Still on pre-order for follow up orders, though, until they clear.

    Why are you only considering freescale...
  28. Talking of interesting microcontroller products,...

    Talking of interesting microcontroller products, this looks pretty cool:

    http://freesoc.net/

    I find the programmable peripheral and on-chip analogue capabilities of the Cypress stuff...
  29. One thing to keep in mind when testing the USB...

    One thing to keep in mind when testing the USB cable, is that it is possible it will work with a data connection to another device even if it is not providing power (which is what the Teensy3...
  30. Replies
    57
    Views
    33,103

    Be a little cautious of some of the code in SdFat...

    Be a little cautious of some of the code in SdFat though; it does some nasty things, like setting MCR explicitly rather than changing bits it needs and leaving the rest alone.

    The biggest issue...
  31. In fact you ought be able to power it off a USB...

    In fact you ought be able to power it off a USB charger, eliminate the PC altogether, at least as far as the blink goes.

    Have you tried alternate USB cables? Nine times out of ten this is the...
  32. Replies
    18
    Views
    5,437

    You can fairly easily work out what resistance is...

    You can fairly easily work out what resistance is needed.

    MIDI is a 5mA current loop, with an assumed voltage drop across the opto's LED of 1.7V. The receiving device will also have a 220ohm...
  33. Replies
    18
    Views
    17,404

    Maybe try polling until the FIFO is empty, and...

    Maybe try polling until the FIFO is empty, and then poll TCF (as the transfer will have started).

    Here's what I do:



    void spiwait()
    {
    while ((SPI0_SR & SPI_SR_TXCTR) != 0);
    while...
  34. Replies
    61
    Views
    39,039

    > Also an issue I want to investigate it how to...

    > Also an issue I want to investigate it how to get the linker to *not*
    > link interrupt routines if no other functions from that same file are used.
    > The AVR compiler does this somehow. I just...
  35. Replies
    26
    Views
    15,079

    there's really no need to change, it more or less...

    there's really no need to change, it more or less only worked for me by accident, was a silly bug that should be fixed now. Any pin for the cs will be fine.
  36. Replies
    26
    Views
    15,079

    My apologies, there seems to have been a bug that...

    My apologies, there seems to have been a bug that crept into the second rev that only showed if the CS pin was not a hardware SPI CS. Of course the pin I was testing with was...

    Anyway, here's an...
  37. Replies
    26
    Views
    15,079

    With that code specifying 10,9,8, you would need...

    With that code specifying 10,9,8, you would need to connect the following:

    Teensy3 10 -> LCD TFT_CS
    Teensy3 9 -> LCD O/C
    Teensy3 8 -> LCD RESET
    Teensy3 11 -> LCD MOSI
    Teensy3 13 -> LCD SCK
    ...
  38. Replies
    3
    Views
    2,170

    I think his pull request is sufficient to make it...

    I think his pull request is sufficient to make it compile and work? I'm not sure, but it addresses the virtual destructor and missing pure virtual on DrawPixel.


    On a separate note, I wouldn't...
  39. Replies
    3
    Views
    2,170

    There are some errors in the Adafruit library; it...

    There are some errors in the Adafruit library; it seems the AVR compiler is more forgiving (or just plain wrong, really..)

    See this thread for info about adding in virtual destructor and such: ...
  40. Agreed. There are so many libraries that go and...

    Agreed. There are so many libraries that go and do this kind of thing, it's a real mess. We're basically in the situation of having to use hand-edited versions of other libraries for each project,...
  41. Replies
    61
    Views
    39,039

    The normal way to do this kind of thing is to use...

    The normal way to do this kind of thing is to use the SHGetFolderPath() function (from shell32.dll - #include <shlobj.h> ) to retrieve various paths, as they can change between windows versions, or...
  42. Replies
    13
    Views
    4,128

    ... actually upon thinking about it, it must be...

    ... actually upon thinking about it, it must be the master holding off the clock due to rise time. The slave is only capable of holding the clock low in order to 'stretch' timing, and all the extra...
  43. Replies
    13
    Views
    4,128

    I still had mine hooked up, so I took grabbed...

    I still had mine hooked up, so I took grabbed some scope traces, with 1.5k ext pullups, and with adjacent pin pullups:

    173

    174

    Note it does work for me between the two Teensy3s on...
  44. Replies
    13
    Views
    4,128

    Well, that may be. The freescale data is pretty...

    Well, that may be. The freescale data is pretty vague at times.

    My impression from the data was as follows:

    * In input mode, the pullups (and pulldowns) are available.
    * In output mode,...
  45. Replies
    13
    Views
    4,128

    Well, if you want to use nearby pins you'd...

    Well, if you want to use nearby pins you'd probably need to configure them as inputs with pullup enabled, rather than ODE outputs. Still, the internal pullups are quite weak (22k-50k according to...
  46. Replies
    6
    Views
    5,264

    Because the Teensy3 is not 5V tolerant. Don't...

    Because the Teensy3 is not 5V tolerant. Don't connect 5V logic to its pins.

    Have a look at your reference card, there's a 3.3V out on the RHS, 3rd down, with the USB at the top.

    - Peter
  47. Replies
    13
    Views
    4,128

    It's curious that it works at all without them, I...

    It's curious that it works at all without them, I guess it's something to do with the particular sensor's interface.

    You pretty much have to have pullups for it to work reliably, in any case.
    ...
  48. Replies
    6
    Views
    5,264

    Do you have pullup resistors on your I2C (SCL,...

    Do you have pullup resistors on your I2C (SCL, SDA) pins ?

    If not, you'll need to add them. 1.5k to 3.3V on the Teensy 3 works for me, but the value isn't that critical, within reason.

    - Peter
  49. Replies
    0
    Views
    970

    Parallel 3.3V out

    If I am running two Teensy3s from 5V to Vin, is it safe to connect their 3.3V outputs in parallel for driving misc other logic? I know many regulators can be used like this, but I'm not sure if this...
  50. Replies
    27
    Views
    7,398

    You can't use the internal pullups. Perhaps the...

    You can't use the internal pullups. Perhaps the magnetometer has pullups integrated or something. in any case if you don't put pullups on SCL and SDA, it's not going to (reliably) work.

    - peter
Results 1 to 50 of 71
Page 1 of 2 1 2