Scetch and USB problem

Hi

I have made a program for my arduino
that works just perfect until i disconnect it from USB

does any one have an idea what could cause it
serial (USB) only prints lines if connected so why does it stop working if I disconnect?

Maybe it is simple but . . . . have your arduino another electrical supply to work stand alone?

:cold_sweat:

Hehe

Yes :stuck_out_tongue_closed_eyes:

Well :roll_eyes: . . . . how?

TheDozer:
I have made a program for my arduino
that works just perfect until i disconnect it from USB

serial (USB) only prints lines if connected so why does it stop working if I disconnect?

You are not giving us any useful information.
How do you know it is not working?
How is it powered when it is not connected to USB?
What is the Arduino doing?
What is connected to the Arduino?

...R

I´m Using the time lib with an rtc and if i set the time and are connected to usb it runs the pump connected to the arduino at set time.

if I set a new time and disconnect from usb it does not run.

It is probably so fu…ing obvious my error so I will shoot my self when I find it…
But at the moment I just don´t see it.

TheDozer:
But at the moment I just don´t see it.

So why not answer the questions here and maybe somebody will be able to help?

...R

I asked 4 simple questions in Reply #4 and I don't think you have answered any of them. When you do we may be able to make progress.

If you have a long piece of code add it as an attachment.

...R

Robin2:
You are not giving us any useful information.
How do you know it is not working?
The pumps does not run on set time...
How is it powered when it is not connected to USB?
Via vin 5v
What is the Arduino doing?
Compeering Time and date to run a dosepump for delivering right ml of fluids to an aquarium
What is connected to the Arduino?
Controlling 2 Motor controllers and a RTC

...R

You are not giving us any useful information.
How do you know it is not working?
The pumps does not run on set time...
How is it powered when it is not connected to USB?
Via vin 5v
What is the Arduino doing?
Compeering Time and date to run a dosepump for delivering right ml of fluids to an aquarium
What is connected to the Arduino?
Controlling 2 Motor controllers and a RTC

I'm not sure this deserves any more help. I can't imagine you could have given any less information if you tried.

The pumps does not run on set time...
So what does it do?

Via vin 5v
What power supply are you using - how many amps?
How is the voltage regulated?

Controlling 2 Motor controllers and a RTC
What motor controllers?
What motors?
How are the motors powered?

And every other scrap of information that may help someone to help you. If you are generous with your information it will encourage me to be generous with my time.

...R

I'm sorry

I obviously did not understand your questions.
I hope you manage to still find some time to help us less evolved humans when needed.
And I'm grateful that an experienced and professional person like you even considers to helping us noobs.

All good now no help needed anymore.

Found the error.
Bad LM7805 circuit caused this stage behavior.