Giter Site home page Giter Site logo

ell-i-kicad-boards's People

Contributors

apocalyt avatar ojousima avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ell-i-kicad-boards's Issues

SPI communication not working. Set chip select pin as OUTPUT

I'm currently using an Adafruit Feather 32u4 with the TYSY01 sensor and I was unable retrieve data over the SPI protocol. I'm able to correctly communicate and read data from the TYSY01 sensor over I2C, however, I'm receiving incorrect data over SPI.

I'm using version 1.8.10 of the Arduino IDE with the code provided by this Instructables guide. My code is as follows:

#include "Tsys01.h"

#define chipSelectPin 18
#define powerPin 20
#define protocolPin 19

Tsys01 sensor;
float temperature = 0.0;

void setup(void)
{
  while(!Serial);
  Serial.begin(9600);
  Serial.println("Starting program.");
  sensor = Tsys01(TSYS01_SPI, powerPin, chipSelectPin, protocolPin);
}

void loop(void)
{
    sensor.startAdc();

    //ADC takes 9.22 ms.
    delay(10);
    temperature = sensor.readTemperature();
 
    Serial.print("Temperature is ");
    Serial.println(temperature);  
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.