I will add code that converts my string array to an array of character array so I can store it in PSRAM. My knowledge of Arduino strings is limited so I will do some reading on it.
Thank you Paul and @defragster.
I meant that my board has the PSRAM chip installed. When using
const int BUFFER_SIZE = 200;
EXTMEM String circularBuffer;
or
const int BUFFER_SIZE = 200;
String...
I have a Teensy 4.1 and added an 8 MB PSRAM chip and it passed the memory test.
In my sketch, I am using the PSRAM memory to save a String array:
const int BUFFER_SIZE = 200;
EXTMEM String...
Hello @defragster,
Please forgive my newbie question. Should I be using a EthernetUDP instead of EthernetClient client?
If I continue to use the EthernetClient, how do I use...
I wrote the attached code to interface to that sensor. The code is a modified example from the QNEthernet library.
As a way to check for consistent operation, I calculated the time between each update. It should be...
Thank you! This is encouraging news.
The QNEthernet library is what we are using due to its stability.
I realize that TCP is a bit more "wordy" than UDP but there is some hope in that we only need to read...
Thank you @defragster for taking the time to read the document.
You are correct, the data is way more than 4000 bytes/sec. I estimated this number from a PC DLL implementation but it is incorrect.
Each reading...
Thank you @defragster.
The device is a rotating laser which sweeps from 0 - 270 degrees at 150 Hz. The angular resolution is 0.75 degrees. So, for every 0.75 degrees between 0 - 270, the sensor outputs the angle...
I have an Ethernet sensor which outputs about 4000 bytes per second continuously.
Can I read from this sensor using a Teensy 4.1? Reading and deciding needs to be done in real-time.
Thanks in advance for your...
@Taymar
I am not using an RS232 plug but the resistor needs to be between the Can H and Can L lines on the Teensy side.
In my installation, I am using a Waveshare Can module connected to my Teensy. So the...
I have a board with a Teensy 4.1 that is powered by a 5VDC power supply to VIN. However, I have been upgrading the firmware through the Teensy's USB (while also powered from VIN) numerous times without a problem ....
...
It does not hurt to swap the H & L lines as PaulS is recommending.
On the 120 Ohm issue, the resistor needs to reside on both sides per the link I sent before .... In my case, the circuit was working at lower speeds...
I had a similar issue.
The library can work at speeds of 1000 Kb but I am using 500 Kb.
The reason you may not be getting an output from the bus was resolved in my case my adding a 120 Ohm resistor across the Can...
Thank you very much Paul. This code is very helpful.
I was not aware that one can add memory to the Teensy 4.1. I prefer to read the entire stream because I need to extract some limited information from it before...
Thank you. I did not realize that one can stream directly without first saving the String.
So, in this case, one would send each byte as it is received? Is there any example code?
Thanks again for your time.
I have a PC application which acts as a TCP Client. Periodically, it sends a Base64 String to a TCP server. It is a long string because it contains an image. I can reduce the size of that string by reducing the image...