Help installing 70 leds in 12v car battery

Hello everyone,

I have a project underway is a project that will make about 70 leds (1.75 Ma), flashing light among other things.

My doubts are as follows:

the safest possibility to connect the UNO in a car?

7805 lm, buck converter, or directly at UNO jack?

as the illumination of LEDs with resistors for all are 12v, and all will be fed in parallel, how do I connect them to the battery and 12v control by arduino?

I can use the TIP122? have another way?

as the code I have a doubt

if (estateButton1 == HIGH)
{
// Function .....

} Else if (estateButton1 == HIGH && estateButton2 == HIGH)
{
// Function ........ 2
}

whenever button1 is pressed or Button2 is pressed it goes sometimes in Function1 sometimes the function2

how to get around this?
use switch case? state of the previous button?

I am very grateful if anyone can help me.

Thank you.

excuse my English.

This part will NOT do what you want:

if (estateButton1 == HIGH) 
    {
    // Function ..... 
    } 
    else  // estateButton1 != HIGH
        if (estateButton1 == HIGH && estateButton2 == HIGH)  // Will never be true since estateButton1 != HIGH
            {
            // Function ........ 2 
            }

What might work is:

if (estateButton1 == HIGH) 
    {
    // Function ..... 
    } 

if (estateButton1 == HIGH && estateButton2 == HIGH)  // Will never be true since estateButton1 != HIGH
    {
    // Function ........ 2 
    }

or

if (estateButton1 == HIGH) 
    {
    // Function ..... 
    if (estateButton2 == HIGH)  // both HIGH
        {
        // Function ........ 2 
        }
    }

rhelberth:
as the illumination of LEDs with resistors for all are 12v, and all will be fed in parallel, how do I connect them to the battery and 12v control by arduino?

Arduino controls transistor(s) through resistor(s). The transistor(s) switch the 12V on/off to the led(s).

Why I put the (s)? I don't know if you want all the leds on/off together or be able to choose which to light any time.

If you can get 4.5V to 5.5V (hopefully closer to 5V) from varying 12V then it's okay to power Arduino with that.
But don't try and draw more than 200 mA through the board and 20 mA through any 1 pin.

If you make a stand-alone AVR chip version and run on internal clock then you can run 3.3V or less and keep your Arduino for other development. The UNO chip, a 328P, costs very little. :o)

I am very grateful if anyone can help me.

Post only code that you have compiled
Post using code tags - see the now to use this forum sticky.
Post a link to the sort of LEDs you are using.
Post what you think the schematic might be.

Get a better translation web page.