Search results

  1. M

    How to send from esp32 to teensy

    Is there any code please I have no idea from where I should start.
  2. M

    Best way for Communication Teensy 4.1 and Esp32

    Hi @KrisKasprzak, could you give me the full code please? Iam very need to like that, I have array in sketch on esp32 and I need to send this array to teensy. any advice please?
  3. M

    How to send from esp32 to teensy

    How can I send 1D array from esp32 to teensy4.0 ? I have array in sketch of esp32 and I need to sent it to the teensy by Wi-Fi or BLE. Is there a possibility of such a thing and how is it done?
  4. M

    Data type with Teensy4.0

    @manitou , what do you mean in this " ESP32 has hardware float, T4 has hardware double and float "
  5. M

    Data type with Teensy4.0

    @Frank B, No, is the same I'm just change the microcontrollers
  6. M

    Data type with Teensy4.0

    No, I can't, it very big.
  7. M

    Data type with Teensy4.0

    Yes, thanks, I was wondering because I have a code that when I use double datasets and run it on Teensy, it gives different results than in ESP32 for the same parameters and dataset.
  8. M

    Data type with Teensy4.0

    Does Teensy4.0 deal with double dataset? For this link https://www.pjrc.com/store/teensy41.html says: "Float point math unit, 64 & 32 bits" Does this mean that it only deals with float datasets ?
  9. M

    Using file system with Teensy 4.0

    are you speaking seriously?!!! I know that from the beginning!!! Anyway Thanks! :(
  10. M

    Using file system with Teensy 4.0

    I can not attach file in this form but yes it constant like this :
  11. M

    Using file system with Teensy 4.0

    For example I have 10 txt file in each file 1000 values have the same type.
  12. M

    Using file system with Teensy 4.0

    Ok Frank B, thank you, Can you tell me how can I use " string constant and #include it." because I have many files and this is very difficult to use a constant arrays . because I need to send these arrays to function to make some processing on the values. functionxx(array);
  13. M

    Using file system with Teensy 4.0

    No change! I should use s - to log data x to stop logging d to dump data. to open the datalog file and in this way I cant read my values. if I use just d I get on like in image :
  14. M

    Using file system with Teensy 4.0

    Yes I know and I did that. but I need to read the data in my txt file not the data from s
  15. M

    Using file system with Teensy 4.0

    The same problem I can not read may values in txt file: this is the output : So my txt file didnot read !
  16. M

    Using file system with Teensy 4.0

    Also, I cannot read the file that contains my data. Can you help me solve the code #6? At first it only prints -1, now it prints "error opening datalog". In all cases, I can't read from a file yet :(
  17. M

    Using file system with Teensy 4.0

    If I have data(values) in txt file on my pc , how can I read this file with teensy? I was read from txt file with esp32 easily!
  18. M

    Using file system with Teensy 4.0

    In fact, I'm new in microcontrollers so with esp32 I used SPIFFS and create Data folder and then read the file from it normally. Now I'm trying to do same thing with Teensy and I have no information about that. I run this code and I get on " Error starting PROGRAM FLASH DISK" This is my teensy.
  19. M

    Using file system with Teensy 4.0

    I update on my code, and I can not open the file "error opening datalog.txt" . I just want to read data from a txt file in this array data. "
  20. M

    Using file system with Teensy 4.0

    OK, Now this is my code : I get in the out put just -1 ! this value is not in file, how can update on this simple code? please? #include <LittleFS.h> LittleFS_SPINAND myfs; //Specifies to use an SPI NOR Flash attached to SPI void setup() { // Open serial communications and wait for port...
  21. M

    Using file system with Teensy 4.0

    Thank you very much for the quick answer.. Actually I read this example and now I'm trying to run it on Teensy.. I have a question, please, do I create a folder "Data" inside the sketch folder? In order to read the file from it ? as in ESP32 ?
  22. M

    Using file system with Teensy 4.0

    Hi, Is there any way that I can read a file using the file system in Teensy ? something like using #include "SPIFFS.h" in ESP32 ? any advice please ?
  23. M

    Reading from TEXT file

    I'm trying to read txt file (has numeric values) line by line. I used SPIFFS with ESP32 and I used this function void readFile(fs::FS &fs, const char * path){ Serial.printf("Reading file: %s\r\n", path); File file = fs.open(path); if(!file || file.isDirectory()){...
  24. M

    Run code on Teency 4/0

    I used two types of microcontrollers and they work !! I used with the first one Serial.begin(9600); while (!Serial) { ; // wait for serial port to connect. Needed for native USB port only } and and with the second : Serial.begin(115200); JUST with teensy I have problem!!!!
  25. M

    Run code on Teency 4/0

    The same problem "the output in serial monitor is just print "before function " after that the COM be offline and then rebooting and re printing "before function " .... and so on... "
  26. M

    Run code on Teency 4/0

    The problem is not with the code because it works correctly with ESP32! but with teensy , after upload the code , the output in serial monitor is just print "before function " after that the COM be offline and then re printing "before function " .... and so on...
  27. M

    Run code on Teency 4/0

    After upload the code , the output in serial monitor is just print "before function " after that the COM be offline and then re printing "before function " .... and so on...
  28. M

    Run code on Teency 4/0

    This is part of my code : every thing after the function is not printing , Why ?!! I run the same code on esp32 and it work well ! void setup() { Serial.begin(9600); while (!Serial) { ; // wait for serial port to connect. Needed for native USB port only } Serial.println("0")...
  29. M

    Run code on Teency 4/0

    Yes, you're right, but I can't share the code because it's too big, but I'm wondering are there any changes that I can make on the code or setting to run it on teensy? why does it work so well on ESP32?
  30. M

    Run code on Teency 4/0

    Hi, I am new here and this is the first time that I use Teensy 4.0. I'm working on code and I run this code on ESP32 , this code is working without any problem with esp32 . Now I'm trying to run the same code on teensy 4.0, the problem the USB stay in case of plug in and plug out. and when open...
Back
Top