I'm trying to find a way to use two accelerometers (ADXL335/atmega2560) in the same time for vibration measurement (reading simultaneously). I'm too new (zero) in programming/electronics and need all preliminary information (code/wiring) to do this.
Has Anybody already realized this kind of project? Any help would be appreciated.
You can do this (with two only, for the ADXL345, more for others) using I2C. Basically, all of the I@C devices that you're using share a common SCL and SDA line (which usually go to the Uno's Analog 4 and 5, respectively), and the Uno tells the difference between them by their addresses. The address is determined by what you tie the address pin to; ADXL only allows +V and ground, I think (check the datasheet for all of the details). For some others (like TMP102), there are four options of things that you can tie it to, so you could have four of them. If you want lots of devices, there are multiplexers that can do that. In any event, I2C is a thing that you want to google.
It looks like the 335 is not an I2C device. I think that each pin is a separate analog output so, if you're willing to devote 3 pins per device, you should be fine. That means that you'll be using all of your analog pins for the two accelerometers.