AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Arduino wiring library download2/22/2024 Look at the picture to see how it should be connected, but a 4.7KΩ resistor needs to be connected from SDA to 3.3V, and another one from SCL to 3.3V. On an Arduino mega, SDA is digital 20, and SCL is digital 21. You will need to drop the library into your Arduino library folder for it to work, but we will get there.Īs for hooking this up, on your Arduino (everything but the mega) SDA is on analog input pin 4, and SCL is on analog pin 5. So that's what I'm going to do, I'm just giving it to you here in its working version to save you some time and headache. because it is open-sourced I can make those changes, and redistribute it. To complicate things even more, the i2cmaster wont run on the Arduino out of the box, some files need to be renamed and changed, and an extra txt file is needed to get it working. The standard wire library wasn't working for people, so we will be using the i2cmaster library instead. This is an I2C device like many sensors we have talked about before, but unlike all the I2C sensors we have written about before this, the MLX90614 can't use the wire library to communicate with it, so we will be using another library, also, unlike what we typically deal with, the MLX90614 is not on a breakout board, so it requires some pull-up resistors on both the data and clock lines (Typically, these are included on the board, we just don't notice them.) we at bildr did what we do best, we bought one, and took some time to make your lives easier and get this running. Then, looking around, the MLX90614 seemed to be giving some people a hard time when trying to connect it to their Arduino. I have had my eye on this guy ever since I saw it at Sparkfun, but never had a reason to get one. (Though 17bits split between -70 and 382 should give us 0.0034✬ resolution). That's 128X more precise than the Arduino's ADC, and means this little guy can tell the difference between 25✬ and 25.02✬ without even coming in contact. By reading the infrared light coming off an object, this guy can sense between -95 and 720ºf (-70 to 382.2☌) with 17bit resolution. The MLX90614 is a sensor that can do just that. But being able to read the temperature of an object without even touching it is simply awesome.
0 Comments
Read More
Leave a Reply. |