CHANTELLE KO
  • Home
  • Bio
  • GLOBE
    • GLOBE Videos
    • GLOBE Gallery
    • Sensational World of Sensors
    • GLOBE Blog
  • TRAVIS
    • TRAVIS Videos
    • TRAVIS Blog
  • SUBCLASS
  • Other Academia
    • Soundscapes
    • Augmented Props
    • Sofra Ensemble
    • Music Tech Works
  • Resources
  • Contact

TCS34725 + LIS3DH (aka: I2C + SPI)

27/2/2020

0 Comments

 
I initially had hooked up the LIS3DH via I2C and for the past couple days I've been trying to figure out how to write in the arduino code to handle two I2C addresses. Something that is so simple and used a lot, yet I couldn't seem to properly convert example codes of other sensors and LCD screens to my sensors. 

Well I was looking at the Sparkfun hookup guide for the LIS3DH again and noticed that it also has the capability to hook up via SPI!!!! So I figured out how to do that, then combined the TCS34725's I2C sketch with the LIS3DH's SPI sketch and voila! I am getting sensor data from both! It still bothers me that I couldn't get the multi I2C going because I think that's important to understand. But now that it works I can at least move forward with my instrument. Also, I read online that people think SPI is better than I2C because it's faster. Although, it does take up more digital pins, and means more circuitboard soldering for me. 

I had previously figured out how to combine the analog pin 16 channel multiplex with the LIS3DH, but that was the I2C version of the ardiuno sketch. Now I need to go back and combine the multiplexing sketch with this new colour sensor + accelerometer sketch! :)

Picture
0 Comments



Leave a Reply.

    Welcome!

    If you are looking for a summary for my Masters thesis, it is here.

    This page is where I blog about my progress with my Masters thesis. It is in no way meant to be "official" or in academic lingo. It's meant for me to quickly jot down my ideas before I forget them, even if they may not necessarily make sense to anyone else.

    Archives

    November 2022
    March 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    July 2021
    May 2020
    April 2020
    March 2020
    February 2020
    December 2019

    Categories

    All

    RSS Feed

    Picture
Powered by Create your own unique website with customizable templates.
  • Home
  • Bio
  • GLOBE
    • GLOBE Videos
    • GLOBE Gallery
    • Sensational World of Sensors
    • GLOBE Blog
  • TRAVIS
    • TRAVIS Videos
    • TRAVIS Blog
  • SUBCLASS
  • Other Academia
    • Soundscapes
    • Augmented Props
    • Sofra Ensemble
    • Music Tech Works
  • Resources
  • Contact