Problems getting arduino connected to Laptop

Hello, everytime when I plug my elegoo into my laptop it makes the connecting sound and then a second later it makes the disconnecting sound and it wont pick up the port the elegoo is plugged into in the IDE. I have tried multiple different ports, cords, and even a different laptop but they have all ended with the same problem. I am using an elegoo uno r3. It has worked on simpler programs in the past. Everything connects and works fine unless I plug in the power cord to the arduino from the breadboard. Below is the exact tinkercad I am using. https://www.tinkercad.com/things/0Qo4PFFvZtA-daring-rottis-esboo/editel Help would be greatly appreciated as I need to get this done within the next couple days. Thank you

1 Like
[quote="carterd6676, post:1, topic:1244733"] works fine unless I plug in the power cord to the arduino from the breadboard [/quote]

Do not connect Arduino USB and Arduino external power simultaneously. <- incorrect. see post 10.

This is probably when something happened. What were you using? Motors? LED strips?

You can look at the tinkercad. I haven't even plugged in the external power, only the computer. The power cord I mentioned was the one from the arduino to the breadboard. The simpler programs in the past consisted of a photoresistor that activated a led.

1 Like

No.

You can't?

Does anyone else have any other ideas?

Do not bump your topic.

Im sorry, I just need this figured out

But you do not participate.

Your topic does not indicate an IDE problem and therefore has been moved to a more suitable location on the forum.


This is your design?

In an attempt to understand

  1. If nothing is connected to the Arduino, your PC recognises your Uno? Nothing means no power wires and no signal wires etc., only the Uno's USB to the PC.
  2. If you connect your circuit completely (5V, GND and signal wires) as shown and next connect the Uno's USB to the PC, the PC shows the behaviour of connecting/disconnecting? If yes, it sounds like your circuit is drawing too much power; the question is why.

This is confusing.

  1. There is no power cord in your drawing, only a 5V and a GND wire.
  2. It kind-off implies that the breadboard has its own power source. If that is the case it's missing in your diagram and we don't know what it is. Further it's unhealthy to feed power into the Uno's 5V pin and at the same time power it from USB.

@xfpd, it's safe to connect e.g. a 9V power source to the Vin of an Uno/Mega and at the same time connect 5V through USB. It's not so great to connect 5V to the 5V pin and at the same time power through USB.

Thank you. I have been doing this for no reason, wrongly assuming competing power supplies.

The Uno and Mega have a FET that is controlled by the LM358; the FET blocks 5V from going to the USB if a voltage is applied to Vin.

For a Nano, there is a diode with the same functionality.

I mean only when the 5V cord is plugged it it disconnects (The red cord)

Yes this is what is happening, thank you

I just realized my lcd is slightly different then that in the picture its last two pins(that are shown to be LED in the tinkercad) are A and K on my lcd. I have it wired the exact same, would this make a difference?

Also, when I plug it in the L, orange light turns on as well as the ON green light, but a second later the L light goes dim and turns off and then it disconnects

That's the theory, and I'm sure it works on official Arduinos.
But not on most clones.

The Elegoo is a clone, and is using the wrong type of LM358 (not rail2rail, as required here).
Therefore the Elegoo R3 does not disconnect USB supply when powered from V-in.
This can be dangerous for the attached laptop.

I notified Elegoo that the wrong LM358 was fitted on their boards ages ago,
but they did not react.
Leo..

@carterd6676

Post a real picture of the setup.
Leo..

Power pins 1,2 seem to be swapped.
Leo..