a7winner
Posts: 5
Joined: Tue Oct 01, 2019 9:12 am

Components and Pins

Tue Oct 01, 2019 1:31 pm

Hello

I am doing a project and I have never used Raspberry pi before and a I have really poor experience with breadboards
I hope you can help me

So I am planing to buy Raspberry Pi 3 B+

I am worried about component and pins
I don't know if I can embed all the component together in a single Raspberry Pi
an external wifi (extra)
shock sensor
maybe a proximity sensor

what is the maximum number of sensors that I can use in a single device (Raspberry Pi 3 B+) ?
Are the pins enough to have all that ?
I saw only 1 pin for 3.3v do I use a breadboard as an extension to power up the rest of the sensors
what may I need ?

So far I am planning to order
Raspberry Pi 3 B+
37 sensors Kit
40Pcs Male - Female cables
10Pcs M-M cables
1 Breadboards
2 mini Breadboards
few lights for testing
multimeter
wifi
shock detector


Do I need transistor , Diodes ,Resistors,Relays.... ?
Thanks you

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

Re: Components and Pins

Tue Oct 01, 2019 6:32 pm

Yes you can do all that - see this for pinouts:
https://pinout.xyz/#
You will probably use one or two (of 37) sensors connected to the pi at the same time when learning.e.g.
1x Active Buzzer not at the same time as 1x Passive Buzzer
1x Reed switch and an LED
1x Photo-interrupt OR 1x AD/DAConvert-PCF8591
etc.
The number of pins needed depends on the sensor, some use SPI, some use I2C, some use "1-wire"
Pi has two 3V3 pins and also has two 5V pins.
Not sure why you need another WiFi interface - Pi3B+

alphanumeric
Posts: 2066
Joined: Tue Jan 19, 2016 2:17 pm
Location: Sydney, Nova Scotia, Canada

Re: Components and Pins

Tue Oct 01, 2019 7:20 pm

https://en.wikipedia.org/wiki/Breadboard

The solderless breadboard should have two power rails down each side. Two rows of connected pins.
I would wire / jumper +5V and ground on one side and 3.3v and ground on the other side. The two grounds will be common so no need to connect them together.
You can get breakout boards to bring all the GPIO pins out to a breadboard via a ribbon cable. I have and like the Canakit version
https://www.canakit.com/Common/System/ ... =breakout
it brings out the power rails for you.

a7winner
Posts: 5
Joined: Tue Oct 01, 2019 9:12 am

Re: Components and Pins

Tue Oct 01, 2019 7:51 pm

neilgl wrote:
Tue Oct 01, 2019 6:32 pm
Yes you can do all that - see this for pinouts:
https://pinout.xyz/#
You will probably use one or two (of 37) sensors connected to the pi at the same time when learning.e.g.
1x Active Buzzer not at the same time as 1x Passive Buzzer
1x Reed switch and an LED
1x Photo-interrupt OR 1x AD/DAConvert-PCF8591
etc.
The number of pins needed depends on the sensor, some use SPI, some use I2C, some use "1-wire"
Pi has two 3V3 pins and also has two 5V pins.
Not sure why you need another WiFi interface - Pi3B+

____________________________
my project
it involves impact detection/shock detection and wireless reporting
so If I have 2 or 3 units

each one emits a unique signal (identification) | using for example ssid in wifi
the idea is whenever the shock detection is triggered
a communication starts with the both units and capture the data only when the detector is triggered
I need 2 wifi because one will be active all the time
and the other will get triggered and work when the detector is triggered
I may replace it with 433Hz instead a wifi

communication is through a wireless mean such as wifi or 433Hz or else - I am open for suggestions



boyoh
Posts: 1328
Joined: Fri Nov 23, 2012 3:30 pm
Location: Selby. North Yorkshire .UK

Re: Components and Pins

Tue Oct 01, 2019 7:58 pm

My advice is get a understanding of Basic Electronics first. You can use the breadboard
For this. Do not use the Pi power to power
The test circuits on the breadboard get a
0v – 12vdc 3/4a variable adapter. After
Building few circuits, you will understand
Better and safer of how to interface with the
Pi , Remember the Pi is not Plug & Play
Get a book on (Basic Semiconductor Circuits)
Remember Coding dose not solve all problems

Regards BoyOh
Retired Electrical / Electronics Technician
BoyOh ( Selby, North Yorkshire.UK)
Some Times Right Some Times Wrong

a7winner
Posts: 5
Joined: Tue Oct 01, 2019 9:12 am

Re: Components and Pins

Tue Oct 01, 2019 8:26 pm

neilgl wrote:
Tue Oct 01, 2019 6:32 pm
Yes you can do all that - see this for pinouts:
https://pinout.xyz/#
You will probably use one or two (of 37) sensors connected to the pi at the same time when learning.e.g.
1x Active Buzzer not at the same time as 1x Passive Buzzer
1x Reed switch and an LED
1x Photo-interrupt OR 1x AD/DAConvert-PCF8591
etc.
The number of pins needed depends on the sensor, some use SPI, some use I2C, some use "1-wire"
Pi has two 3V3 pins and also has two 5V pins.
Not sure why you need another WiFi interface - Pi3B+
Well I know that I don't need most of them
I want to order things related to my project and since I don't know yet what I'll need in the future
I decided it will be safer to order a kit incase I forgot something or I needed something later'
since it is my first time I can order it all at once then I do the learning & coding
to decrease the shipping cost

a7winner
Posts: 5
Joined: Tue Oct 01, 2019 9:12 am

Re: Components and Pins

Tue Oct 01, 2019 8:37 pm

boyoh wrote:
Tue Oct 01, 2019 7:58 pm
My advice is get a understanding of Basic Electronics first. You can use the breadboard
For this. Do not use the Pi power to power
The test circuits on the breadboard get a
0v – 12vdc 3/4a variable adapter. After
Building few circuits, you will understand
Better and safer of how to interface with the
Pi , Remember the Pi is not Plug & Play
Get a book on (Basic Semiconductor Circuits)
Remember Coding does not solve all problems

Regards BoyOh
Retired Electrical / Electronics Technician

Thank you I will do that
Image
I will buy this for experiments
it changes 6~12V
into 3.3/5 V

I can do small cricuts
like LED lights,switches , connecting power, and work with diagrams (copying )
I am just not sure if I'll need any (transistors,diodes ...etc) while using RPi

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

Re: Components and Pins

Tue Oct 01, 2019 8:54 pm

Yes what @boyoh said and generally when you are buying the 37 sensor kits you don't need any extra transistors/relays/opto-isolaters etc. Powering those sensors (one at a time) from the pi will generally be OK. e.g. passive infra-red detector (PIR) is fine.

"impact detection/shock detection" - Yes and what interface do those sensors use? (impact detection could be just a simpe microswitch)

"I need 2 wifi because one will be active all the time and the other will get triggered and work when the detector is triggered"
Yes normally the detector is wired to the pi, then you can use the pi wifi to send messages that a detector has been triggered. (to the internet or your phone etc.)

We probably need to focus on a specific sensor then we can help out on a solution.
Let us know how it goes.

Andyroo
Posts: 4465
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: Components and Pins

Tue Oct 01, 2019 10:22 pm

One thing I learnt the hard way.

Look carefully at the power strips on the breadboard. Often the lines have a little break in them - this shows the left side of the strip IS NOT connected to the right side of the strip.

For example, this board has common power rails that run all the way along the board giving two strips per side:
Image
but this on has the split in the middle so effectively having four strips each side
Image

Obviously you can connect the left and right parts on each side with a jumper - save hours of trying to work out why a circuit does not work :oops:
Need Pi spray - these things are breeding in my house...

jbudd
Posts: 987
Joined: Mon Dec 16, 2013 10:23 am

Re: Components and Pins

Wed Oct 02, 2019 7:15 am

my project involves impact detection/shock detection and wireless reporting
so If I have 2 or 3 units

each one emits a unique signal (identification) | using for example ssid in wifi
the idea is whenever the shock detection is triggered
a communication starts with the both units and capture the data only when the detector is triggered
I need 2 wifi because one will be active all the time
and the other will get triggered and work when the detector is triggered
I may replace it with 433Hz instead a wifi

communication is through a wireless mean such as wifi or 433Hz or else - I am open for suggestions
Take a look at MQTT for passing messages over your existing WiFi.
https://mqtt.org/
https://tutorials-raspberrypi.com/raspb ... unication/

alphanumeric
Posts: 2066
Joined: Tue Jan 19, 2016 2:17 pm
Location: Sydney, Nova Scotia, Canada

Re: Components and Pins

Wed Oct 02, 2019 8:26 am

Yeah, the long solderless breadboards are often laid out like two small ones end to end, with a break in the middle.
In the old days you'd have +Vcc on one end and -Vcc on the other end. Nowadays most just jumper it so its one long power rail.
Also a retired electronic technician.

boyoh
Posts: 1328
Joined: Fri Nov 23, 2012 3:30 pm
Location: Selby. North Yorkshire .UK

Re: Components and Pins

Thu Oct 03, 2019 8:47 pm

This experimental rig I built for Pi circuit building
Could have many uses Using Vero board to
Interface with the breadboard, all interface
Connections from the Pi to the Vero board
Also included 4 slotted Opto Isolators ,Ideal
For signal isolation and voltage levelling.

Regards BoyOh
Pi Board  IF 010.jpg
Pi Board IF 010.jpg (47.98 KiB) Viewed 305 times
BoyOh ( Selby, North Yorkshire.UK)
Some Times Right Some Times Wrong

a7winner
Posts: 5
Joined: Tue Oct 01, 2019 9:12 am

Re: Components and Pins

Sat Oct 05, 2019 8:40 am

Thank you all
this is helpful :)
have a great day

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 12215
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Components and Pins

Tue Oct 08, 2019 3:38 pm

Andyroo wrote:
Tue Oct 01, 2019 10:22 pm
One thing I learnt the hard way.

Look carefully at the power strips on the breadboard. Often the lines have a little break in them - this shows the left side of the strip IS NOT connected to the right side of the strip.

For example, this board has common power rails that run all the way along the board giving two strips per side:
Image
but this on has the split in the middle so effectively having four strips each side
Image

Obviously you can connect the left and right parts on each side with a jumper - save hours of trying to work out why a circuit does not work :oops:
It's one of the common pitfalls: https://www.raspberrypi.org/forums/view ... 14#p635787

boyoh
Posts: 1328
Joined: Fri Nov 23, 2012 3:30 pm
Location: Selby. North Yorkshire .UK

Re: Components and Pins

Wed Oct 09, 2019 10:55 pm

If you are having difficulty understanding
The layout of the breadboard, use it as part
Of your learning curve . Using a multimeter
Set to continuity testing and two jumper wires
Then just use some Common Sense

Regards BoyOh
BoyOh ( Selby, North Yorkshire.UK)
Some Times Right Some Times Wrong

Return to “Beginners”