Menu

UV Sensor VEML6075 with I2C

Help
MBB
2018-10-06
2018-10-07
  • MBB

    MBB - 2018-10-06

    This is most likely NOT a GCB problem. Its probably an electronics problem but any help would be appreciated.

    I'm using the 18F4550 to read the I2C data coming from this VEML6075 UV Sensor https://www.sparkfun.com/products/14748. I'm using the HI2C functions of GCB.

    Since the VEML6075 operates at 3.3 volts I am also using a voltage level translator.

    I have pullup resistors connected on the 3.3 volt side and the 5 volt side. The resistors for the 3.3 volt side are part of the VEML6075 board. I tried disconnecting the resistors on the 5 volt side but the below results are the same.

    If I connect my Digilent Analog Discovery 2 Logic Analyzer
    https://store.digilentinc.com/digital-discovery-portable-usb-logic-analyzer-and-digital-pattern-generator/
    to the I2C ports of this PIC (PORTB.0 and PORTB.1) the GCB I2C ADDRESS software reads an address of 0x20. BUT if I disconnect the logic analyzer the software freezes. WHY?

     
  • Chris Roper

    Chris Roper - 2018-10-06

    Have you tried powering the 18F4550 from 3V3 rather than 5V and eliminating the level converter?

     
  • Anobium

    Anobium - 2018-10-07

    Ummmmm. What software locks up?

     
  • MBB

    MBB - 2018-10-07

    Chris,

    Great idea. Eliminating the level converter fixed it. Thanks!

    Anobium, it was the GCB program that interrogates the device and reads back the devices I2C address.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.