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

Search:

Type: Posts; User: Nominal Animal

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. If your variables are floats or doubles, normal...

    If your variables are floats or doubles, normal operations (+ - * /) work as expected, remembering that floating-point values are not always exact. (For example, 0.1 cannot usually be represented...
  2. I only meant that I misremembered the limit.h...

    I only meant that I misremembered the limit.h differences between POSIX and C. (C++, which Arduino environment uses, delegates the definition to C standards.)
    I also mostly ignore C11 and rely on...
  3. True. (I normally work with POSIX, which is...

    True.

    (I normally work with POSIX, which is slightly stricter than standard C, and does limit INT_MIN to -2147483647 or smaller, and INT_MAX to 2147483647 or larger, essentially requiring 32-bit...
  4. Quite true! Thanks for pointing out the error,...

    Quite true! Thanks for pointing out the error, luni. (Edit time window closed, can't fix :().


    Some further detail, to atone for my error, for anyone working with non-integer numeric data:

    In...
  5. When you have c = a / b : If both a and b are...

    When you have c = a / b :
    If both a and b are integer types, c is the result truncated (rounded towards zero) to the nearest integer, even if c is a float or a double.
    If a or b is a float, and...
  6. Replies
    4
    Views
    118

    What I would do, is extend multistepper to...

    What I would do, is extend multistepper to support a global volatile flag, that is initialized to zero in the user init() function, and set in the interrupt function.

    Necessary changes to...
  7. Change the second word on the second line, map,...

    Change the second word on the second line, map, to say my_map, then copy-paste all of it to your Arduino source file, before the code that uses it (so, before getAnalogData function). In your own...
  8. It is not the trackball I would worry about for...

    It is not the trackball I would worry about for shorts -- it is likely just a couple of photointerruptors (ie. LEDs and phototransistors) with a disk with holes or windows rotating in between, so it...
  9. This looks very similar to standard arcade...

    This looks very similar to standard arcade joystics people use with Teensies,
    https://cdn-shop.adafruit.com/1200x900/480-01.jpg
    The only difference is that the newer arcade joystics use...
  10. The Arduino map() is not optimal; see this post...

    The Arduino map() is not optimal; see this post of mine. In particular, the integer version does not return the rounded values of the floating-point version; mine does.

    Let's reconstruct the...
  11. Just in the hopes that this is useful, extracted...

    Just in the hopes that this is useful, extracted from the datasheet manitou linked to:

    The ADS8861 is a 10-pin chip, an 16-bit 1 MSPS ADC:
              ┌──────┐
          REF │ 1 10 │ DVDD
         AVDD │...
  12. Replies
    3
    Views
    110

    I have not yet seen two Teensies with the same...

    I have not yet seen two Teensies with the same serial number, and I do believe they are assigned different serial numbers by the boot loader.

    As an example, the two Teensy 3.2 that I have lying...
  13. Replies
    3
    Views
    110

    In Linux, the joysticks get assigned in the order...

    In Linux, the joysticks get assigned in the order you plug them in.

    If both joysticks are connected when the computer boots or restarts, I believe the order is random.

    udev does create...
  14. Fully agreed, JBeale. I alluded to that in the...

    Fully agreed, JBeale. I alluded to that in the second-to-last paragraph.

    Teensy 4.0 contains a hardware entropy source, TPRNG, that might suffice; but personally, I'd like more than one entropy...
  15. I also recommend public key cryptography for...

    I also recommend public key cryptography for this, just like Paul above.

    However, to combat against replay attacks, you'll want the microcontroller to generate a random number, to which the host...
  16. Joebobsicle over at EEVblog forums...

    Joebobsicle over at EEVblog forums mentioned that on STM32 H7, invalidating (better name than deleting, IMHO) the caches for the buffers to work, only works if they're aligned to 32 bytes.

    Maybe...
  17. Replies
    16
    Views
    765

    Thanks. I don't have a 4.0 yet, but will do that...

    Thanks. I don't have a 4.0 yet, but will do that when I get one.
  18. Replies
    16
    Views
    765

    teensy_loader_cli and Teensy 4.0?

    Will teensy_loader_cli get support for Teensy 4.0?
  19. Replies
    161
    Views
    12,002

    What I'm thinking of, is a controller for 3D...

    What I'm thinking of, is a controller for 3D printers using a carrier board with TMC2208 support, and proper isolation between motor ground and logic ground, using e.g. Si86xx isolators. (Lack of...
  20. No, you should use the 3.3V pin for the pullups. ...

    No, you should use the 3.3V pin for the pullups. Smaller resistance yields stronger pullups, because the current is higher then.

    What kind of cable/wire are you using for the I2C? Personally,...
  21. Replies
    1
    Views
    81

    Let's say you use 10 kOhm linear potentiometers. ...

    Let's say you use 10 kOhm linear potentiometers. You connect one end to +3.3V, the wiper to your input, and the other end to GND, to use the potentiometer in the voltage divider configuration. ...
  22. Replies
    6
    Views
    240

    Note that 17 rows of 30 leds each plus two leds...

    Note that 17 rows of 30 leds each plus two leds is 1730+2 = 510+2 = 512 = 29 leds, which looks suspiciously like a limitation somewhere.
  23. When you get it working like you want, consider...

    When you get it working like you want, consider posting a thread about the issues/gotchas and in general, the experience, you had. You know, to pass it forwards, and help anyone else possibly...
  24. I once lifted a resistive touchscreen pad on a...

    I once lifted a resistive touchscreen pad on a single-board computer, before they became common.. Multi-layer board, couldn't fix it. Expensive error. After that, I became much more careful. It is...
  25. That's why I got a cheap but...

    That's why I got a cheap but temperature-controlled cheap soldering station, and use flux, leaded solder (60/40 or 63/37), acetone or IPA, and a tooth brush. To borrow a saying from welders about...
  26. In that case, use setBgColor(back);...

    In that case, use


    setBgColor(back);
    setColor(fore);
    setMode('C');
    drawStr(x,y,text);

    where back and fore are the R3G3B2 colors (0 to 255, inclusive), x and y are the coordinates, and text...
  27. (I definitely agree, the manual is pretty bad.) ...

    (I definitely agree, the manual is pretty bad.)

    Yes, Red R and Green G are between 0 and 7, and Blue B is between 0 and 3, inclusive. The color value is B+4*G+32*R.

    If r, g, and b are all...
  28. You guys are mean. I did link to digole displays...

    You guys are mean. I did link to digole displays in post #8... snif. :confused:

    Kidding aside, doesn't setting the background color ("BGC" + color) and foreground color ("SC" + color) using "C"...
  29. Layout and dimensions of Teensy 3.2 pins and pads

    I didn't find the dimensions and positions of the Teensy 3.2 pads (on the back side), so I drew one up in Inkscape: https://www.nominal-animal.net/answers/teensy-3.2-layout.inkscape.svg...
  30. Very interesting; OSHPark does say that they...

    Very interesting; OSHPark does say that they basically do what I said I could do myself, simply route out the cutout afterwards, and one has to deburr and test them oneself. Not bad, works for me!
    ...
  31. It's that Odroid HC1 carrier board of mine. ...

    It's that Odroid HC1 carrier board of mine. Flux, leaded solder, acetone, and a toothbrush make me the solderer I ain't, to borrow a saying from welders.

    That is, I can do an one-off with pins...
  32. Replies
    15
    Views
    285

    You do not need the #include, because Teensyduino...

    You do not need the #include, because Teensyduino provides the digitalWriteFast(). Whenever you select one of the Teensy boards in Arduino, Teensyduino gets automagically included. Essentially,...
  33. Teensy 3.2: soldering carrier board directly to Teensy using vias

    Has anybody created a Teensy 3.2/3.5/3.6 carrier board that is soldered directly to the Teensy using pads with plated through-holes for soldering?

    I have a larger board I embed Teensy 3.2 onto. ...
  34. Replies
    15
    Views
    285

    (I keep forgetting that this forum does not have ...

    (I keep forgetting that this forum does not have ... , and I must use ... instead.)

    Teensyduino supports digitalWriteFast() for all Teensies, including LC.

    The reason my example code uses...
  35. Replies
    15
    Views
    285

    Fully agreed with Paul. That said, the direct...

    Fully agreed with Paul.

    That said, the direct port interface is sometimes useful with displays and ADCs and such, that have parallel interfaces.

    The way I handle portability issues, is using...
  36. Replies
    14
    Views
    358

    If one wants to get into the details of human...

    If one wants to get into the details of human perception, look at psychovisual and psychoacoustic modeling. Don't let the psycho scare you, is actually just modeling how humans perceive things, and...
  37. Replies
    15
    Views
    285

    No, the pins are correct. After you have...

    No, the pins are correct. After you have configured them as outputs on the LC, assign a value to GPIOC_PDOR to set them. If you have configured them as inputs, read them using GPIOC_PDIR. If you...
  38. Replies
    14
    Views
    358

    You might also consider the fact that "real time"...

    You might also consider the fact that "real time" display of data does not mean 0ms latency, because a typical display only shows a new frame every 16.667ms (at 60 Hz frame rate).
    Even audio has a...
  39. Because reasons, I whipped a 51mm 51mm board...

    Because reasons, I whipped a 51mm 51mm board for up to 8 buttons, using only through-hole components, here, so one can easily order both the boards and the components ($2 + shipping for five boards...
  40. I whipped up a possible board, here...

    I whipped up a possible board, here; 27mm by 23mm. It is completely untested, so no guarantees! It might break things.

    It uses one Si8660-BA-IS1 chip, two 100nF (0.1uF) ceramic capacitors in 0805...
  41. Another option would be to put the buttons on a...

    Another option would be to put the buttons on a separate isolated circuit instead:
    17006

    The six buttons have something like 10k current-limiting resistors (on the left), and something like 100k...
  42. Replies
    6
    Views
    313

    And it is actually arm-none-eabi toolchain, which...

    And it is actually arm-none-eabi toolchain, which is the freestanding (not under any OS) version; arm-gnuabi is the soft-floating-point ARM under an OS with GNU C library, and arm-gnuabihf is for ARM...
  43. Replies
    15
    Views
    285

    They're shown in the schematics...

    They're shown in the schematics.

    On Teensy 3.2, you'll probably want to use port D (pins 2, A0, 7, 8, 6, A6, A7, 5) or port C (pins A1, A8, A9, 9, 10, 13/LED, 12, 28, 27, 29, 30).
  44. The main point was the hub. I don't recall the...

    The main point was the hub. I don't recall the exact details, but it looks like some USB 3 ports have issues with USB 2 devices; with the easiest workaround being using an USB 2 hub in between.

    I...
  45. You might need an USB 2 hub in between. I use...

    You might need an USB 2 hub in between.

    I use a cable hub, one that has one standard USB male on one end, and mini-B (old Teensies) and micro-B (new Teensies, cellphones etc.) and a couple of...
  46. Replies
    5
    Views
    193

    Is at least one of the computers a laptop running...

    Is at least one of the computers a laptop running off a battery?

    You see, it is very easy for a computers connected to grounded outlets to have a slightly different ground potentials. When you...
  47. Replies
    12
    Views
    420

    You can connect Teensy 3.2 directly to an USB...

    You can connect Teensy 3.2 directly to an USB cable using the pads on the bottom side:
    https://www.pjrc.com/teensy/card7b_rev1.png
    This is what I suggested a few weeks ago in this post to someone...
  48. Replies
    24
    Views
    924

    Right, so the display does send a report itself...

    Right, so the display does send a report itself as well. A5 5A 06 83 FF CF 01 11 11 can be written as A5 5A 06: 83: FF CF: 01: 11 11, meaning you get a six-byte payload, memory receive (83) for that...
  49. Replies
    24
    Views
    924

    No. The idea is that you have a loop that...

    No.

    The idea is that you have a loop that checks the various sensors, and also calls check_display_response(). That function checks if any characters are received (buffered) from the device, and...
  50. Replies
    24
    Views
    924

    Yes; counting happens without processor...

    Yes; counting happens without processor intervention.


    Sounds good to me -- although I haven't worked with combustion engines, and you might wish to keep the transistor to ensure it feeds enough...
Results 1 to 50 of 133
Page 1 of 3 1 2 3