i have this project that needs the use of this sensor (to keep track of the position and direction) of a solar panel. However, even tho i found a library for him, my biggest problem is on the montage with the arduino itself.
For what i've been seeing:
3v3 pin to the 3.3V arduino pin
G pin to GND arduino pin
SDA pin to A4 arduino (UNO) pin
SCL pin to A5 arduino (UNO) pin
However i'm not totally sure and didnt want to try and mess up the sensor. Any in-dept help?
As it's a 3.3V device you might need a bi-directional level converter. The Arduino pulls the I2C lines to 5V if you use the standard Wire library. According to the datasheet that's over the max. rating of the sensor.
Do you have a breakout board for the sensor (it's tiny)? If yes, post a link to the product!
The sensor is connected to the I2C bus. As you can have multiple sensors connected to these two pins you have to select the correct one by a unique address on the bus. Your sensor uses the addresses 0x1c to 0x1f, depending on the connections you give to the SA0 and SA1 pins. As you didn't tell us where you connected the pins I cannot say what address your sensor is listening on.
Yes, there is an explicit note (in red) on the linked page to remind you.
The reason about not mention sa0 and sa1 is that i do not know where to connect them
If the picture on the page is the state your module is in you don't have to connect sa0 and sa1 as they are pulled to GND using solder bridges on the board. It's good to test that using a multimeter on the board (without powering it!).
If my interpretation of the photos is correct (both address lines connected to GND), your device should listen to the address 0x1c.
pylon:
Yes, there is an explicit note (in red) on the linked page to remind you.
If the picture on the page is the state your module is in you don't have to connect sa0 and sa1 as they are pulled to GND using solder bridges on the board. It's good to test that using a multimeter on the board (without powering it!).
If my interpretation of the photos is correct (both address lines connected to GND), your device should listen to the address 0x1c.
Oh, i thought that red warning was just to be carefull about vcc and to connect it to the 3.3V pin on arduino. Well level converter it is then, do you think that a 4.7 Kohms connected to 3.3v and each pin (SDA and SCL) is enough like it says here: Arduino Playground - HomePage ?
About the address, and following the datasheet, when GNG | GND it is 0x1E ( Screenshot by Lightshot ) could you confirm with that print ?
Oh, i thought that red warning was just to be carefull about vcc and to connect it to the 3.3V pin on arduino. Well level converter it is then, do you think that a 4.7 Kohms connected to 3.3v and each pin (SDA and SCL) is enough like it says here: Arduino Playground - HomePage ?
"the Wire library activates the internal pull-ups on the UNO "
I believe those can be turned off by these after Wire.begin()
digitalWrite (18, LOW); // turn off internal pullup
digitalWrite (19, LOW); // turn off internal pullup
and then using pullups to 3.3V instead.