Connect two sensors at same time on the arduino board

Hi
Can I connect two types of sensors (analog and digital) at the same time on the arduino uno board or the arduino d1 wifi board? I will use ad8232 and bmp180 sensors.

Yes

but how ??

Umm... With wires!

What problem do you anticipate?

The BMP goes on the I2C bus, pins A4/A5 on Uno; the AD8232 on one of the vacant anaolg Ax pins. Took me 2 mins of Google to find that out at adafuit and Sparkfun.

added pix-

image

image

if I concatenated the two programs, during the simulation I have a sensor which gives digital values ​​the other sensor gives an analog signal or continuous values

Yeah, and?

What are you asking?

how's that in the serial monitor?

I can't use delay() because ad8232 sensor gives us analog signal

Maybe if you read the forum guide in the sticky post at the top of the forum section, it will give you some ideas about how to ask a question that others are able to answer.

Using delay() does not prevent using analog sensors. Why do you want to use delay() anyway?

Please just tell us what your problem is.

Hello Exo12
Keep it simple and stupid.
Run some tutorials to the hardware selected.
If you are happy with the results of the tutorials you can merge these to the project by using control structures.

Have a nice day and enjoy coding in C++.
Дайте миру шанс!

1 Like

first i think i was clear,i will be using the bmp180 sensor alongside the ad8232, which is a digital sensor, so i can use delay() but my problem is how to get logical results if i concatenate the two programs.

What does that mean?

Have you "concatenated" the two progams and tested to see if the results are "logical"? If so, and they're not, give the code and indicate what's not logical. If you haven't, try it.

That's up to those trying to understand to say surely; I have no idea what the issue is that you're trying to solve.

Let me show you how how unclear you have been in this topic. In your first post, your question was

Which is clearly a hardware question.

Now, your question has changed to

Which is obviously a software question.

So you need help combining 2 programs, not written by you, and you don't have the programming skills to understand the programs you have, certainly not the skills to combine them?

Have you attempted to combine them? If so, post your attempt and describe what happens when you compile/verify it or run it, and what you wanted to happen. If you have not attempted to combine them, post both sketches (remember I asked you to read the forum guide).

I am amateur and I do my best to achieve something, I failed to express clearly the problem sorry, thank you for your time.

But what you haven't done is present any code that doesn't provide you with the "logical" output that you desire, along with showing what's wrong with the output.

I tried several times and I did not have satisfactory results for this I asked "can I concatenate the two programs and have the results that I had when I simulated each sensor ??"

I will share the error I got soon

Hello Exo12
Post your current sketch, well formated, with comments and in so called code tags "</>" and a schematic, not a Fritzy diagram, to see how we can help.

Have a nice day and enjoy coding in C++.
Дайте миру шанс

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