Doubt in powering the arduino mega 2560 through the dc jack


So i'm doing a portable AQI (air quality index) monitoring device which consist of all the sensors in the above image . so i'm using a arduino mega 2560 for this project and if use a usb wire to power the board with all sensors some sensors are not working . so i'm planning to power the board using a dc power jack , so someone pls suggest me which dc power jack i should buy ( with correct voltage and ampere) and also planning to have a mini 5v cooling fan

Hello shadox9987

Post a schematic to view project details.

Using the DC jack, you will powering the board and all the modules through Mega's onboard voltage regulator, which was not designed for that.
Simple speaking, using the DC juck, you power the modules from arduino. It is nor the way, the arduino board is not a power supply.
You need an external power supply for your modules.

How do you know that power is the big issue when using USB? Not working can also be because you have bugs in your code.

You have to be very careful. If you power a module with 3.3V, you can (in general) not connect its input to a Mega output.

So I suggest that you follow @paulpaulson's advise in post #2 and provide a proper wiring / schematic diagram.

Note:
Although I'm not familiar with the SDS011 I do not directly see a reason why you would the Mega pins 10 and 11 for the SDS011; the Mega has 4 UARTs and you so you should be able to use RX1/TX1 or RX3/TX3.


This is my schematic diagram . So i'm planning a to make 3d box in which these all sensors will be placed with the mega board inside and i need only one power supply to power the board making it a portable device

can someone help me with this

Portable using an Arduino Mega?

yes

If you have 5V mcu, you need 5V sensors. If you power sensors at 3.3V and have data lines at 5V, don't expect them to work (reliably).
One option is to use level shifters on data lines.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.