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...
Type: Posts; User: PaulS
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...
Personally I would use this Adafruit product since I don't like to solder wires to PCB (test)pads.
29147
Paul
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...
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....
Yep, that works too.
void setup() {
Serial.begin(9600);
}
void loop() {
uint16_t Value = 8200;
Serial.println(Value, BIN);
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...
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...
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.
...
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.
...
From the schematics, the cage looks to be connected to GND.
29120
Best is to verify with a multimeter.
Paul
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
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
Here it is: https://www3.ntu.edu.sg/home/ehchua/programming/cpp/cp4_PointerReference.html
Paul
You're right. I verified the AREF pin to be zero on my LC as well. Tried a sketch which does an analogRead(A0) but the AREF voltage is still zero.
I guess it's internally connected to 3V3 by means...
Great! Good to remember.
Paul
I haven't seen formal documentation for the analogReference() function, but searching on this forum revealed this:
analogReference(INTERNAL), analogReference(DEFAULT) and analogReference(EXTERNAL)....
On this page.
Don't get confused by the PWM stuff - when you specify an actual DAC pin for analogwrite(pin), the software will output an analog value, not PWM.
Yes, the AREF pin is input only.
...
Here is the most basic code to use the DAC on the Teensy LC:
void setup() {
analogWriteResolution(12); // set to 12 bits
analogWrite(A12, 4095); // value 0 - 4095, 0V - 3.3V
}
...
Your screen looks similar to my screen in message #12. Did you click the "Set and Start" button?
If it is still not working, exit the program. Unplug and replug the USB cable of the analyzer. Then...
The Ethernet PHY chip is designated by U6:
29026
29027
Paul
The DACs are 12 bit.
According to the 3.2 spec para 6.6.3, and 3.5 spec para 3.6.3, the output range is rail-to-rail minus 100mV.
Output current is 1mA max.
Output impedance is 250Ω.
Paul
Perhaps this will work?
if (!bitRead(USBPHY1_STATUS,8))
{
USBConnected = true;
}
See page 2486 of the i.MX RT1060 spec.
Paul
Be aware that the current consumption as specified for this ILI9341-based Winstar panel [8.25mA max] does not include the current consumption [and required voltage] of the backlight... usually that...
Hmm, if you don't get a PID_REPLY at all, then something else is wrong. Perhaps it's a hardware/wiring issue?
I think you really need a CAN analyzer now to debug the issue.
Paul
That is a good idea. But do you still have this line in?
if ((rxmsg.id == PID_REPLY) or (rxmsg.buf[0] == ENGINE_COOLANT_TEMP) or (rxmsg.buf[1] == ENGINE_COOLANT_TEMP) or (rxmsg.buf[2] ==...
From this page I read: "1 - 1,0C,2,"Engine RPM",0,16383.75,rpm,((A*256)+B)/4".
It's apparently generic OBD2. The RPM PID 0x0C only returns 2 bytes, so buf[0] and buf[1]. You can verify that by...
Here is a photo of the setup I used for testing:
28959
And yes, you do need a CAN bus transceiver, like this.
Paul
Took me some fiddling and using the CAN analyzer to get your code working.
Apparently the way the FlexCan library is invoked/called makes a difference.
Here is the working code:
//CANBUS Library...
Hi Sandra, you may want to invest into a CAN bus analyzer like this one, it saved me a lot of time while debugging a Teensy-based CAN bus device.
Paul
Just checking: you are measuring with the scope on TP86/TP80/TP59/TP64 of the EVM board? And R112 is mounted such that the board is operated in SPI mode?
My suggestion would be to doublecheck all...
Ran your code on a Teensy 4.1 and the logic analyzer shows the same as your first picture [with the exception of the MISO line since I don't have an AD4134 here].
28942
Can it be that the eval...
Hi, you may want to be more specific on what help you actually need. Is it not working? If so, what is not working? Is it too slow? Is it not compiling?
It also helps if you provide what version...
Out of curiosity I purchased a very similar rotary encoder from Amazon.
Hooked it up to a Teensy 3.2 with two 1k pullups from 3V3 to pins 5 & 6. The encoder itsself was powered from the 5V pin.
...
This Wisamic encoder [english page] has NPN outputs so you need pullup resistors connected to both output pins.
Here is diagram of a similar OMRON encoder:
28855
Those pullups [e.g. 1K] can be...
Since the NRF24L01 operates on the 2.4GHz ISM band, you have to share that medium with all present WiFi traffic. That could be one of the issues for the low throughput.
Another factor could be...
Your code above did not work for me. I had to add delay(10) to the loop.
But your code can be simpler. Just divide the myEnc.read() by 4. And then check for the difference being positive or...
Replacing the Teensy 3.2 by a Teensy 4.1 and running your exact code gave the same flawless results as in my post #9.
Paul
If the serial monitor shows correct counting of the encoder, than the encoder is fine. I see 4 counts per detent of the rotary encoder.
Is it possible for you to make a photo that shows your wiring...
It looks like sebrk is referring to this and this library.
Paul
Made a quick setup using a Teensy 3.2 [don't have a Teensy 3.5] and ran your code.
Here is the setup:
28832
Set USB type to "Serial+MIDI". Could not get it to fail...both serial monitor and...
Is it possible to post your complete code so that we can reproduce the issue? [or, preferably, the smallest code that shows the error].
Paul
If the output of the 3V3 regulator shows only 1.6V, the regulator may not be dead at all but just running into its current limiter.
Please check whether there is a heavy load on the 3V3 pin. The 3V3...
Yes, no problem. Better not use 5V as not all Teensy's are 5V tolerant.
But for those simple rotary encoders, you hook them up differently. No need to use 3V3 or 5V.
28810
Connect encoder...
Electrically, this absolute endless encoder [datasheet] can be connected to a Teensy 3.5. Just use pinMode(pin, INPUT_PULLUP) for pins P1-P8 and then digitalRead each pin.
However, be aware that...
Did a quick current consumption test using an SSD1306 OLED display [albeit strapped for SPI mode instead of I2C mode] and powered it by the LC's 3V3 output. Measured the current in the display supply...
It depends on the exact OLED display used. I would power the OLED by the 3V3 of the Teensy LC [which can supply 100mA max].
Those small OLED displays usually draw 20-50mA so you should be fine.
...
From what I understand, if you want to connect your HP702 for an external MIDI connection, you need to use the USB type B connection [#20 on the image below].
28786
That port is expected to...
Did you perhaps see this page?
Looking at the code and the instructions, I don't see any problem why it should not run a Teensy 4.1.
Edit: another useful page.
Paul
PS: you need to power...
The default PWM frequency is 488.28 Hz. Got the info from this page.
You can change the PWM frequency by using the analogWriteFrequency(pin, frequency) function.
Paul
It's very difficult to advice you with the limited data you provided.
Do you happen to have schematics of the whole setup? Can you share photo's of your setup? Partnumbers of FETs, sensors and...