jon747
April 15, 2024, 5:38pm
1
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?
jim-p
April 15, 2024, 6:07pm
2
Are you using an ESP32 or a Mega2560?
jon747
April 15, 2024, 6:19pm
3
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,
jon747
April 15, 2024, 6:55pm
5
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
jim-p
April 15, 2024, 7:15pm
7
jon747:
Arduino mega.
Then use 56K pulled up to 5V for all three pins.
1 Like
jon747
April 17, 2024, 1:20pm
10
Is this the way to use what u said?
The blue wires are connected to analog pins of the Arduino.
jon747
April 17, 2024, 1:47pm
12
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?
jim-p
April 17, 2024, 2:09pm
13
jon747:
everything is ok, right?
Yes but make sure the GND (black wires) is connected to the Arduino GND
jon747
April 17, 2024, 5:00pm
14
Yes, I've already done it. Thanks!
jim-p
April 17, 2024, 5:01pm
15
Then you should be good to go.
system
Closed
October 14, 2024, 5:01pm
16
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.