Arduino project not working with battery

Sorry if this does not belong in this category.
I am trying to make a remote control Nerf gun. I am trying to setup the transmitter and receiver and they work when I plug both of them in the computer but when I replace it with a 9 volt I do not see the transmitter led light up. I am using a arduino uno and a mega. Has anyone have this trouble before?? I hooked it up to a dc box plugged into a wall and it still did not light up so it is not a power problem.

If you are asking if anyone else has experienced the phenomenon of something not working when, by rights, it should, then the answer is, of course, yes. If it helps, you are in good company.

Now, to get further, you have to provide (a) the code you have written for both parts and (b) the schematic or, at least, a picture of the wiring diagram.

A 9V battery a power supply it is not. Go to batteries with more capacity such as several AA cells.

gilshultz:
A 9V battery a power supply it is not. Go to batteries with more capacity such as several AA cells.

Why????? 9V batteries should be fine for testing.

@ the OP. Are you sure you have connected it to the right point on the board? Check the output of the onboard regulator.

What I am saying is that it works on the computer so there is nothing wrong with the code and the wiring. I also had a wall socket to power converter hooked to the arduino and it still did not work so it is not a power problem. Also I have done this before with the same code before with a remote controlled car and it worked fine. I also tried it on multiple different arduino boards.

Did you check the output of the regulator on the board. This is not used when being powered by the PC via USB. I know you said it is happening on multiple boards so it is pointing to one thing, the input power. Check the wall plug for output voltage.

Thank you for your response,first of all how do you check the regulator on the arduino? Then for the input power the dc box variable power supply(goes up to 32.5 volts and 2 Amperes) that I used to power still did not work on the arduino so I do not think this is a power issue.

Can you confirm you have 5V and 3.3V on the power header? Use a meter and measure from the 2 pins th Gnd.

ok will do

I checked the 5 volts with a battery and it was giving me 7 volts. Then I put a 5 volt regulator to connect to the 5 volts for the transmitter. Then I checked the data pin. On the computer it was .01 with the multi-meter. So I put the battery on again and then it said that the data pin was 7 volts too! Is it possible there is something wrong with all my arduino's? I have had most of them for at least 4 months now.

The regulator will be the chip with 3 pins on one side and a larger tab on the other side near the power connector. If you measure between that tab and ground with the battery attached you should read 5V, the same if you use your power supply. Making sure you are connecting these to VCC or Vin and not 5V.

When I measured the tab and ground it measured 9 volts. I have powered the arduino with a 9 volt battery before and connected the vcc to 5 volt and ground to ground does this break the arduino???
Just making sure, I am measuring with the multi-meter on 1.5 volts this is correct right?

Can you please draw a schematic of how you are hooking this up. Something is not making sense. You should not see 9V at that point if the regulator is working. Where are you actually applying the 9V?

You should not connect VCC to 5V. That could and probably will blow the micro.

There is the attachment project. I think you are right and my arduino's are toast. I tried it with 2 computers plugged into each of them and did not work.

Arduino battery project schematic.pdf (84.4 KB)

I am not liking your chance of them being ok but you never know your luck.

Apply the 9V to the Vin pin and see what is on the tab of the regulator. If it is 5V and it is not working you might need some new chips.

Yeah, tried it but still did not work oh well, at least I know not to power my arduino project through 5 volts again thanks guys.