In the project I am using Arduino Mega 2560, L293D, 4 gear motors, flame sensor, IR proximity senor and pushbutton(Which runs motors anti clockwise when pressed). Flame sensor will sense and motor will start rotating clockwise and IR proximity sensor will help to stop it Push Button will run motor anti clockwise when pressed When I powered Mega2560 by providing 12v to Shield the Mega2560 starts to get hot.
Motor: Hennkwell PZ22GR9120R-084BBH (Dont know how much current it need)
You can't power things from an Arduino. 12v is the upper limit of the supply to an Arduino only powering itself. Get a real, solid 5v supply and bring it in on the 5v pin and power everything from that, drawing nothing from the Arduino.
The way that the linear 5V voltage regulator on the Mega works is to drop the excess voltage from the input (12V) to 5V. The excess voltage times the current that the regulator must supply is the power that must be dissipated as heat. The regulator is not heat sinked so it gets hot. Sometimes hot enough to shut itself down.
When you supply an external well regulated 5V through the 5V pin, you bypass the weak on board 5V regulator. Just make sure that the external supply can supply the required current.
Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png? Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.
Can you please post link to data/specs of your motor?
Can you please tell us your electronics, programming, arduino, hardware experience?
L293D is placed on Mega2560. I give 12v/1.5A to motor shield which also power Mega2560 and Arduino starts to get hot.
1)4x12v gear motors are connected with L293D
2)Flame sensor on digital pin 24
3)IR Proximity sensor on digital pin 26
4)Button on digital pin 27
Further I want to connect single channel relay on digital pin 28 ( Relay connected with Solenoid valve (12v/1A) )
and small servo motor on digital pin 29.
Please also guide me how can I power and make all components working with only one supply (How much V/A required? )