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

Search:

Type: Posts; User: Nominal Animal

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

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

    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...
  5. Replies
    2
    Views
    27

    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).
  6. 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...
  7. 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...
  8. Replies
    5
    Views
    87

    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...
  9. Replies
    6
    Views
    88

    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...
  10. Replies
    24
    Views
    667

    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...
  11. Replies
    24
    Views
    667

    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...
  12. Replies
    24
    Views
    667

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

    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...
  14. Replies
    24
    Views
    667

    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...
  15. 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...
  16. Replies
    24
    Views
    667

    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)...
  17. Replies
    24
    Views
    667

    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...
  18. Replies
    24
    Views
    667

    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...
  19. Replies
    24
    Views
    667

    No, they're warnings, not errors. The difference...

    No, they're warnings, not errors. The difference is that a warning is just a warning that something might be an issue, but it does not abort the compilation; an error aborts the compilation.

    In...
  20. Replies
    24
    Views
    667

    The manual snippet only makes sense if the data...

    The manual snippet only makes sense if the data is binary and not ASCII.

    That is, you'll want to use something like


    void setup()
    {
    Serial1.begin(9600);
    delay(1500);
    }
  21. I have used Teensies for exactly this purpose. ...

    I have used Teensies for exactly this purpose.

    I had a friend who had captured the USB transfers to a device (that uses USB serial), with known reason/action behind each transfer, on a Windows...
  22. Replies
    3
    Views
    180

    Of course. The easiest way is to write inline...

    Of course. The easiest way is to write inline assembly.
  23. KurtE: Definitely agreed! I have never used the...

    KurtE: Definitely agreed! I have never used the Saleae code, only sigrok myself; I don't want to exploit Saleae. I even contacted the eBay seller that sold it to me, to suggest sigrok PulseView in...
  24. You can get those Saleae Logic clones off eBay...

    You can get those Saleae Logic clones off eBay for just a few euros/dollars. The hardware itself is basically straight clone of the older Cypress FX2LP devkit.

    I happily use one with sigrok...
  25. Replies
    6
    Views
    308

    The range expansion (+1's) should have the same...

    The range expansion (+1's) should have the same sign as the range itself, i.e.


    template <class T, class A, class B, class C, class D>
    long map(T _x, A _in_min, B _in_max, C _out_min, D...
  26. Replies
    8
    Views
    377

    Remove the pointer increments, and use array...

    Remove the pointer increments, and use array addressing instead. In other words,

    unsigned short c = (p[0] << 14)
    | ((p[1] << 6) & 14336)
    |...
  27. Replies
    0
    Views
    156

    GreatScott! Teensy LC review video

    Youtuber GreatScott! posted a Teensy review video, as one of the "Arduino alternatives" series. Overall, not a bad video; I'd just hoped he'd notice Paul has contributed a lot to the Arduino...
  28. It is always 1; it is only the 'rounding' that...

    It is always 1; it is only the 'rounding' that is affected. Consider the 5-bit to 8-bit scaling case:

    y = 255 x / 31:

    x ║ y │ exact ║ exact ║ approx. error...
  29. You're welcome. I tried to look for the...

    You're welcome.

    I tried to look for the sources, as I do remember seeing this somewhere discussing linear interpolation and bit hacks, but cannot find one right now.
    You can find other similar...
  30. TL;DR: This is well known. Add extra bits by...

    TL;DR: This is well known. Add extra bits by duplicating the existing bits as needed, instead of padding with zero bits. So, abcde2 → abcdeabcdeab2 for 5-to-12-bit conversion, for example.
    ...
  31. Unzipped? The Linux Teensyduino installers are...

    Unzipped? The Linux Teensyduino installers are executables, not zipped.

    I believe

    sudo apt install libexpat1 libfontconfig1 libfreetype6 libgcc1 libpng12-0 libstdc++6 libx11-6 libxau6 libxcb1...
  32. Replies
    18
    Views
    1,931

    Reminds me of 2010, when Stephen Elop was signed...

    Reminds me of 2010, when Stephen Elop was signed on to become CEO of Nokia.

    Us Linux-foilhats/conspiracy theorists predicted that based on Elop's reputation of Linux-hate at Microsoft, Nokia's...
  33. Replies
    24
    Views
    1,407

    I agree completely. I should have looked at...

    I agree completely.

    I should have looked at the RasPi UART hardware myself first, and not post vague speculation. The /dev/ttyAMA0 refers to the ARM PL011 PrimeCell UART, whose behaviour is well...
  34. Replies
    24
    Views
    1,407

    Serial1.write(c) writes the character...

    Serial1.write(c) writes the character corresponding to the value of c, here zero. So, I'd expect you to see

    00000000 62 6c 61 3a 00 3b |bla:.;|
    00000006
    if you...
  35. Replies
    24
    Views
    1,407

    00000000 c6 94 4e 20 f5 8d 3f 01 9a 64 5d 9d e3...

    00000000 c6 94 4e 20 f5 8d 3f 01 9a 64 5d 9d e3 91 e3 dc |..N ..?..d].....|
    00000010 bc 39 bd c9 10 d6 55 27 2b 2e 3d 6f 3e f2 5c 35 |.9....U'+.=o>.\5|
    00000020 fb df bf e0 b8 63 76 9a ...
  36. Replies
    26
    Views
    2,338

    I've also noticed a recent uptick on ssh attack...

    I've also noticed a recent uptick on ssh attack attempts. I have a relatively stable IP address, and use fail2ban on my Linux laptop machine to completely block IP addresses that try to login to my...
  37. Replies
    24
    Views
    1,407

    When you read data from an actual serial port,...

    When you read data from an actual serial port, not an USB-serial bridge, the Linux kernel tells an application that is reading data from that serial port that data has arrived at the next earliest...
  38. Replies
    2
    Views
    440

    Thanks, WMXZ! According to this e2e.ti.com...

    Thanks, WMXZ!

    According to this e2e.ti.com answer, the TLV237x opamps have an output impedance of about 300 Ω (at frequencies from 2 kHz to 2MHz). Combined with the TI slau51a information, the...
  39. Replies
    5
    Views
    695

    No, to unsigned 32-bit integer. The union...

    No, to unsigned 32-bit integer.


    The union type should have an unsigned integer member of the appropriate size (uint32_t for float, uint64_t for double), because that way the binary...
  40. Replies
    2
    Views
    440

    Teensy 3.2 ADC opamp buffering

    I'm considering using a TI TLV2372 rail-to-rail I/O (dual) opamp to buffer certain signals to Teensy 3.2 ADC.

    As suggested here by Paul, I'd use a resistor between the opamp output and the analog...
  41. Replies
    5
    Views
    695

    No, you didn't. You found a fast "pow"...

    No, you didn't. You found a fast "pow" approximation for double-precision floating-point numbers, whose representation matches IEEE-754 binary64, on a little-endian byte order architecture...
  42. Just trying to help. :) (If anybody reads any...

    Just trying to help. :)

    (If anybody reads any kind of tone from my posts, do not; me fail english often. No tone, other than "hope this helps you in the long term", is intended.)
  43. Like I said in my comment, the variables...

    Like I said in my comment, the variables containing the total number of seconds must also be of sufficient size.

    You call TimeCalc() in two places; one is TimeCalc(TotalSeconds) and the other is...
  44. Try the following: static uint16_t days;...

    Try the following:


    static uint16_t days;
    static uint8_t hours, minutes, seconds;

    static void TimeCalc(uint32_t secs)
    {
    seconds = secs % (uint32_t)60;
    secs /= (uint32_t)60;
  45. I've broken so many things myself that I'm...

    I've broken so many things myself that I'm getting careful nowadays. In your case, I worry about ground loops.

    I myself would use a pair of optocouplers instead. Perhaps two 6N136s. Depending on...
  46. Replies
    12
    Views
    2,560

    Farnell sells IRLD014...

    Farnell sells IRLD014, which isn't equivalent, but might be close enough.
  47. Go for it! I mean, EasyEda is very easy to use,...

    Go for it! I mean, EasyEda is very easy to use, and free; and the details for such a board are not complex.

    For example, if you started reading some tutorials, checked why the circuit has...
  48. Just build it yourself, then. Just for fun, I...

    Just build it yourself, then.

    Just for fun, I drew up a schematic in EasyEda for 32 buttons and 9 pots on a 94x41mm board, with headers for a Teensy LC to sit on top of; with the intent that you'd...
  49. Like the Sparkfun BOB-08033...

    Like the Sparkfun BOB-08033?


    What does "but with the at least axis available" mean?
  50. Replies
    12
    Views
    2,560

    TXB0104...

    TXB0104 or TXS0104E? You should be able to have five devices per bus (25mA max per bit, 4 per chip = 100mA, which the chips should handle through GND or VCCs). I haven't used either, though, just...
Results 1 to 50 of 95
Page 1 of 2 1 2