Sensor signal output to relay

Currently I want to use a tilt sensor to give signal to a relay.

For the tilt sensor, the VCC is connected to 5V, GND is connected to 0V. For the DO port (sig), I connect it to a bulb and the other side of the bulb is connected to 0V, then when the tilt sensor sends out a positive signal the bulb is lightened.

However, when I try to connect the DO port of tilt sensor to a relay’s input things are different. If the relay’s input is connected to 5V then relay’s coil is triggered, but when I connected the DO port of tilt to the relay’s input unfortunately the coil is not triggered. Do you know what is the reason and any solution?

Hello badmuslim

Welcome to the worldbest Arduino forum ever.

Post your sketch, well formated, with well-tempered comments and in so called
code tags "< code >" and schematic to see how we can help.

Have a nice day and enjoy coding in C++.

2 Likes

As @paulpaulson said, please post your code and schematic. Some good, clear photos of your setup would also help.

See the post 'How to get the best out of this forum' for how to do these things, and other tips.

Please also post details of what sensor you are using, and what relay.
Links to manufacturer's data.

1 Like

I suggest you stop before you fry your Arduino if you have not already damaged it. Post the requested information and you will get an accurate response. There are a lot of fried arduino chips out there, do not make it bigger.

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