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.00 seconds.

  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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 │...
  6. Replies
    3
    Views
    81

    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...
  7. Replies
    3
    Views
    81

    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...
  8. 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...
  9. 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...
  10. 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...
  11. Replies
    13
    Views
    495

    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.
  12. Replies
    13
    Views
    495

    teensy_loader_cli and Teensy 4.0?

    Will teensy_loader_cli get support for Teensy 4.0?
  13. Replies
    161
    Views
    10,842

    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...
  14. 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,...
  15. Replies
    1
    Views
    64

    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. ...
  16. Replies
    6
    Views
    208

    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.
  17. 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...
  18. 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...
  19. 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...
  20. 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...
  21. (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...
  22. 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"...
  23. 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...
  24. 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!
    ...
  25. 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...
  26. Replies
    15
    Views
    258

    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,...
  27. 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. ...
  28. Replies
    15
    Views
    258

    (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...
  29. Replies
    15
    Views
    258

    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...
  30. Replies
    14
    Views
    294

    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...
  31. Replies
    15
    Views
    258

    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...
  32. Replies
    14
    Views
    294

    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...
  33. 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...
  34. 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...
  35. 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...
  36. Replies
    6
    Views
    256

    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...
  37. Replies
    15
    Views
    258

    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).
  38. 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...
  39. 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...
  40. Replies
    5
    Views
    163

    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...
  41. Replies
    12
    Views
    317

    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...
  42. Replies
    24
    Views
    856

    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...
  43. Replies
    24
    Views
    856

    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...
  44. Replies
    24
    Views
    856

    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...
  45. Replies
    3
    Views
    170

    I'd get an USB cable of suitable length with a...

    I'd get an USB cable of suitable length with a standard USB male on one end, and cut off the other end.

    I'd also get an USB female breakout board, like this one.

    Connect the USB cable to the...
  46. Replies
    24
    Views
    856

    I assume you have a Hall effect sensor or...

    I assume you have a Hall effect sensor or similar, that produces one or more pulses per revolution? (I haven't worked with combustion engines myself, only with electric motors.) If you feed that...
  47. The 7-pin display modules do not need "just" SPI,...

    The 7-pin display modules do not need "just" SPI, but also CS (Chip Select), D/C (Data or Command), Reset, and optionally a PWM pin for controlling the backlight. As KurtE mentioned, this should...
  48. Replies
    24
    Views
    856

    Nice! I still think the documentation is ......

    Nice! I still think the documentation is ... poor, but perhaps the device is workable after all.


    According to the user guide, only commands 0x81 (Read register) and 0x83 (Read variable memory)...
  49. Replies
    24
    Views
    856

    I wonder if the manufacturer forgot to mention...

    I wonder if the manufacturer forgot to mention that updates are only visible after an undocumented end-of-frame sequence, CC 33 C3 3C, is sent. The user manual does say on page 9, explicitly, that...
  50. Replies
    24
    Views
    856

    Is this...

    Is this the manual for your product?

    On page 10, it shows Screen Parameter Configuration. Since your control messages do not have a CRC check (would be ninth byte in the above code), you must...
Results 1 to 50 of 127
Page 1 of 3 1 2 3