Struan80
Posts: 9
Joined: Sun May 13, 2018 2:20 pm

Halloween Project

Thu May 17, 2018 10:47 pm

It says on this magazine tutorial to connect to GPIO pin 4 for the motion sensor, yet that on the diagram is a power source. I'm not sure if the illustration on the magazine is shown yet anyone tried this out. I know its not the season for it but would like to see it working. Thanks for any advice on this, cheers
WIN_20180517_23_43_21_Pro.jpg
WIN_20180517_23_43_21_Pro.jpg (63.23 KiB) Viewed 339 times
WIN_20180517_23_45_32_Pro.jpg
WIN_20180517_23_45_32_Pro.jpg (80.99 KiB) Viewed 339 times

PhatFil
Posts: 263
Joined: Thu Apr 13, 2017 3:55 pm

Re: Halloween Project

Fri May 18, 2018 1:47 am

google 'Raspberry pi gpio pinout' ;)
Image
its not a case of counting from pin1 like an ide cable even though the pi gpio pins look like and old hdd interface ;)
gpio4 is pin7..

User avatar
DougieLawson
Posts: 33314
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Halloween Project

Fri May 18, 2018 6:06 am

Which edition of The MagPi magazine is that? They're all available online at: https://www.raspberrypi.org/magpi/issues/
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

Struan80
Posts: 9
Joined: Sun May 13, 2018 2:20 pm

Re: Halloween Project

Fri May 18, 2018 6:55 am

Its issue 51, November 2016. If you look at the illustration on it, the connections don't show pin 4 being used, even though the code to get it to work is pin 4. Hope this makes some sense :)

B.Goode
Posts: 6181
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Halloween Project

Fri May 18, 2018 7:07 am

Struan80 wrote:
Fri May 18, 2018 6:55 am
Its issue 51, November 2016. If you look at the illustration on it, the connections don't show pin 4 being used, even though the code to get it to work is pin 4. Hope this makes some sense :)


The annotation on the diagram says "Connect the PIR sensor's OUT cable to GPIO pin 4.

As the image posted by @PhatFil makes clear, this GPIO is presented as physical pin #7 on the header of the RPi board. That is also what the diagram in the Screamer Feature shows.

User avatar
neilgl
Posts: 166
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near Aston Martin factory

Re: Halloween Project

Fri May 18, 2018 7:10 am

Yes the diagram does show GPIO4 connected to the yellow lead of the PIR. The confusion is probably because the words say “connect it to GPIO pin 4”. GPIO4 is physical pin 7.

User avatar
DougieLawson
Posts: 33314
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Halloween Project

Fri May 18, 2018 7:20 am

Struan80 wrote:
Fri May 18, 2018 6:55 am
Its issue 51, November 2016. If you look at the illustration on it, the connections don't show pin 4 being used, even though the code to get it to work is pin 4. Hope this makes some sense :)
Isn't the wiring diagram on page 72 https://www.raspberrypi.org/magpi-issues/MagPi51.pdf clear enough? It shows the trigger from the PIR connected to GPIO04/Pin#7.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

Struan80
Posts: 9
Joined: Sun May 13, 2018 2:20 pm

Re: Halloween Project

Fri May 18, 2018 8:37 am

It was confusing as I was counting the pins on the board, I have set it up and going to test it. Thanks everyone for the feedback, I will get it up and running just now.

Struan80
Posts: 9
Joined: Sun May 13, 2018 2:20 pm

Re: Halloween Project

Fri May 18, 2018 9:16 am

Thank you so much for the support on this, I opened up the file in "Thonny" and run it. All working now :D
Attachments
WIN_20180518_10_13_08_Pro.jpg
WIN_20180518_10_13_08_Pro.jpg (52.99 KiB) Viewed 248 times

User avatar
DougieLawson
Posts: 33314
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Halloween Project

Fri May 18, 2018 9:24 am

It's such a shame your project is working but your camera is still broken. It's got a serious failure with focusing on the object you're photographing.

Stick well-focused photos on http://imgur.com post the BBCode link Imgur creates for you on here.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

Struan80
Posts: 9
Joined: Sun May 13, 2018 2:20 pm

Re: Halloween Project

Fri May 18, 2018 11:11 am

Hey Dougie, I used my laptop camera which wasn't ideal. I will venture into the camera module at some point, its nice to get it up and running. I will try and integrate an led light into the project and maybe make it "spring" session than a Halloween one. Thanks again for your input :)

Return to “Beginners”

Who is online

Users browsing this forum: bertlea, Google [Bot], wesleywitt and 32 guests