Search results

  1. I

    Reading MS5535C using Teensy 3.1 problem

    Hi, there is a problem in library that I discovered later and did not update here. Honestly I did take this library much further, but for other purposes. The ptoblem making is the calculation of pressure here: if (SensorType==5535){ P = (SENS * (D1-OFF))/pow(2,12) + 1000; //change neaded to...
  2. I

    Reading MS5535C using Teensy 3.1 problem

    Hi, sorry for late answer, can you post you scetcher here so hopefuly I can see what makes problems. Did you try to run the example in the library? I get accurate readings.
  3. I

    Reading MS5535C using Teensy 3.1 problem

    New library arrived from Adafruit, but for strange reasons can not use it with teensyduino... it does not recognise it. Tryed everything but no better. The name of folder in library directory is correct. Names of files in the folder too..l. What else should I check?
  4. I

    How to override built-in libraries reliably

    I have similar issue.... Teensyduino does not recognise Adafruit library they sent mi yesterday. I renamed library as directed to Adafruit_ST7735 and placed it in the library folder C:\Users\Igor\Documents\Arduino\libraries and Teensyduino does not want to use it. There are both files neaded the...
  5. I

    Reading MS5535C using Teensy 3.1 problem

    Testing extensively the Adafruit updated library non definitive, the results are not good. The screen is updated very slowly and makes running software slow on teensy. Adafruit did not jet made the definitive version, so still waiting on it. Unfortunately even the updated version (the one from...
  6. I

    Reading MS5535C using Teensy 3.1 problem

    Adafruit updated their library per last standards in SPI communication and now I finaly have a solution in my hands. Will post links to the thread with updated ST7735 library and new version of MS55xx library updated to same standard. Thanks to all that tried to be helpful!! Specialy to Paul...
  7. I

    Reading MS5535C using Teensy 3.1 problem

    Hi, no srry I did not correct it in comments in MS55xx.cpp the mclk is hardcoded to 22 in my case.
  8. I

    Reading MS5535C using Teensy 3.1 problem

    Got answer from Adafruit to use some commands for saving SPCR register, but Paul thinks it is not good to use, so am not. The problem remain and I do not know how to solve this enigma... I did everything suggested, but no better. Please help! Igor P
  9. I

    Reading MS5535C using Teensy 3.1 problem

    Transcribed from scratch the library, now rtansfer sc and mclk for sensor as parameters, but no change. as soon as initialized tft, I lose sensor data. I added everywhere used SPI the SPI.beginTransaction() and SPI.endTransaction(). The only thing I am not sure of is Adafruit_ST7735 library ...
  10. I

    Reading MS5535C using Teensy 3.1 problem

    I tryed to change library to use parameter passing for sensors cs and mclk, but noticed compiler does not see some changes. So will transcribe the complete library to see if any better. Paul, hope yo find some time to look inlast files I posted to see if they are consistent.... Thanks
  11. I

    Reading MS5535C using Teensy 3.1 problem

    2316 4937 370 226 2153 56 Pressure (mBar): 85646.0 Temperatre 2nd (celsius): 226.57 this are the values I get from sensor. The first 6 are koecifients I read from sensor before TFT initialisation and other are calculated from data read after the initialisation of TFT, so false. Do not know...
  12. I

    Reading MS5535C using Teensy 3.1 problem

    Hi, I added the suggested SPI.beginTransaction() and SPI.endTransaction() in Adafruit_ST7735 library and MS55xx library, but no better. Still same result, have display working, but the data from pressure sensor not correct. More testing toomorrow. I am attaching the libraryes and would love to...
  13. I

    MA55xx library incompatible with AdafruitST5537 library??

    Ok, got a reply from Paul in other thread and am working on solving the problem. If not coming back with questions.... If anyone has other suggestions beside adding SPI.beginTransaction() and SPI.endTransaction() to both libraryes, please post. Regards and tanks Igor P
  14. I

    Reading MS5535C using Teensy 3.1 problem

    HI Paul thank you very much for your answer! I tried to add to my library MS55xx the SPI.beginTransaction() and SPI.endTransaction() commands before, but no better so removed them. Will try to add SPI.beginTransaction() and SPI.endTransaction() to both libraryes - the Adafruit_ST7735 and to...
  15. I

    MA55xx library incompatible with AdafruitST5537 library??

    Hi, Using both Adafruit 1.8 TFT and MS5535 sensor sharing same SPI on Teensy 3.1 I have lot of problems. I nailed them down to not being able to read data from sensor. Library MS55xx posted in another thread manipulates its CS manualy. If I use it with AdafruitST7735 library on same Teensy 3.1 I...
  16. I

    Reading MS5535C using Teensy 3.1 problem

    I just found I need to use SPI.setDataMode(SPI_MODE0); in PressSensor.Update() method as last line to return SPI Mode so that AdafruitST7735 can use SPI normaly and work as expected. I get display functioning normal again. I added manipulation of CS in the MS55xx library, so that I do not need...
  17. I

    Reading MS5535C using Teensy 3.1 problem

    Hi all, I have another problem. The library works fine, I can get all data needed from sensor, but have problem when adding Adafruit 1.8 TFT. I get wrong readings from sensor and the TFT remains black. I did add to code the pressure sensor CS and the tristate buffer.. Anyone know of problems...
  18. I

    Reading MS5535C using Teensy 3.1 problem

    Ok, here is original forum with the writer of the library I adapted to both MS5535C and MS5541 sensors .https://forum.arduino.cc/index.php?topic=289503.0 I am noticing autor and posting to his thread the library. The name will remain MS55xx. Same I am adding it here complete. Igor P
  19. I

    Reading MS5535C using Teensy 3.1 problem

    below original quote from the .h file of library. I only changed it to incorporate both MS5535C and MS5541. It is from arduino forum. Wil try to find out who wrote it. Or I will post to the original thread on Arduino and post the updated version...
  20. I

    Reading MS5535C using Teensy 3.1 problem

    Hi Paul, thank you very much for your help. Will try it out as soon as I manage and let you know. This library was writen by someone else .... it should be writen in files .... I just changed it to cover MA5535C and MS5541 pressure sensors .... this is why it is callec "MS55xx". And sure...
  21. I

    Reading MS5535C using Teensy 3.1 problem

    Hi, thanks for answer, The MCLK_pin in the code probably should be changed with the pin I use for MCLK generation. Do I need to put there both commands? What is that k_Pin_CLK ?is it meant: analogWrite(MCLK_pin,128);
  22. I

    Reading MS5535C using Teensy 3.1 problem

    Sorry that doesent help... I use SPI for comunucation with MS5535c. The library was adapted for MS5535c and MS5541
  23. I

    Reading MS5535C using Teensy 3.1 problem

    I think you are correct, that library was writen for AVR MCU, the problem is in generation of MCLK 32768 hz clock. Could I simply use analogWrite(22, 32768); for the purpose?
  24. I

    Reading MS5535C using Teensy 3.1 problem

    Hi, I use atached example with atached library files to read MS5535C pressure sensor. I do not know why but using teensy 3.1 board can not compile the example. this is the error: MS55xx_underwater.ino:19:39: warning: character constant too long for its type [enabled by default]...
  25. I

    Teensy3 ST7735 Library

    Hi, is there any option to have some other type of fonts used with tis library?
Back
Top