Electronics-Related.com
Forums

Raspberry PI model B + and 5V relay PCB

Started by gm November 6, 2014
Hi.

I didnt play much with RPI but now we have finish one project where we 
are triggering GPIO. The PCB relay board should be triggered from RPI 
GPIO and the door should be opened. Now, before i connect PCB to RPI i 
want to be sure that nothing goes wrong. This is the pcb schematics that 
we use for the relay trigger.

http://tinypic.com/view.php?pic=10rmrsh&s=8#.VFuEUa0zdag

What do you think . can i connect this directly to RPI GPIO, and which 
pins can i use ?

Thank you in advance !
On Thu, 06 Nov 2014 15:24:26 +0100, gm <notMyMail@mail.not> wrote:

>Hi. > >I didnt play much with RPI but now we have finish one project where we >are triggering GPIO. The PCB relay board should be triggered from RPI >GPIO and the door should be opened. Now, before i connect PCB to RPI i >want to be sure that nothing goes wrong. This is the pcb schematics that >we use for the relay trigger. > >http://tinypic.com/view.php?pic=10rmrsh&s=8#.VFuEUa0zdag > >What do you think . can i connect this directly to RPI GPIO, and which >pins can i use ? > >Thank you in advance !
Yes, it should work fine. Reduce R1 to 560R to compensate for the 3.3V output of the Rpi port pins, and use the 5V power for the relay (and a 5V relay coil). Double check the connections before applying power.
On 06.11.2014 16:44, Spehro Pefhany wrote:
> On Thu, 06 Nov 2014 15:24:26 +0100, gm <notMyMail@mail.not> wrote: > >> Hi. >> >> I didnt play much with RPI but now we have finish one project where we >> are triggering GPIO. The PCB relay board should be triggered from RPI >> GPIO and the door should be opened. Now, before i connect PCB to RPI i >> want to be sure that nothing goes wrong. This is the pcb schematics that >> we use for the relay trigger. >> >> http://tinypic.com/view.php?pic=10rmrsh&s=8#.VFuEUa0zdag >> >> What do you think . can i connect this directly to RPI GPIO, and which >> pins can i use ? >> >> Thank you in advance ! > > Yes, it should work fine. > > Reduce R1 to 560R to compensate for the 3.3V output of the Rpi port > pins, and use the 5V power for the relay (and a 5V relay coil). > > Double check the connections before applying power. >
----------- should i reduce the resistor value ? Am asking because i have made the pcb and i have to test it today and i dont have 0,5K near me. I have to buy it tommorow
On 06.11.2014 17:22, gm wrote:
> On 06.11.2014 16:44, Spehro Pefhany wrote: >> On Thu, 06 Nov 2014 15:24:26 +0100, gm <notMyMail@mail.not> wrote: >> >>> Hi. >>> >>> I didnt play much with RPI but now we have finish one project where we >>> are triggering GPIO. The PCB relay board should be triggered from RPI >>> GPIO and the door should be opened. Now, before i connect PCB to RPI i >>> want to be sure that nothing goes wrong. This is the pcb schematics that >>> we use for the relay trigger. >>> >>> http://tinypic.com/view.php?pic=10rmrsh&s=8#.VFuEUa0zdag >>> >>> What do you think . can i connect this directly to RPI GPIO, and which >>> pins can i use ? >>> >>> Thank you in advance ! >> >> Yes, it should work fine. >> >> Reduce R1 to 560R to compensate for the 3.3V output of the Rpi port >> pins, and use the 5V power for the relay (and a 5V relay coil). >> >> Double check the connections before applying power. >> > ----------- > should i reduce the resistor value ? Am asking because i have made the > pcb and i have to test it today and i dont have 0,5K near me. I have to > buy it tommorow
--------------- btw. what pins should i use ?
On a sunny day (Thu, 06 Nov 2014 17:33:24 +0100) it happened gm
<notMyMail@mail.not> wrote in <m3g7sk$8pd$1@l01news1.ot.hr>:

>On 06.11.2014 17:22, gm wrote: >> On 06.11.2014 16:44, Spehro Pefhany wrote: >>> On Thu, 06 Nov 2014 15:24:26 +0100, gm <notMyMail@mail.not> wrote: >>> >>>> Hi. >>>> >>>> I didnt play much with RPI but now we have finish one project where we >>>> are triggering GPIO. The PCB relay board should be triggered from RPI >>>> GPIO and the door should be opened. Now, before i connect PCB to RPI i >>>> want to be sure that nothing goes wrong. This is the pcb schematics that >>>> we use for the relay trigger. >>>> >>>> http://tinypic.com/view.php?pic=10rmrsh&s=8#.VFuEUa0zdag >>>> >>>> What do you think . can i connect this directly to RPI GPIO, and which >>>> pins can i use ? >>>> >>>> Thank you in advance ! >>> >>> Yes, it should work fine. >>> >>> Reduce R1 to 560R to compensate for the 3.3V output of the Rpi port >>> pins, and use the 5V power for the relay (and a 5V relay coil). >>> >>> Double check the connections before applying power. >>> >> ----------- >> should i reduce the resistor value ? Am asking because i have made the >> pcb and i have to test it today and i dont have 0,5K near me. I have to >> buy it tommorow >--------------- >btw. what pins should i use ?
Depends on what other things you want to use on the GPIO. Some pins have special functions. If all you do is drive some relais, then it makes little difference. As for that resistor, take current of relay, divide by beta transistor, multiply by 10, and that is a safe base current. Then find R from (3.3 - .7) / base current. The .7 is the Vbe drop. It is not critical in any way.
On Thursday, November 6, 2014 9:03:32 AM UTC-8, Jan Panteltje wrote:
> On a sunny day (Thu, 06 Nov 2014 17:33:24 +0100) it happened gm > <notMyMail@mail.not> wrote in <m3g7sk$8pd$1@l01news1.ot.hr>: >=20 > >On 06.11.2014 17:22, gm wrote: > >> On 06.11.2014 16:44, Spehro Pefhany wrote: > >>> On Thu, 06 Nov 2014 15:24:26 +0100, gm <notMyMail@mail.not> wrote: > >>> > >>>> Hi. > >>>> > >>>> I didnt play much with RPI but now we have finish one project where =
we
> >>>> are triggering GPIO. The PCB relay board should be triggered from RP=
I
> >>>> GPIO and the door should be opened. Now, before i connect PCB to RPI=
i
> >>>> want to be sure that nothing goes wrong. This is the pcb schematics =
that
> >>>> we use for the relay trigger. > >>>> > >>>> http://tinypic.com/view.php?pic=3D10rmrsh&s=3D8#.VFuEUa0zdag > >>>> > >>>> What do you think . can i connect this directly to RPI GPIO, and whi=
ch
> >>>> pins can i use ? > >>>> > >>>> Thank you in advance ! > >>> > >>> Yes, it should work fine. > >>> > >>> Reduce R1 to 560R to compensate for the 3.3V output of the Rpi port > >>> pins, and use the 5V power for the relay (and a 5V relay coil). > >>> > >>> Double check the connections before applying power. > >>> > >> ----------- > >> should i reduce the resistor value ? Am asking because i have made the > >> pcb and i have to test it today and i dont have 0,5K near me. I have t=
o
> >> buy it tommorow > >--------------- > >btw. what pins should i use ? >=20 > Depends on what other things you want to use on the GPIO. > Some pins have special functions. > If all you do is drive some relais, then it makes little difference. >=20 > As for that resistor, take current of relay, > divide by beta transistor, > multiply by 10, and that is a safe base current. > Then find R from (3.3 - .7) / base current. > The .7 is the Vbe drop. > It is not critical in any way.
Yes, good to go through the numbers, then just use 1K. 1K is common to sto= ck. I think i have a few hundreds. It you have a really bad Q, then 680, 5= 60 or 470. It might saturate the Q a bit, but not to worry. The selections = might be strange to the OP, but for historical reason.
On 06.11.2014 18:03, Jan Panteltje wrote:
> On a sunny day (Thu, 06 Nov 2014 17:33:24 +0100) it happened gm > <notMyMail@mail.not> wrote in <m3g7sk$8pd$1@l01news1.ot.hr>: > >> On 06.11.2014 17:22, gm wrote: >>> On 06.11.2014 16:44, Spehro Pefhany wrote: >>>> On Thu, 06 Nov 2014 15:24:26 +0100, gm <notMyMail@mail.not> wrote: >>>> >>>>> Hi. >>>>> >>>>> I didnt play much with RPI but now we have finish one project where we >>>>> are triggering GPIO. The PCB relay board should be triggered from RPI >>>>> GPIO and the door should be opened. Now, before i connect PCB to RPI i >>>>> want to be sure that nothing goes wrong. This is the pcb schematics that >>>>> we use for the relay trigger. >>>>> >>>>> http://tinypic.com/view.php?pic=10rmrsh&s=8#.VFuEUa0zdag >>>>> >>>>> What do you think . can i connect this directly to RPI GPIO, and which >>>>> pins can i use ? >>>>> >>>>> Thank you in advance ! >>>> >>>> Yes, it should work fine. >>>> >>>> Reduce R1 to 560R to compensate for the 3.3V output of the Rpi port >>>> pins, and use the 5V power for the relay (and a 5V relay coil). >>>> >>>> Double check the connections before applying power. >>>> >>> ----------- >>> should i reduce the resistor value ? Am asking because i have made the >>> pcb and i have to test it today and i dont have 0,5K near me. I have to >>> buy it tommorow >> --------------- >> btw. what pins should i use ? > > Depends on what other things you want to use on the GPIO. > Some pins have special functions. > If all you do is drive some relais, then it makes little difference. > > As for that resistor, take current of relay, > divide by beta transistor, > multiply by 10, and that is a safe base current. > Then find R from (3.3 - .7) / base current. > The .7 is the Vbe drop. > It is not critical in any way. >
-------------------------------------------- I need to drive just this relay. The relay should open a door. What pin number would you suggest. I newer use GPIO on PI, that's why am asking...
On 11/6/2014 12:53 PM, gm wrote:
> On 06.11.2014 18:03, Jan Panteltje wrote: >> On a sunny day (Thu, 06 Nov 2014 17:33:24 +0100) it happened gm >> <notMyMail@mail.not> wrote in <m3g7sk$8pd$1@l01news1.ot.hr>: >> >>> On 06.11.2014 17:22, gm wrote: >>>> On 06.11.2014 16:44, Spehro Pefhany wrote: >>>>> On Thu, 06 Nov 2014 15:24:26 +0100, gm <notMyMail@mail.not> wrote: >>>>> >>>>>> Hi. >>>>>> >>>>>> I didnt play much with RPI but now we have finish one project >>>>>> where we >>>>>> are triggering GPIO. The PCB relay board should be triggered from RPI >>>>>> GPIO and the door should be opened. Now, before i connect PCB to >>>>>> RPI i >>>>>> want to be sure that nothing goes wrong. This is the pcb >>>>>> schematics that >>>>>> we use for the relay trigger. >>>>>> >>>>>> http://tinypic.com/view.php?pic=10rmrsh&s=8#.VFuEUa0zdag >>>>>> >>>>>> What do you think . can i connect this directly to RPI GPIO, and >>>>>> which >>>>>> pins can i use ? >>>>>> >>>>>> Thank you in advance ! >>>>> >>>>> Yes, it should work fine. >>>>> >>>>> Reduce R1 to 560R to compensate for the 3.3V output of the Rpi port >>>>> pins, and use the 5V power for the relay (and a 5V relay coil). >>>>> >>>>> Double check the connections before applying power. >>>>> >>>> ----------- >>>> should i reduce the resistor value ? Am asking because i have made the >>>> pcb and i have to test it today and i dont have 0,5K near me. I have to >>>> buy it tommorow >>> --------------- >>> btw. what pins should i use ? >> >> Depends on what other things you want to use on the GPIO. >> Some pins have special functions. >> If all you do is drive some relais, then it makes little difference. >> >> As for that resistor, take current of relay, >> divide by beta transistor, >> multiply by 10, and that is a safe base current. >> Then find R from (3.3 - .7) / base current. >> The .7 is the Vbe drop. >> It is not critical in any way. >> > -------------------------------------------- > I need to drive just this relay. The relay should open a door. > What pin number would you suggest. I newer use GPIO on PI, that's why am > asking...
That is a question better answered by the rPi group. So I am cross posting your question. -- Rick
On a sunny day (Thu, 06 Nov 2014 18:53:06 +0100) it happened gm
<notMyMail@mail.not> wrote in <m3gci2$a2m$1@l01news1.ot.hr>:

>On 06.11.2014 18:03, Jan Panteltje wrote: >> On a sunny day (Thu, 06 Nov 2014 17:33:24 +0100) it happened gm >> <notMyMail@mail.not> wrote in <m3g7sk$8pd$1@l01news1.ot.hr>: >> >>> On 06.11.2014 17:22, gm wrote: >>>> On 06.11.2014 16:44, Spehro Pefhany wrote: >>>>> On Thu, 06 Nov 2014 15:24:26 +0100, gm <notMyMail@mail.not> wrote: >>>>> >>>>>> Hi. >>>>>> >>>>>> I didnt play much with RPI but now we have finish one project where we >>>>>> are triggering GPIO. The PCB relay board should be triggered from RPI >>>>>> GPIO and the door should be opened. Now, before i connect PCB to RPI i >>>>>> want to be sure that nothing goes wrong. This is the pcb schematics that >>>>>> we use for the relay trigger. >>>>>> >>>>>> http://tinypic.com/view.php?pic=10rmrsh&s=8#.VFuEUa0zdag >>>>>> >>>>>> What do you think . can i connect this directly to RPI GPIO, and which >>>>>> pins can i use ? >>>>>> >>>>>> Thank you in advance ! >>>>> >>>>> Yes, it should work fine. >>>>> >>>>> Reduce R1 to 560R to compensate for the 3.3V output of the Rpi port >>>>> pins, and use the 5V power for the relay (and a 5V relay coil). >>>>> >>>>> Double check the connections before applying power. >>>>> >>>> ----------- >>>> should i reduce the resistor value ? Am asking because i have made the >>>> pcb and i have to test it today and i dont have 0,5K near me. I have to >>>> buy it tommorow >>> --------------- >>> btw. what pins should i use ? >> >> Depends on what other things you want to use on the GPIO. >> Some pins have special functions. >> If all you do is drive some relais, then it makes little difference. >> >> As for that resistor, take current of relay, >> divide by beta transistor, >> multiply by 10, and that is a safe base current. >> Then find R from (3.3 - .7) / base current. >> The .7 is the Vbe drop. >> It is not critical in any way. >> >-------------------------------------------- >I need to drive just this relay. The relay should open a door. >What pin number would you suggest. I newer use GPIO on PI, that's why am >asking...
I dunno, I only have model B Raspies Specifically bought some extra so not have to change all my connectors, Next you will ask how to write the soft to drive that pin? If you know how to drive that soft then you know what pin to use.
On 06.11.2014 19:43, rickman wrote:
> On 11/6/2014 12:53 PM, gm wrote: >> On 06.11.2014 18:03, Jan Panteltje wrote: >>> On a sunny day (Thu, 06 Nov 2014 17:33:24 +0100) it happened gm >>> <notMyMail@mail.not> wrote in <m3g7sk$8pd$1@l01news1.ot.hr>: >>> >>>> On 06.11.2014 17:22, gm wrote: >>>>> On 06.11.2014 16:44, Spehro Pefhany wrote: >>>>>> On Thu, 06 Nov 2014 15:24:26 +0100, gm <notMyMail@mail.not> wrote: >>>>>> >>>>>>> Hi. >>>>>>> >>>>>>> I didnt play much with RPI but now we have finish one project >>>>>>> where we >>>>>>> are triggering GPIO. The PCB relay board should be triggered from >>>>>>> RPI >>>>>>> GPIO and the door should be opened. Now, before i connect PCB to >>>>>>> RPI i >>>>>>> want to be sure that nothing goes wrong. This is the pcb >>>>>>> schematics that >>>>>>> we use for the relay trigger. >>>>>>> >>>>>>> http://tinypic.com/view.php?pic=10rmrsh&s=8#.VFuEUa0zdag >>>>>>> >>>>>>> What do you think . can i connect this directly to RPI GPIO, and >>>>>>> which >>>>>>> pins can i use ? >>>>>>> >>>>>>> Thank you in advance ! >>>>>> >>>>>> Yes, it should work fine. >>>>>> >>>>>> Reduce R1 to 560R to compensate for the 3.3V output of the Rpi port >>>>>> pins, and use the 5V power for the relay (and a 5V relay coil). >>>>>> >>>>>> Double check the connections before applying power. >>>>>> >>>>> ----------- >>>>> should i reduce the resistor value ? Am asking because i have made the >>>>> pcb and i have to test it today and i dont have 0,5K near me. I >>>>> have to >>>>> buy it tommorow >>>> --------------- >>>> btw. what pins should i use ? >>> >>> Depends on what other things you want to use on the GPIO. >>> Some pins have special functions. >>> If all you do is drive some relais, then it makes little difference. >>> >>> As for that resistor, take current of relay, >>> divide by beta transistor, >>> multiply by 10, and that is a safe base current. >>> Then find R from (3.3 - .7) / base current. >>> The .7 is the Vbe drop. >>> It is not critical in any way. >>> >> -------------------------------------------- >> I need to drive just this relay. The relay should open a door. >> What pin number would you suggest. I newer use GPIO on PI, that's why am >> asking... > > That is a question better answered by the rPi group. So I am cross > posting your question. >
---------------------- OK. I have written the sw so this part is working. At least with LED. If i dont change anything on PCB , then i will connect this like this: 5V to pin 2 GND to pin 6 Signal to pin 7 ( GPIO 4 ) Will this work ?