Arduino Uno R3 Pinout Diagram. The arduino itself is being powered via its usb cable. You can identify the pin out and circuit diagram of it using the following figure.
The sensor has 3 pins gnd vcc and aout. Gnd should be connected to the ground of arduino. Gnd should be connected to the ground of arduino.
Liquidcrystalrs enable d4 d5 d6 d7 creates a variable of type liquidcrystal.
Pitch and roll calculation. The rw pin can be tied to ground instead of connected to a. Although these experiments have been illustrated using an arduino uno any arduino will work. External supply for arduino mega from range 7 12 volt is given with this port.