Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Changes to SPI ?

  1. #1
    Senior Member
    Join Date
    Sep 2016
    Posts
    174

    Changes to SPI ?

    Hello, I re-did my circuit board. and it worked before together with a featherwing 3.5, but I am getting Zero readings from my 4 thermocouples. Max31855 type K,

    SPI1
    I used two seperate SPI lines on the teensy4.1 pin 27 for the CLK1and MISO1 on 39
    all 4 max31855 Are connected together on this bus. Chip select is on 36,37,38,39.

    SPI0
    The other SPI which I use for a featherwing 3.5“ is on the standard Pins pin 13CLK, MOSI11,MISO12, DC=10, CS=9;

    For both SPI lines I have two seperate constructors and with different settings. As similar done from the SPI page for the teensy.

    How can I set a different SPI channel for the thermocouples?

    In the void setup I declare all the CS pins as HIGH.
    I get an error on SPI1.begin(); which is located in the void setup. Do I also have to set the beginTransaction in the void setup? And in the void loop? and close it to? Or do I have todo it differently? Because I am getting Zero readings from my thermocouples.

    Just want to know what the write way is in Syntax for a Setting up a SPI connection

    Did any changes occur on the SPI library?

    Many thanks

    Bastiaan

  2. #2
    beginTransaction is only for when you are actually transferring data so you do not need that in the setup. I had a problem using MISO1 and pin 39 and it was because I did not call SPI1.setMISO(39); Maybe try that if you have not already?

  3. #3
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    11,784
    Note: I am pretty sure, this is now logically a duplicate of the thread: https://forum.pjrc.com/threads/66607...light=max31855

    Recently as part of the other thread, I put in a Pull Request to Adafruit to allow you to specify which SPI buss to use with that library.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •