I am trying an arduino color picker and the color sensor works well when it is connected to the laptop. But once it is connected to 9V battery the results are not as accurate. Is it because the current from the battery is not stable? How should i stabilize ?
Welcome to the forum
If the battery is a PP3 intended for use in smoke detectors then it cannot supply the required current at the required voltage for an extended period. This is probably your problem.
Consider a power source with more current capacity such as 6 AA batteries in series
Hi, @malikamari
Welcome to the forum.
Can you please post your code?
Can you please post a copy of your circuit a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.
What model Arduino are you using?
Ditto...
Tom..
![]()
And... a classic Nano v3 (assuming you mean that Nano) has a simple/cheap USB backflow circuit, which means that the 5volt pin is 5volt when powered with 9volt on V-in, but more like 4.6volt when powered via USB. The measurement might be less accurate on USB than with a good 9volt supply.
The previous posts seems more likely. A colour sensor has a powerful illumination LED.
That, and the draw of the Nano might collapse an almost depleted or poor quality 9volt smoke alarm battery. Measure it's voltage under load.
Leo..
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.