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

Search:

Type: Posts; User: GremlinWrangler

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. You can probably add a deadzone in the computer...

    You can probably add a deadzone in the computer settings and or the game itself, but otherwise have a look at

    // Record "resting values" min and max
    #define L_x_min_rest 488
    #define L_x_max_rest...
  2. Replies
    2
    Views
    151

    The main CPU is not where the bootloader code...

    The main CPU is not where the bootloader code resides, it is in the separate bootloader IC available: https://www.pjrc.com/store/ic_mkl02.html

    If doing a custom design, see notes at the bottom of...
  3. In answer to your follow up question, you do not...

    In answer to your follow up question, you do not need a bootloader once your device is programed, though it does complicate things if you want to support in the field firmware updates.
  4. With the encoders, as per TGlev's post, the...

    With the encoders, as per TGlev's post, the encoder library does most of the work and in your case it becomes really really simple since you are just firing once for any amount of rotation*
    Read the...
  5. There are several ways to use ellapsedmillis to...

    There are several ways to use ellapsedmillis to handle the buttons. One is to have an ellapsedmillis for every button, if button triggered, set the output and zero the timer and later cycle through...
  6. Replies
    2
    Views
    104

    First up, note that if this was trivial to do it...

    First up, note that if this was trivial to do it would be an attack vector. At one stage you could do this with USB storage and an autoplay that sent internet explorer off somewhere but would be...
  7. The general idea would be using ...

    The general idea would be using
    https://www.pjrc.com/teensy/td_keyboard.html
    And probably
    https://www.pjrc.com/teensy/td_libs_Keypad.html
    And if you want a joystick you can make it be a combined...
  8. Replies
    5
    Views
    264

    Do not have any advice for nRf but looking at...

    Do not have any advice for nRf but looking at libraries:
    Check if library focus/summary is what you are after (you probably don't need a mesh capable library in this case)
    Check how recently they...
  9. Replies
    1
    Views
    88

    The code is used SPI...

    The code is used SPI to control the radio, so nothing directly preventing it from working. The wiring does not look like classic SPI hardware connections and it packages a software SPI library so it...
  10. Replies
    11
    Views
    390

    This is the Teensy 3 bootloader, so not what you...

    This is the Teensy 3 bootloader, so not what you want to buy
    https://www.pjrc.com/store/ic_mkl02.html
    But the links down the bottom includes a bunch of threads on other people's ventures that would...
  11. Cannot speak for PJRC and the availability of...

    Cannot speak for PJRC and the availability of large quantities of T4s but see
    https://www.pjrc.com/store/ic_mkl02.html
    Which is for the earlier T3 series but has links to resources for those...
  12. A Teensy can chew through arrays of chars pretty...

    A Teensy can chew through arrays of chars pretty reliably as long as you can define max lengths at compile time, which in this case sounds like you can since you know the max length of a line and...
  13. Replies
    14
    Views
    538

    The 3.3V from the audio adapter is odd, since it...

    The 3.3V from the audio adapter is odd, since it does not have a 3.3V regulator of it's own. For linear regulators it is normally ok to have them in parallel but given all the signs point to a stray...
  14. Replies
    14
    Views
    538

    Having re-read the schematic, is there any...

    Having re-read the schematic, is there any possibility at all that that 5V in the IDE connector can get shorted into a Teensy signal by cables flexing or moving etc, or can it come into contact with...
  15. Replies
    14
    Views
    538

    The pull up resistors should be fine as long as...

    The pull up resistors should be fine as long as they are to 3.3V or close to it, having too many of them can cause strange I2C behavior but that is not the current problem unless you have somehow put...
  16. Replies
    5
    Views
    255

    Are you working from...

    Are you working from
    https://www.pjrc.com/teensy/td_joystick.html
    and file->examples>teensy->usbjoystick->complete?
    The code in that example just spins the hat switch through 360 without further...
  17. Replies
    14
    Views
    538

    As a place to start, see...

    As a place to start, see https://www.pjrc.com/teensy/schematic.html
    In particular the layout at the top left corner where there is the 500ma poly fuse and the regulator.
    This is not a hard cutoff...
  18. The main zip file is in the first post, but looks...

    The main zip file is in the first post, but looks like some updates further down may be needed to get things working on current Arduino. Looking at the code looks like the key bit for pins are are:
    ...
  19. Replies
    1
    Views
    213

    That is pretty much the intended purpose of the...

    That is pretty much the intended purpose of the bootloader button.

    It forces the CPU into reset and prepares it for a new software download. This is specifically designed to overcome any user code...
  20. It should only have two pairs of {} . Your loop...

    It should only have two pairs of {} . Your loop has only one if statement in it but ends with four } rather than two it actually needs.

    To make this more useful in your larger code suggest using...
  21. Freqmeasure works in CPU cycles so direct porting...

    Freqmeasure works in CPU cycles so direct porting from Uno code may have trouble.

    According to the docs

    FreqMeasure.countToFrequency(count);

    You should get a result in consistent hz,...
  22. There are several options for measuring, and...

    There are several options for measuring, and freqmeasure should be the right option
    https://www.pjrc.com/teensy/td_libs_FreqMeasure.html#compare
    for what you are doing.

    It is hard to tell since...
  23. With the different button behaviors, does how the...

    With the different button behaviors, does how the buttons is pressed change anything? It is possible the button spring is ringing or resonating several times, where a different pressure/speed of...
  24. Replies
    3
    Views
    274

    The basic tutorial on the linked page should work...

    The basic tutorial on the linked page should work as written. Things the LC does not do:

    Has fewer pins
    Does not have the hardware for the audio library or OctoWS2811 mulit LED drive and some of...
  25. The main choke point in pretty pictures would be...

    The main choke point in pretty pictures would be the display rather than the teensy because of the time taken to send one screen worth of pixels is fixed by the display interface. If you can live...
  26. Replies
    4
    Views
    299

    Per the 250mA max note on the reference card...

    Per the 250mA max note on the reference card 100mA for the SD card is not a problem unless you are also powering other things that eat into that capacity. Be aware that the standard SD card library...
  27. Replies
    4
    Views
    299

    Yes, most SD cards run on 3.3V so that would be...

    Yes, most SD cards run on 3.3V so that would be the expected wiring method. One thing to watch for is that writing flash memory is quite power hungry, possibly up to 100mA so if you are doing high...
  28. You do not normally need resistors, since you...

    You do not normally need resistors, since you would use the internal pullups on the pins and not have a VCC supply at all. If you do have a VCC to the encoder then you may have a situation where one...
  29. Replies
    19
    Views
    1,191

    There is not an easy way to do this. The basic...

    There is not an easy way to do this. The basic idea is to use the USB serial port and send messages either as single letters or more structured commands from your program. The basic proof of concept...
  30. The simple option is to delay(50) or similar and...

    The simple option is to delay(50) or similar and then release, short delay before checking if digital read is still low. Exact timings will depend on the USB bus handler at your computer. This will...
  31. Replies
    2
    Views
    590

    Is there any particular reason to not use the...

    Is there any particular reason to not use the Teensy optimized audio library?
    https://www.pjrc.com/teensy/td_libs_Audio.html
    Which has an inbuilt FFT.
    If your application wants more specialization...
  32. 1. The 12 sensors should not be a big issue as...

    1. The 12 sensors should not be a big issue as long as you are not trying to get too complex with the flower lighting effects. If you have a teensy already suggest adding the read logic for the other...
  33. There are lots of ways to make things permanent,...

    There are lots of ways to make things permanent, but given you have a working breadboard layout something like these will be relatively straight forward
    https://www.adafruit.com/product/591
    Proto...
  34. If you have nothing higher than give volts best...

    If you have nothing higher than give volts best option is probably a 5V battery bank. They will not be optimal but they come in many sizes/shapes and bypass challenges over getting all the parts to...
  35. Replies
    174
    Views
    179,328

    4.0 is very new, unsure how complete USB joystick...

    4.0 is very new, unsure how complete USB joystick support is. It also has ADC hardware that seems to take more effort to get good results out of. You certainly do not need the performance for this,...
  36. Replies
    1
    Views
    210

    page 31 of...

    page 31 of https://www.pjrc.com/teensy/K64P144M120SF5.pdf lists the voltage range as 1.71 to 3.6V, matching the 3.3-2.7 of a lithium coin cell. So yes some form of regulation is going to be needed...
  37. That should be how it all works, the bias...

    That should be how it all works, the bias voltage/reference may end up being half way through your range. Depends on internals of the amp and how it is powered. If you are chasing precision you need...
  38. To offset your voltage you can use where your...

    To offset your voltage you can use where your would use a resistive divider on the non inverting input to set your range midpoint and the ratio of the input resistor and gain resistor to adjust gain...
  39. Replies
    4
    Views
    359

    Sorry, had missed the part about this being a...

    Sorry, had missed the part about this being a hard fault that persisted after resets, which is why my suggestion about overflows. Not having any ideas on how a pulsed input could hard fault after X...
  40. Replies
    4
    Views
    359

    Is it possible that the under the hood changes...

    Is it possible that the under the hood changes around 8bit to 32bit and higher clock rates mean that you can overflow usEarliestPossibleWindTurn?
    if (usNow > usEarliestPossibleWindTurn)
  41. To get a feel for what a solenoid can do, have a...

    To get a feel for what a solenoid can do, have a look at a relays. This https://www.sparkfun.com/products/100 will draw 10mA at 5V (right at it's lower limit) and pull a very light arm a mm or so....
  42. Replies
    3
    Views
    216

    Basic option is probably to leave the USB data...

    Basic option is probably to leave the USB data lines connected through, and just use a relay or FET to control the 5V power. One option would be a row of USB extension cables (or OEM cables for that...
  43. Replies
    179
    Views
    20,371

    For the things I do, a native ethernet option...

    For the things I do, a native ethernet option would be interesting for those cases where you just want a networked device that does one thing well without needing to secure a full linux install....
  44. The first suggestion before spending money with...

    The first suggestion before spending money with this would be to download and install arduino and Teensyduino https://www.pjrc.com/teensy/td_download.html, have a look at...
  45. The deeper question here is what else is being...

    The deeper question here is what else is being powered with the Teensies and Pi. If all you have is the assorted T2+Pi running along in a steady state most power supplies will produce the target...
  46. Replies
    5
    Views
    303

    Unfortunately it is pretty normal for encoders to...

    Unfortunately it is pretty normal for encoders to have more than one step per click, no idea why. And just for extra challenge you may find that it is not an even four per click either.

    Edit: data...
  47. Replies
    5
    Views
    303

    Pin 13 has the LED, suggest using another pin as...

    Pin 13 has the LED, suggest using another pin as that may be complicating things.

    If you do not have pullups set that can cause problems, but believe the library does that.

    If problems are...
  48. Replies
    9
    Views
    1,194

    I am not PJRC but with the end of life Question,...

    I am not PJRC but with the end of life Question, Paul still has kept the T2 models in production alongside the T3 series, and the T3.2 fulfills a different need than the T4.0. from posts elsewhere...
  49. There are several layers here and not an expert...

    There are several layers here and not an expert on the features listed but:

    As configured by default there is no way to use the USB port to extract code unless you added software to do so in the...
  50. Clamping a 5V supply when 5.5V is Vmax is tricky...

    Clamping a 5V supply when 5.5V is Vmax is tricky since most basic options will need 20-50% over to do anything.

    Along with having a fuse or circuit breaker on the power supply sized as close as...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4