Pages: [1]   Go Down
Author Topic: Hi there looking for a bit of help  (Read 769 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all

I am currently doing a fairly simple (I hope) Arduino project for University. I'm entirely new to Arduino and frankly struggling a little bit. What I want to do is essentially make a servo motor move when a motion sensor is activated. The servo will be used to pull the trigger of a nerf gun so it will fire automatically when motion is detected. I already have the servo rigged to the gun trigger and I can get the servo to work on it's own however I have hit a wall with using the motion sensor.

Here is a list of what I have access to in order to do this:

Arduino Uno Board (which came with wires, LED's and a USB A to B Cable)
Breadboard
Servo Motor
P/N 1111 Motion Sensor (form phidget - http://www.phidgets.com/products.php?category=5&product_id=1111_0 )

any help would be appreciated as I am next to useless with this at the moment. I've been going through tutorials but I need to submit a working code by Monday, will be working on it over the weekend but mostly i'm just curious if this is even possible with the components I have to hand.

Thanks
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 309
Posts: 26525
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You look to have all the right bits, but you need to post your code.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Illinois, USA
Offline Offline
Full Member
***
Karma: 0
Posts: 124
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Not sure if we can get you going by Monday, but more info would help.

  • Do you have Arduino running on your computer?
  • Can you run example programs?
  • Do you understand how to connect and control servos?
  • Do you understand how to connect and read the sensor?

If I understand the sensor, it puts out 2.5V when there is no movement and the voltage is higher or lower when there is movement. That will be easy to read. I think the Uno can supply enough 5V current to control the servo, but if it is a high power servo or needs a lot of torque to push the trigger it might cause the board to reset.

I don't see any major problems, except the short time frame. Let us know where you are having problems and we'll help.
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I think the Uno can supply enough 5V current to control the servo

Not really. I wouldn't recommend it.
Logged

Pages: [1]   Go Up
Jump to: