I2C sensor benefits

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello, I'm using an ATMEGA328PU to create a device which reads UV levels, initially I was going to use an ML8511A but then I came across I2C and the SI1133, I'm not sure of the pros/cons of this type of sensor in respect to the atmega and possibly speed.

If anyone can just outline the difference between them thatd be great, thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 2

I doubt that speed is an issue with such things but what is likely of more interest is that the ML8511A is just an analog output so to "read" it you would be connecting it to the 10bit ADC in a 328 but the SI1133 already does analog to digital internally and uses a 23 bit ADC. So that is the likely attraction of using it.

 

Other than it's a question of 2 pins (analog + Gnd) versus 3 pins (SDA, SCL, Gnd)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

The ML8511A is a voltage output device which would connect to your A/D input of your AVR where you would need to set up resolution and convertion in your firmware.  The SI1133 does all of this for you and simply gives you a reading for oyu to do with as you please.

 

JIm

 

 

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OH that's quite nice I'll have to look into this thanks.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1


 

I went to digikey.com to compare prices. The Si1133 seems to be about $1.64 one-off while the ML8511A says:

 

 

That seems to be another pretty compelling reason why the Si1133 is "better" ! ;-)

 

PS thinking that some other places might still have old stock I also tried:

 

 

I fear the writing is on the wall!

 

Last Edited: Tue. Sep 3, 2019 - 01:39 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 2

Here is a source for I2C if you get stuck that I used to unstuck me on a project:

http://homepage.hispeed.ch/peter...

The I2CMaster is pretty easy to use and get started writing your own drivers based around this work.

Cheers,
Jesse_G an EE writing firmware...what could go wrong...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You are absolutely right, the report I was basing my idea off of is quite outdated, I'll take this as enough proof haha