Multiple OneWire Buses

missdrew:
I agree - normally a power source (A common point of failure) is specified at 110% at MINIMUM of the power requirment of a project, I normally try to provide a power supply of 150%, as the higher the overhead the easier the supply has to work & (in my head) should not be under any adverse straign.

Is that with or without the customary derating of Chinese made power supplies?

sabit068:
Hi! I have connected 16 DS18B20 temperature sensors with Arduino Mega by using 2 digital pins as one-wire bus. I also have a 20*4 LCD & an sd card module connected for data logging purposes. The problem is that, the sensors are not getting enough power. The power goes immediately after starting. I'm using a 5V 2A external adapter for the Arduino. Is there any solution? Should I use a 12V 2A adapter? Thanks in advance.

You need to post a diagram of exactly how you have connected these sensors, the arduino and the power
supply - a picture is much clearer than words for this.

The problem is almost certainly not what you think, we need all the information to figure this out.

@sabit068

Your topic was Moved to it's current location / section as it is more suitable.

Could you take a few moments to Learn How To Use The Forum

How to get the best out of this forum Installation & Troubleshooting

Hello, Welcome to the Arduino Forum. This guide explains how to get the best out of this forum. Please read and follow the instructions below. Being new here you might think this is having rules for the sake of rules, but that is not the case. If you don’t follow the guidelines all that happens is there is a long exchange of posts while we try to get you to tell us what we need in order to help you, which is frustrating for you and frustrating for us. The people who try to help with your pro…

It will help you get the best out of the forum in the future.

Your OS and version can be valuable information, please include it along with extra security you are using.

Always list the version of the IDE you are using and the board version if applicable.

Use quote or add error messages as an attachment NOT a picture.

How to insert an image into your post. ( Thanks @sterretje )

Add your sketch where applicable but please use CODE TAGS ( </> )

Add a SCHEMATIC were needed even if it is hand drawn

Add working links to any specific hardware as needed (NOT links to similar items)

Remember that the people trying to help cannot see your problem so give as much information as you can

COMMON ISSUES

Ensure you have FULLY inserted the USB cables.

Check you have a COMMON GROUND where required. ( Thanks @Perry)

Where possible use USB 2.0 ports or a USB 2.0 POWERED HUB to rule out USB 3.0 issues.

Try other computers where possible.

Try other USB leads where possible.

You may not have the correct driver installed. CH340/341 or CP2102 or FT232 VCP Drivers - FTDI

There may be a problem with the board check or remove your wiring first.

Remove any items connected to pins 0 and 1.

COMPUTER RELATED

Close any other serial programs before opening the IDE.

Ensure you turn off any additional security / antivirus just to test.

There may be a problem with the PC try RESTARTING it.

You may be selecting the wrong COM port.

Avoid cloud/network based installations where possible OR ensure your Network/Cloud software is RUNNING.

Clear your browsers CACHE.

Close the IDE before using any other serial programs.

Preferably install IDE’s as ADMINISTRATOR or your OS equivalent

ARDUINO SPECIFIC BOARDS

CH340/341 based clones do not report useful information to the “get board info” button.

NANO (Old Types) some require you to use the OLD BOOTLOADER option.

NANO (ALL Types) See the specific sections lower in the forum.

NANO (NEW Types) Install your board CORE’s.

Unless using EXTERNAL PROGRAMMERS please leave the IDE selection at default “AVRISP mkII”.

Boards using a MICRO usb connector need a cable that is both DATA and CHARGE. Many are CHARGE ONLY.

CREATE editor install locations.

On macOs ~/Applications/ArduinoCreateAgent-1.1/ArduinoCreateAgent.app/Contents/MacOS/config.ini

On Linux ~/ArduinoCreateAgent-1.1/config.ini

On Windows C:\Users[your user]\AppData\Roaming\ArduinoCreateAgent-1.1

Performing the above actions may help resolve your problem without further help.
Language problem ?
Try a language closer to your native language:

中文 (Chinese)

Deutsch - German

Español - Spanish

Français - French

অসমীয়া, বাংলা, बड़ो - India

Italiano - Italian

Nederlands - Dutch

Portugues - Portuguese

Россия - Russia

Scandinavia Swedish, Suomi - Finnish, Norsk - Norwegian

Thanks to all those who helped and added to this list.

sabit068:
The problem is that, the sensors are not getting enough power. The power goes immediately after starting. I'm using a 5V 2A external adapter for the Arduino. Is there any solution? Should I use a 12V 2A adapter? Thanks in advance.

The solution will be found in a better definition of the problem. You might start by explaining how you know how the power goes immediately after start, what do you see, and how immediate is "immediate"? One thing you can be sure of is that, if you have a 5v 2A adapter in your hand, replacing it with a 12v 2A adapter is most definitely not a solution.

These sensors require a max of 1.5mA when active, and virtually nothing when not, which means that not providing enough power is rather difficult. You could supply the sensors direct from the adapter, but I don't think you should have to. You could prove the matter by removing all but a couple of the sensors.

One fair possibility is that you have wired the DS18B20s incorrectly, so you might check that. If you hold the sensors and they get very hot, you know where all the power is going.

We could also ask, if the DS18B20 are disconnected, do the LCD and SD card behave normally?

If yes, then we need to see more.
If not, we need to see more.

OP, the Guidelines for Reliable Long Line 1-Wire Networks article from Maxim may be of interest.

There is a whole lengthy discussion of this same question here. OP, do not cross post.

sabit068:
Arduino Mega by using 2 digital pins as one-wire bus.

Two data pins? For a single OneWire bus? That sounds like a mistake.
Are you using Parasitic Power (two wires) or are you running a 5V wire to the sensors, along with Ground and OneWire (three wires)?

Don't power up your sensors using Arduino Power Pin, instead design a small power supply. I normally use LM7805 and to increase the current rating, you can connect multiple ICs in parallel.

@sabit068

TOPIC MERGED.

Could you take a few moments to Learn How To Use The Forum.
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum.

@sabit068

Your topic was Moved to it's current location / section as it is more suitable.

Could you also take a few moments to Learn How To Use The Forum.

Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.

@sabit068

Please do NOT cross post / duplicate as it wastes peoples time and efforts to have more than one post for a single topic.

Continued cross posting has resulted in a time out from the forum.

Could you also take a few moments to Learn How To Use The Forum.

Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.

oliviasmithh900:
Don't power up your sensors using Arduino Power Pin, instead design a small power supply. I normally use LM7805 and to increase the current rating, you can connect multiple ICs in parallel.

Or you can just use a 5V supply with sufficient current rating, even easier (and probably cheaper). 20A, 30A or more is readily available. After connecting the sensors, such a power supply no doubt has enough left to also power the Arduino.

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