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.
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
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 of firmware.
From...
I haven't seen formal documentation for the analogReference() function, but searching on this forum revealed this:
analogReference(INTERNAL), analogReference(DEFAULT) and analogReference(EXTERNAL). DEFAULT == 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.
Paul
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
}
void loop() {
}
The...
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 start the program...
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
Be aware that the current consumption as specified for this ILI9341-based Winstar panel does not include the current consumption of the backlight... usually that is specified separately.
Paul
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 == ENGINE_COOLANT_TEMP) or (rxmsg.buf == ENGINE_COOLANT_TEMP) or (rxmsg.buf == ENGINE_COOLANT_TEMP)) {
Perhaps you...
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 and buf. You can verify that by printing...
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
#include "FlexCAN.h"...
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 powers and GNDs on the...
Ran your code on a Teensy 4.1 and the logic analyzer shows the same as your first picture .
Can it be that the eval software sets a number of additional AD4134 registers that you are not aware of?
Paul
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 Arduino, 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.
With this code,...
This Wisamic encoder page] has NPN outputs so you need pullup resistors connected to both output pins.
Here is diagram of a similar OMRON encoder:
Those pullups can be connected to 3V3 and than the output signals...
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 the physical distance...
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 negative.
#include...
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 of Teensy and...
Made a quick setup using a Teensy 3.2 and ran your code.
Here is the setup:
Set USB type to "Serial+MIDI". Could not get it to fail...both serial monitor and MIDI-OX keep outputting data:
Using Windows...
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 output of the...
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.
Connect encoder pin Out A to Teensy pin 5,...
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 this endless encoder has...
Did a quick current consumption test using an SSD1306 OLED display and powered it by the LC's 3V3 output. Measured the current in the display supply wire: 7mA
Used this code:
#include <SPI.h>
#include...
It depends on the exact OLED display used. I would power the OLED by the 3V3 of the Teensy LC .
Those small OLED displays usually draw 20-50mA so you should be fine.
Paul
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 .
That port is expected to connect to a USB host, like your laptop or PC.
So...
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 MSGEQ7 at 3V3, not...
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 motors? How do you power...
Did you perhaps use the AGND pin as the GND for your servo's? That would explain coil L3 to get burned out.
It's better to use the digital GND pins of the Teensy for common ground.
Regards,
Paul