Using Arduino Mega ATmega2560 ADC

Dear all, I am currently doing a project (degree level) and as a microcontroller I am using the Arduino Mega ATmega2560 since I have to connect relays, keypad, lcd and input signals to the micro.

My project consists of having a gas cylinder (15kgs max) and the gas from it is used to refill the cars airconditioner. The gas cylinder is put on a load cell (giving output voltage due to the weight of the cylinder). The analog signal is amplified to 5V using a non inverting opamp and it enters one of the analog pins.

I am new to arduino and have no idea of how I can program the ADC and havve found few very basic examples on this site.

Can any suggestions be giving to me or examples concerning ADC.

Thank you

I am new to arduino and have no idea of how I can program the ADC

Good thing the Arduino team took care of that for you, then.

Can any suggestions be giving to me or examples concerning ADC.

You have something connected to an analog pin, 4, for example.

int pinVal = analogRead(4);

The value stored in pinVal will range from 0 to 1023, and is a function of the input voltage. Making sense of the value is up to you.

It is good advice for a beginner to always look at the reference and learning sections of this site.

http://www.arduino.cc/en/Reference/AnalogRead