1

I pulled my Arduino set out of storage yesterday and was very upset to find that it is not working for some reason. Before I explain the problem, let me explain the situation.

Hardware (all DFRobot):

Arduino Mega 2560

Arduino Mega 2560 4x-platform breakout board

GPIO Expansion Shield V1.0

I/O Expansion Shield V7.1

8 Channel 5V Relay Board

4 LED/Resistor set up

1 digital speaker

1 digital humidity/temperature tester

7 analog chemical air chemical testers

The whole project: enter image description here

LED Portion: enter image description here

Relay Portion: enter image description here

Sensor Portion: enter image description here

Pin Connections: enter image description here

In this 4th photo, the two analog pin sets in use right in front are the ones I remove in order to gain control again. if those are plugged in then it doesnt work. It has nothing to do with those pins specifically, If I remove any two it works again, those ones are just easiest to remove to get it to work: enter image description here

Explanation of project:

This is basically a test station, where I can hook up what ever I want and see how it works and then move onto another peripheral piece of hardware and make them interact. I went with the 4x-platform breakout board as to maximize I/O space. Once a project is done, I Velcro band them together as to not get them confused and move on.

Explanation of problem:

When I plugged the Arduino into my PC the first time, the lights came on the Arduino and then after about 15 seconds it powered down and the lights went off. My PC did recognize it while it was powered up and the port option under tools in the Arduino IDE was available and I could select the port. After the power down and problems I realized something must be up.

I considered the fact that maybe the Velcro was constricting the wires and causing them to short circuit through the rubber insulation, but couldn't find any info on that online.

After this I decided to cut the PC out of the equation and try just plugging it into the wall, 1st, via USB to 5V1A wall charger, it stayed on for a few seconds and then turned off, 2nd with a 5V2A wall charger, same scenario, 3rd via the barrel jack with the same wall chargers, with no success.

I undid all of the wire bundles to rule out a short circuit, which it did. I then found out after much trial an error that if I removed any 2 of any analog or digital wires, the lights would stay on and it would work.

Now, with two cables removed so it did not lose power, I plugged it into my PC and am now able to program it again and see it in the port in the IDE, but as soon as I plug in another 2 analog or digital peripheral devices it will lose all power and stop working.

I also tried plugging my DFRobot Beetle micro-controller in with the same USB cable and it worked perfectly. I also tried resetting the micro-controller, to no avail.

Conclusions so far:

A short between rubber insulation at 5v is extremely unlikely

one would think that if a mega board was designed to have so many I/O pins you could actually connect to all of them with out any problem.

Since this happened on both the PC and wall charger scenarios, and the problem seems to be associated when disconnecting any 2 sensors, the problem is most likely at the micro-controller level.

Questions:

are all the peripheral devices draining the board so much that the USB port on the PC or wall chargers cant handle it?

How do I provide enough power to the board if this is the problem?

Or is this simply faulty board?

If it is a faulty board, what causes this and how do you avoid it?

Just to clarify, looming the wires together into bundles is OK right?

Finally, any help would be really appreciated, this is the first time this has happened and it sucks.

6
  • Pics would be nice here. Try using something like Gimp to resize the images you have so they are smaller. You can also use a free image storage site and post links to them. Nov 6, 2017 at 17:05
  • I was able to do it by print screening, hope that helps. Nov 6, 2017 at 18:33
  • Thank you for the pics. Thank helps, and yet it doesn't... Soooo many wires! :-) Nov 6, 2017 at 19:07
  • Is that bad practice? I honestly don't know, the plan was to fill all the pins eventually. Nov 6, 2017 at 19:11
  • Actually, I was just poking a little fun at you. Sorry if that didn't come across that way. AFAIK, it's not bad practice, it just makes it hard to trace things down. Having a lot of wires can lead to EMF across the wires, but twisting them or otherwise shielding them helps. I built a CNC machine using an Arduino Mega and I have Waaaaay more wires than you do, so you're not alone. Nov 6, 2017 at 19:45

1 Answer 1

0

First off, that is one heck of a rig. I'm impressed to the point of "I gotta get me one of those."

Bundling your wires shouldn't have the kind of impact you are seeing, unless there are bare wires touching. You might get induction interference, but not a total shut down.

From what I can see here, it looks like there's so much stuff connected to the Arduino that it's probably starving it for power. You should look into using power rails for Gnd and +5v.

You will also need to check if you are supplying it with enough amps, too. Your computer's USB port only supplies 0.5A, unless it happens to be USB3, then it's 0.9A. Even your 5V1A PSU might not be enough. Consider finding a 2-5 amp wall wart to do some more testing with. There are usually spec sheets with components, so you'll need to add all the power draw for all the components, including the Arduino, and make sure you have more than enough to meet that calculated power draw. Exceeding it by at least 10-20% is usually considered good practice, even for a test rig.

Consider powering your rig's new power rails with the extra PSU even when the Arduino is plugged into your computer. As long as you make sure you aren't trying to take power from the computer and the PSU at the same time with the same component, you should be fine. (Don't cross the streams.)

There could be a short or feedback loop somewhere in your sensors that's causing the extra drain. There are so many wires here that it'd be easy to hook up something backwards. Along with the number of wires, the bundling doesn't let SE-us help you track that down.

You might want to look at the direction your pins are facing. It was an odd situation for me, but having two of the metal clips facing each other was enough for a short. In your "Relay Portion:" pic, they are all facing the same way, which is good. See if there are places where that's not the case and fix it. Like I said, it was an odd situation, but it's a phantom problem you can avoid.

8
  • Oh ya I love the DFRobot stuff, its really cool, I saw that Multi-platform shield and immediatly went for it. So when you say use a power rail do you mean buy a separate wall PSU and run the power to a separate breadboard, then run all power from this breadboard. Or do you mean wire the separate PSU directly into the shields via the screw terminals so that all the 5v/GND pins on the shield themselves are run off the external PSU? Nov 6, 2017 at 19:59
  • You'll have to forgive me, as I'm a complete novice when it comes to actual power calculations. So you're saying calculate out how many volts & amps each piece of hardware consumes and then find a power supply which will output what I need. The volts wouldn't be part of that thought right? Just for example, 22 devices at 5v each would need a full 110, that cant be right can it? I just need to make sure that the PSU has enough AMPS to push all the power through, correct? Nov 6, 2017 at 20:04
  • A power rail is pretty much anything that allows you to have 1 PSU power multiple things at once, without having to go through other components first. The screw terminals might do the same thing. images-na.ssl-images-amazon.com/images/I/… Nov 6, 2017 at 20:28
  • For power calculations, as long as they are all the same voltages, you can just add the amps together. So, 5x components that use 5v @ 0.5A, you'll need 5v @ 2.5A to power it. If you have another 2 components that are 12V @ 1A, then you'll need another PSU to supply 12V @ 2A. Nov 6, 2017 at 20:30
  • Alright, the local electronics store (the only one) only had a 5V3A power supply. I will try hooking it up with a multi-meter and see how many amps it draws tonight and try adding them up as well to see if it matches. I'll try a breadboard first and then try the terminals after some more research. The PSU he gave me has a barrel jack so just out of curiosity, is there anything explicitly wrong with using the external PSU in the barrel jack while using the USB for programming? Or is the Micro-controller not smart enough to prioritize the better power source? Nov 6, 2017 at 21:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.