101Views7Replies

Author Options:

arduino program to sweep servo when hall sensor high Answered

i want the program to control the servo such that when the hall sensor senses the magnet the servo should sweep and when hall sensor again senses the servo should come to its original place

so guys please tell me how to do it and also tell me connections

Tags:arduino

Comments

The forums are retiring in 2021 and are now closed for new topics and comments.
0
iceng
iceng

4 years ago

So how are you doing in your Arduino-Class ?

0
Downunder35m
Downunder35m

4 years ago

You basically ask that someone does it all for when all you need to do is copy and paste from the Arduino playground.
-Take the corresponding examples, modify where needed and paste them into your sketch....

0
vipulg
vipulg

Answer 4 years ago

I am a beginner i had bought arduino recently i only know very little about programming i am just asking for help

0
steveastrouk
steveastrouk

Answer 4 years ago

Get a servo moving with the servo library. Look at the examples in the playground.

Adding a switch is easy. You'll learn about programming if you do it yourself.

0
steveastrouk
steveastrouk

4 years ago

What have you tried so far ? You have described what you want clearly, so how will you go about it ?

0
vipulg
vipulg

Answer 4 years ago

i had tried some examples like led will glow when hall senses magnet but i m not getting how to actually put it into my project

0
iceng
iceng

4 years ago

U need to supply 5v to the arduino and hall sensor and a different voltage voltage to the servo.. Every item, two power supplies, the arduino, hall sensor servo all share a common ground..

Now select an input pin for the hall sensor on the arduino and an output pin for the control signal to the pulse width into the servo..

Take the easy free Arduino class at

https://www.instructables.com/class/Arduino-Class/

After the class you should be able to program your arduino to sweep your servo...