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. Replies
    20
    Views
    384

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

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

    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...
  4. 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...
  5. Replies
    20
    Views
    384

    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)...
  6. Replies
    20
    Views
    384

    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...
  7. Replies
    20
    Views
    384

    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...
  8. Replies
    20
    Views
    384

    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...
  9. Replies
    20
    Views
    384

    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);
    }
  10. 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...
  11. Replies
    3
    Views
    127

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

    Of course. The easiest way is to write inline assembly.
  12. 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...
  13. 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...
  14. Replies
    6
    Views
    237

    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...
  15. Replies
    8
    Views
    211

    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)
    |...
  16. Replies
    0
    Views
    143

    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...
  17. 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...
  18. 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...
  19. 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.
    ...
  20. 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...
  21. Replies
    18
    Views
    1,883

    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...
  22. Replies
    24
    Views
    1,373

    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...
  23. Replies
    24
    Views
    1,373

    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...
  24. Replies
    24
    Views
    1,373

    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 ...
  25. Replies
    26
    Views
    2,166

    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...
  26. Replies
    24
    Views
    1,373

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

    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...
  28. Replies
    5
    Views
    676

    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...
  29. Replies
    2
    Views
    421

    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...
  30. Replies
    5
    Views
    676

    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...
  31. 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.)
  32. 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...
  33. 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;
  34. 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...
  35. Replies
    12
    Views
    2,524

    Farnell sells IRLD014...

    Farnell sells IRLD014, which isn't equivalent, but might be close enough.
  36. 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...
  37. 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...
  38. Like the Sparkfun BOB-08033...

    Like the Sparkfun BOB-08033?


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

    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...
  40. Read Freescale Application Note AN3863...

    Read Freescale Application Note AN3863: Designing Touch Sensing Electrodes. You'll learn how to do it, and why that works.

    One of my long-term projects is to create a touchless keyboard. It is a...
  41. Right. I understand the bidirectional ones also...

    Right. I understand the bidirectional ones also may have issues with oscillation, too. I'm also doing 3.3V-to-1.8V translation on another project. I looked around, and decided to try the 74LVC1T45...
  42. Isn't it a bit too early for Halloween...

    Isn't it a bit too early for Halloween references? ;)


    Well, the TXS0104 can do 2Mbaud (open collector, much higher in push-pull); isn't that enough?
  43. Replies
    2
    Views
    667

    !!! ;) Oh, and now I see a Teensy LC in a...

    !!! ;)

    Oh, and now I see a Teensy LC in a comment there, too. Nice!

    Indeed, the exact baud rate logic boils down to 15000000/N with N=1 ... 8191 . Eeeexcellent.
  44. Replies
    2
    Views
    667

    Teensy LC exact baud rates?

    The Teensyduino Serial page only lists the relative errors at certain baud rates, not the exact baud rates Teensy LC is capable of. It looks like 31 250, 250 000, 500 000 are exact, and extrapolating...
  45. I added the complete schematic...

    I added the complete schematic for the entire carrier board:
    http://nominal-animal.net/answers/teensy-for-hc1.png
    I removed the PTC and the reverse polarity diodes as useless/unrealistic/unhelpful,...
  46. Teensy LC/3.1/3.2 controlling a +5VDC 8A load: schematic check

    I'm in the process of designing a carrier board for using a Teensy LC/3.1/3.2 to interface to an Odroid HC1 single-board computer. The power source for both is a regulated +5VDC 6A supply, but I want...
  47. Replies
    32
    Views
    4,770

    This is not only an API issue, but requires a...

    This is not only an API issue, but requires a paradigm shift for developers to understand and utilize it correctly.

    As an example, heavily parallelized atomic simulations...
  48. Replies
    15
    Views
    3,810

    That's absolutely fine even on an embedded...

    That's absolutely fine even on an embedded machine with a slow CPU. If you instrument that with e.g. clock_gettime() (for both CLOCK_REALTIME and CLOCK_THREAD_CPUTIME_ID), you'll see it does not...
  49. Replies
    15
    Views
    3,810

    See Linux kernel sysfs rules...

    See Linux kernel sysfs rules for the /sys/ stability. Linus has a very heavy emphasis, a strict rule, on userspace interfaces being backwards-compatible, unless there is a really compelling reason --...
  50. Replies
    15
    Views
    3,810

    What's so kludgey about that? If you were to...

    What's so kludgey about that?

    If you were to glob() and parse /sys/bus/usb/devices/*/uevent (or /sys/bus/usb/devices/*/{idVendor,idProduct,dev,busnum,devnum} first, and then do an nftw() over /dev...
Results 1 to 50 of 84
Page 1 of 2 1 2