Arduino mega project

Hello, I have a few questions. I tried to make a schematic on my sensors and I can't figure out how to put the pull up resistors.

The last sensor needs pull up resistors and I have no idea on how to put them like here:

Also, how could I connect a 9V fan? Should i use a relay?

Are you using an ESP32 or a Mega2560?

Mega. Sorry, i forgot to mention that I'm using Arduino mega.

A driver is required. A relay, or simpler, a MOSFET, If it is a simple 2 wire fan.

The MOSFET must be able to handle the fan stall current,

So i should use a MOSFET for the fan, since is a 2 wire 9v one, thanks.

Would be my recommendation given the current information.

1 Like

Then use 56K pulled up to 5V for all three pins.

1 Like

Danke!

Alright, thanks!

Is this the way to use what u said?
IMG-20240417-WA0001
The blue wires are connected to analog pins of the Arduino.

4c0b

I know, there are 2 separate wires but on fritinzg it seems like there s only 1 wire. Also i know that i have to use 56k resistors. Beside those things, everything is ok, right?

Yes but make sure the GND (black wires) is connected to the Arduino GND

Yes, I've already done it. Thanks!

Then you should be good to go.

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