joelman
Posts: 5
Joined: Sat Mar 11, 2017 8:35 pm

Adding Motion Sensor to Simple Robot

Sat Feb 24, 2018 4:30 pm

I've just built the simple robot kit from here https://learn.adafruit.com/simple-raspb ... t/overview and now I'd like to add the PIR motion sensor. Normally it would plug into the GPIO, but that is now plugged into the motor hat https://www.adafruit.com/product/2348

Looking at the hat, it appears that I can just solder the leads into the holes on the board that come from the GPIO, but I really am a beginner and have no idea what I'm doing. Is this correct?

pcmanbob
Posts: 4270
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Adding Motion Sensor to Simple Robot

Sat Feb 24, 2018 5:11 pm

Yes looking at the pictures of the hat in question it appears you have the unused gpio pins available in the single row of holes next to the GPIO mounting holes.

Image

I would recommend you use one of the holes with just a number next to it, as these gpio have no other function which might cause problems.

Just in case you are not aware the PIR motion sensor is designed to detect warm objects like people not objects your robot might run in to, unless its a person of course.
Remember we want information.......................no information no help
The use of crystal balls & mind reading is not supported

joelman
Posts: 5
Joined: Sat Mar 11, 2017 8:35 pm

Re: Adding Motion Sensor to Simple Robot

Sat Feb 24, 2018 8:14 pm

Thanks! So, like if I needed 5V, I could use #4, or if I needed 3.3V I could use #17, and for ground #20? I'm just trying to map from this tutorial https://maker.pro/education/bluetooth-b ... -arduino-1

pcmanbob
Posts: 4270
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Adding Motion Sensor to Simple Robot

Sat Feb 24, 2018 8:32 pm

joelman wrote:
Sat Feb 24, 2018 8:14 pm
Thanks! So, like if I needed 5V, I could use #4, or if I needed 3.3V I could use #17, and for ground #20? I'm just trying to map from this tutorial https://maker.pro/education/bluetooth-b ... -arduino-1
NO.

#4 is gpio4 and #20 is gpio20 these are gpio numbers not pin numbers. the 5v and ground are provided on your motor board

Image

Red indicates 5V holes
Green indicates ground holes
Remember we want information.......................no information no help
The use of crystal balls & mind reading is not supported

joelman
Posts: 5
Joined: Sat Mar 11, 2017 8:35 pm

Re: Adding Motion Sensor to Simple Robot

Sat Feb 24, 2018 8:57 pm

Ah! Thanks again for the help!
Joel

Return to “Automation, sensing and robotics”

Who is online

Users browsing this forum: No registered users and 4 guests