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

Search:

Type: Posts; User: PaulS

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. Purchased 2pc genuine HC-12 modules and hooked...

    Purchased 2pc genuine HC-12 modules and hooked them up to a Teensy 4.1 and a Teensy LC.

    29451

    They are communicating as expected, see this screendump using Arduino IDE 2.0:

    29452

    Used...
  2. Found this message...

    Found this message: So far, SoftwareSerial is transmit only on Teensy 4.x, when not using pins which are a real hardware serial port.
    On a Teensy 4.1, pins 7 & 8 are hardware serial ports: pin 7 =...
  3. SoftwareSerial HC12(7, 8); // HC-12 TX Pin, HC-12...

    SoftwareSerial HC12(7, 8); // HC-12 TX Pin, HC-12 RX Pin
    You did not swap RX and TX accidentally?
    From this page it states:
    SoftwareSerial mySerial = SoftwareSerial(rxPin, txPin);

    Paul
  4. Replies
    69
    Views
    4,622

    Hi Mark, you've made huge progress, great! ...

    Hi Mark, you've made huge progress, great!
    Thanks for sharing your code - I will definitely give it a try when I got some more spare time!

    Paul
  5. Replies
    69
    Views
    4,622

    Hi Mark, great to see your progress! Yeah,...

    Hi Mark, great to see your progress!

    Yeah, that's what I noticed earlier also, but I guess that's how Honda assigned the ECU for getting the diagnostic data out.

    Yep, that is what I would have...
  6. Replies
    3
    Views
    161

    If I understand you correctly, the 5V/2A...

    If I understand you correctly, the 5V/2A regulator is fed from output of the 12V/20A regulator.
    Perhaps it's better to feed the 5V regulator from the LiPo battery directly. I suspect that BTS7960...
  7. Replies
    69
    Views
    4,622

    Hi Mark, thanks for testing again. I feel a bit...

    Hi Mark, thanks for testing again.
    I feel a bit like standing on the side line and shouting things while you're doing all the hard work :-) But I just don't have the time now to do testing on my...
  8. Replies
    69
    Views
    4,622

    Hi Mark, I searched a bit more on the CAN bus...

    Hi Mark,

    I searched a bit more on the CAN bus wake-up message and ran into the ISO 15765-4 spec.
    Paragraph 6.3.2.2 11 bit CAN identifiers and paragraph 6.3.2.3 29 bit CAN identifiers have...
  9. Yes, you do need high voltage protection when...

    Yes, you do need high voltage protection when connecting a piezo transducer.
    This article gives you some more insight. The mentioned TVS diodes are very commonly used parts.

    Paul
  10. Replies
    2
    Views
    104

    I'm assuming that by "PWM speed" you mean PWM...

    I'm assuming that by "PWM speed" you mean PWM frequency?
    Back to your question. The answer is probably: it depends.
    Found this article to be interesting. Adafruit also has a nice guide.

    Although...
  11. 29351 I think it's the other way around: the...

    29351

    I think it's the other way around: the higher the number, the lower the output impedance hence the ability to source more current...
    Anyway, best to try different DSE values.

    Paul
  12. When I searched for DSE [Drive Strength] in...

    When I searched for DSE [Drive Strength] in C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4\HardwareSerial.cpp, I found this:

    29333

    Some pins are apparently set to DSE value 3...
  13. Replies
    69
    Views
    4,622

    Hi Mark, thanks for testing. So you did not...

    Hi Mark, thanks for testing.

    So you did not receive the reply 0x07E8 06 50 03 00 32 01 F4 00, length 8?

    Another observation, your Teensy CAN bus monitor utility output shows this:

    RX: MBX:...
  14. Glad to hear you found the reversed diodes! And...

    Glad to hear you found the reversed diodes!
    And about that black/red-swapped USB cable: been there too.

    Success with your project,
    Paul
  15. Another thought: could it be that either D+ or D-...

    Another thought: could it be that either D+ or D- is not making it up all the way to the PC?
    From your photo in message #1 I can't tell what kind of external connector you are actually using and...
  16. Could it be that you accidently swapped the D+...

    Could it be that you accidently swapped the D+ and D- connections? I vaguely recall that I ran into a similar issue long time ago.

    Paul
  17. I don't think that particular USB connector can...

    I don't think that particular USB connector can be bought separately as it is molded to the cable.
    But perhaps this search at Newark/Farnell can help you finding a suitable connector?

    Paul
  18. Replies
    69
    Views
    4,622

    Hi Mark, perhaps I found the magic to get the CAN...

    Hi Mark, perhaps I found the magic to get the CAN data flowing...
    When reading Adventures in Automotive Networks and Control Units, on page 14 I found this:


    After sending that CAN frame, the...
  19. Replies
    4
    Views
    146

    From the USB 2.0 spec: So the outer GND pin...

    From the USB 2.0 spec:


    So the outer GND pin is meant for the cable shield, the GND pin next to D+ is power GND.

    29243

    Paul
  20. Replies
    69
    Views
    4,622

    Looking further into the OBD9141...

    Looking further into the OBD9141 project mentioned above , there seems to be a mandatory init sequence to wake up the ECU.
    This init sequence uses the K-line interface per ISO9141 spec.
    From...
  21. Replies
    69
    Views
    4,622

    This looks like a very informative OBD II UART...

    This looks like a very informative OBD II UART Hookup Guide : https://learn.sparkfun.com/tutorials/obd-ii-uart-hookup-guide/all.

    Paul
  22. Replies
    69
    Views
    4,622

    Hi Mark, thanks for reporting your progress and...

    Hi Mark, thanks for reporting your progress and sharing your code.
    I wouldn't be surprised if the Actron scanner first starts in K-line mode and once it figures out that CAN mode is also possible,...
  23. Thread: LIN bus sniffer

    by PaulS
    Replies
    6
    Views
    131

    I suspect the 13.2V from the scooter is very...

    I suspect the 13.2V from the scooter is very noisy.
    Do I understand you correctly that you connect the external powersupply positive to the scooter supply positive? Better not do that: one power...
  24. Thread: LIN bus sniffer

    by PaulS
    Replies
    6
    Views
    131

    Yes, you should do that - you need a common...

    Yes, you should do that - you need a common ground for all circuitry.

    Paul
  25. Thread: LIN bus sniffer

    by PaulS
    Replies
    6
    Views
    131

    Did you measure if the external Vbat [13V in your...

    Did you measure if the external Vbat [13V in your case] actually makes it all the way from the screw terminal to pin 9 of the DB9 connector?
    The adapter board may have a wiring/soldering issue.
    Is...
  26. Do you have a pullup resistor on Teensy pin 4?...

    Do you have a pullup resistor on Teensy pin 4? The OUT1 pin of the NCV1124 is an open-collector output so Teensy pin 4 needs a pullup to 3V3.

    29187

    Or use "pinMode(4,INPUT_PULLUP);".

    Paul
  27. Replies
    2
    Views
    191

    In C:\Program Files...

    In C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4\interrupt.c, line 124, detachInterrupt is defined:

    void detachInterrupt(uint8_t pin)
    {
    if (pin >= CORE_NUM_DIGITAL) return;...
  28. Replies
    69
    Views
    4,622

    CAN Bus fault finding tips and hints: part 1...

    CAN Bus fault finding tips and hints: part 1 and part 2.

    Paul
  29. Replies
    69
    Views
    4,622

    KeyOn-EngineOff should be enough to see CAN data...

    KeyOn-EngineOff should be enough to see CAN data or connect a scanner.
    With KeyOn-EngineOn there is usually more CAN data to be observed since all modules will be active.

    Did you see this video...
  30. Teensy 4.1 featured in new project by Quint BUILTs

    Knife Throwing Machine!
    Behind the scenes video here.

    Paul
  31. Replies
    69
    Views
    4,622

    What you saw on the CAN bus are all messages that...

    What you saw on the CAN bus are all messages that the different modules in your car [e.g. PCM, BCM, TPM etc etc] are exchanging.
    It may wel be that one of the messages was the reporting of the ECT...
  32. Replies
    69
    Views
    4,622

    Not sure why I thought you mentioned 95? (I'm...

    Not sure why I thought you mentioned 95? (I'm getting old I guess...) Anyway, 2015 is definitely OBD2 and that makes live much easier.
    Hope the Civic fora return something useful.
    About the OBD2...
  33. Replies
    69
    Views
    4,622

    Looked a bit further into the OBD stuff. ...

    Looked a bit further into the OBD stuff.
    According to this forum your Honda Civic 95 should be the 5th Generation Civic [1992-1995].
    Found a 90 MB service manual and searched for the OBD wiring....
  34. Replies
    4
    Views
    168

    Setting the gain to 0.5 divides/damps the input...

    Setting the gain to 0.5 divides/damps the input signal by half which is -6dB. Setting the gain to 0.25 divides the input signal by a quarter which is -12dB.
    So setting all 4 channels to a gain...
  35. Replies
    69
    Views
    4,622

    So that diagnostic machine you are talking about...

    So that diagnostic machine you are talking about is able to read out diagnostic data and/or the engine cooling temp?
    If you have that diagnostic machine available you could hook up the Teensy in...
  36. Replies
    69
    Views
    4,622

    Did you see any recognizable CAN data? Could it...

    Did you see any recognizable CAN data?
    Could it be that your 95 Honda Civic has more than one CAN bus? Where do you actually monitor that CAN data, on the OBD2 connector?

    Paul
  37. Replies
    6
    Views
    198

    Yeah, used it only once when running on Windows...

    Yeah, used it only once when running on Windows 7. But it worked then!
    USBDeview is the tool I reach out for first.

    Paul
  38. Replies
    6
    Views
    198

    Perhaps interesting, I have been using these 2...

    Perhaps interesting, I have been using these 2 tools with success a number of times to get rid of USB 'crap': USB Oblivion and USBDeview.

    Paul
  39. Replies
    69
    Views
    4,622

    Yeah, I've seen the CAN analyzer program crash as...

    Yeah, I've seen the CAN analyzer program crash as well with too much CAN activity. The program can keep up though when you apply frame-ID filtering.
    Another option is to use the Teensy as a CAN bus...
  40. Personally I would use this...

    Personally I would use this Adafruit product since I don't like to solder wires to PCB (test)pads.

    29147

    Paul
  41. Replies
    2
    Views
    155

    300R == 300Ω. I think they do appear on the...

    300R == 300Ω.
    I think they do appear on the photo, see green circle:

    29145

    Half of the 10kΩ resistors appear on the topside, see orange circle. The other 8 pieces are probably soldered on the...
  42. Replies
    69
    Views
    4,622

    Glad to hear your CAN analyzer has been revived....

    Glad to hear your CAN analyzer has been revived.
    Now I guess it's time to connect the analyzer solo to the OBD port of your Civic and see if you can make sense of what it's happening on the CAN bus....
  43. Thread: Int to Binary

    by PaulS
    Replies
    9
    Views
    362

    Yep, that works too. void setup() { ...

    Yep, that works too.

    void setup() {
    Serial.begin(9600);
    }

    void loop() {
    uint16_t Value = 8200;
    Serial.println(Value, BIN);
  44. Thread: Int to Binary

    by PaulS
    Replies
    9
    Views
    362

    I'm not sure I understand you correctly since an...

    I'm not sure I understand you correctly since an integer is stored binary into memory.
    But perhaps you mean that you want to store "10000000001000" as a character string?
    You can use the itoa...
  45. Replies
    4
    Views
    154

    If I read the datasheets correctly, both the...

    If I read the datasheets correctly, both the TLV75733P and NCV8186 are short-circuit protected and therefor unlikely to fail.
    If you don't see a short from 3V3 to GND, you could power the Teensy...
  46. Replies
    13
    Views
    470

    Probably you have seen this thread...

    Probably you have seen this thread?
    This board does SPDIF output for Teensy 4.1 as well.
    According to the Audio System Design Tool, Teensy 4.x outputs on pin 7 instead of pin 22 for Teensy 3.x.
    ...
  47. Replies
    4
    Views
    154

    Nope, the third pin is the gate of the FET...

    Nope, the third pin is the gate of the FET connected to GND. See schematic.

    29137

    You may want to check whether the output of U4 [a TLV75733P voltage regulator] is shorted to GND somehow.
    ...
  48. Thread: USB Cage Power

    by PaulS
    Replies
    1
    Views
    97

    From the schematics, the cage looks to be...

    From the schematics, the cage looks to be connected to GND.

    29120

    Best is to verify with a multimeter.

    Paul
  49. So you are looking for a Teensy simulator with...

    So you are looking for a Teensy simulator with serial monitor output?
    Perhaps this will work for you: WOKWI
    It's very basic but it may suit you for learning/testing.

    29074

    Paul
  50. Replies
    69
    Views
    4,622

    A few weeks ago, my USB CAN analyzer acted up...

    A few weeks ago, my USB CAN analyzer acted up weird.
    I then resetted the analyzer as described here and it was working normally again.
    Perhaps give that a try?

    Paul
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4