Reading 50W solar panel from arduino uno serial monitor

Hi guys i'm new to arduino,
may i know how can i connect a 50w solar panel to my arduino in order to show the current and voltage of the dc output from the solar panel?

from my research i can use voltage divider to lower down the dc voltage output to 5V and use a 20A hall effect current sensor to get the current reading.
(correct me if i'm wrong)

but the major problem is the connections and codings. any pros here willing to help out or any link can i refer to? (i'm a newbie so reading the codes will be a problem for me as well)

Your research produced the correct results.

The Arduino software development package (the IDE) comes with a number of simple examples on how to read voltages, blink lights, print on the serial monitor, etc. Please work your way through those first to learn how to use the Arduino, and you will be better prepared for your project.

i cant seem to find post on how to connect the solar panel to ACS712 current sensor and read it in Arduino Serial Monitor. anyone have a connection map and codes? The codes i found through the internet does not seems to work for me.

Google for: acs712 arduino

I did that and it found all sorts of examples. Google is your friend.

but the major problem is the connections and codings. any pros here willing to help out or any link can i refer to? (i'm a newbie so reading the codes will be a problem for me as well)

Write code which can read and do what you want with two voltages in the 0 to +5V range, and supply that for test from a 10kOhm potentiometer such as a scrap volume control knob or a small screwdriver adjusted potentiometer.

On pinboard, referring to the product datasheet of your hall sensor, get to 0 to +5V for 0 to Isc of your solar panel (probably about 3 Amps) and test that with a DC benchtop power supply if you have one.

Also on pinboard, look up Voc of your solar panel. For example for mine that is 22 Volts.
Multiply by 1.1 for exceptionally bright cold weather : 24.2 V maximum expected.
Make a potential divider to get 24.2V down to <=5V such as 5.1kOhm plus 20kOhm
Test that when connected to your panel, the middle of this potential divider is always < 5V. If not then you got something the wrong way around.

i cant seem to find a simple and working 20A acs712 current sensor code.
i just need to read the current from a connected 9V battery to a LED and 1M resistor to arduino.
i get lots of weird numbers

The current through the LED/resistor combination can be calculated from Ohm's law: i = (9-1.9)V/1Meg = 7.1 microamperes, assuming a fresh battery and a red LED.

That is about 100,000 times smaller than the smallest current that the ACS712 can reliably measure.

jremington:
The current through the LED/resistor combination can be calculated from Ohm's law: i = (9-1.9)V/1Meg = 7.1 microamperes, assuming a fresh battery and a red LED.

That is about 100,000 times smaller than the smallest current that the ACS712 can reliably measure.

then how can i measure the current using the led as the load?

The ultimate problem im facing is how to MEASURE the 2-5A current output from the solar panel with my arduino? what equipment do i need? i already have a acs712 20A but i dont know what else do i need to read the current.

please help. i'm really stuck here for quite some time

When I typed 'acs712 20A' into Google one of the suggested searches was 'acs712 20A arduino code'. I took that suggestion and the first result was this:
http://henrysbench.capnfatz.com/henrys-bench/arduino-current-measurements/the-acs712-current-sensor-with-an-arduino/