it works. I've used a 27MHz 2Ch Receiver and transmitter. But if the rc transmitter is turned off, the values of [ch2 = pulseIn(7, HIGH, 25000); ] gets strange.
I have run into these problems time after time when running Arduino off external power. What you should do is to add some capacitors across 5v and GND. It's generally a good idea to do this with any power supply to eliminate noise. If you are using the Arduino to regulate it's own voltage, put caps between vin -> GND, and +5 -> GND.
EDIT:
Also are you doing anything else with your Arduino? What I mean is when your are reading the values is anything else happening or drawing power?
When the transmitter is off, the receiver is outputting noise. It's the nature of the system. Since this is 27Mhz AM system, it must be very old (~20 years). If you want a reliable output from the receiver when the transmitter is off, you need a more modern system.
I have used modern AM 27mhz receivers and typically when the transmitter is off, the the receiver outputted little noise. Cheap rc cars and planes ship with these am radios still. They are not uncommon. Try seeing what the arduino reads if there is absolutely nothing else drawing power from the system. Also, some code would help.
but there are no noise if I use battery instead of usb power.
Which is the cheapest modern system and easy to use?
I haven't flown model planes for about 20 years and even then, AM was not being sold any more. I really wouldn't know what to tell you, but a quick look at some RC hobby site should make it clear. My old system is FM operating at 49MHz and was being replaced at the time with an FM/PCM system of some sort. I would suspect that anything you buy, even the cheapest system will give you better performance and will be operating on higher frequencies. It will also likely be much easier on the batteries.
You are fortunate that your system is showing its weakness to EMI or RFI noise now instead of later when it causes a problem. The reason that AM was replaced was that it was very susceptible to interference of all types which results in lost/crashed planes.
Wow, I didn’t think you could still get a transmitter that didn’t have an LCD display. Cheap as that is, it will probably be more dependable. I know there are receivers (and have been for some time) that will output fail-safe pulses when the transmitter is not being received.