[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vip /vp / vr / w / wg / wsg / wsr / x / y ] [Search | Home]
4Archive logo
Okay /g/ help me out.
If images are not shown try to refresh the page. If you like this website, please disable any AdBlock software!

You are currently reading a thread in /g/ - Technology

Thread replies: 18
Thread images: 2
File: relay.jpg (114 KB, 800x800) Image search: [iqdb] [SauceNao] [Google]
relay.jpg
114 KB, 800x800
Okay /g/ help me out.

I have pic related hooked up with Raspberry pi to control lights in my room which is pretty cool but the problem is that my Pi will crash if I power on 3 or more channels, I guess this is because of Pi can't power them.
How do I fix this?
I have seen many guides how to do this but none of them seem to face the same problem.

tl;dr: how do I power this externally?
>>
Directly wire the 5v and gnd to the psu or increase the current output of the psu supplying the pi. If that still does not work then have a separate psu to power the board and link the grounds from each psu. :)
>>
>>52364492
Get some smaller relays to power the bigger relays
>>
Can you post the model or link to the relay?
Usually relays operate at 5V, depending on the model with or without external PSU, but if you can power it with your Pi, I guess it can be fed with 3V (the Pi is limited to 3V). Usually 3V relays need an external source.

But yea, try to power it externally as >>52364516 said.
>>
>>52364516
Uhmm... I genuinely don't know if that's a good idea.

>>52364518
I only have this.
>>
>>52364542
>>52364516
Could you draw some shitty schematic how the wires should go?
>>
OP, are you using current limiting resistors to drive those opto-coupler drivers?
>>
>>52364584
No, I have straight cables.
>>
For fuck sake anon, power it of a secondary powerbrick.b
>>
As others have said, you really need to know what you are working with in terms of power/current.

The Pi has very low current tolerances on the GPIO pins (like 7mA) Generally this is not enough to get enough current (usually 20mA) to the LED inside the optocoupler.

This is one of those cases where an Arduino would serve you better.

You can make a separate board with a 5V supply where the juice to the optocouplers is controlled by a small FET or BJT like a 2N3904 which is in turn controlled by the Pi.

This is why I keep saying the Pi is more fun for EE folks like myself.

If you want, I can draw up a basic schematic if you can get me some more info on the relays you bought.

>posted from my raspberry pi 2
>>
>>52364663
This.
Each relay you turn on's using more and more current. Your pi can't give that out.
>I have seen many guides how to do this but none of them seem to face the same problem.
Every one faced the same problem, they just fixed it instantly.

>>52364673
He's powering the relay board from the Pi's 5V pin m8.
>>
>>52364673
>>52364542
This is the relay

http://www.ebay.com/itm/TOP-8-Channel-5V-Relay-Module-Board-Shield-For-PIC-AVR-DSP-ARM-MCU-Arduino-BEST-/251824966004?hash=item3aa1f00974:g:qjUAAOxyaURTgvbU
>>
>>52364762
Yeah, I ended up just looking on amazon.

Either way, as I and >>52364689 said, you need an external power source. The Pi just can't source or sink enough.

Here's an example setup that describes using external transistors with an external power source.

http://i.imgur.com/4HzhwYB.jpg
>>
>>52364798
That seems like a solid solution, can I buy one of those boards? What I should search for?
>>
>>52364629
You need some current limiting resistors in series with each line. Try 200 or 300 ohms. Also, wire it up so that you are sinking current instead of sourcing. (active when the GPIO is low).
>>
File: relay board.jpg (109 KB, 800x421) Image search: [iqdb] [SauceNao] [Google]
relay board.jpg
109 KB, 800x421
>>52364836
>>52364934
The ebay diagram >>52364762
shows that OP's board has PNP (low=on) transistors (not optoisolaters) with built in base resistors.
OP simply needs to power the boards Vcc directly from the power supply, or use another power supply and connect the grounds as already been said.
>>
>>52365029
ok, yeah, in that case do what this guy says.

I'm too used to using triacs.
>>
>>52364544
If the raspberry pi doesnt can't do how you want it to perform, how can you expect to accomplish what you perform?
Thread replies: 18
Thread images: 2
Thread DB ID: 423707



[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vip /vp / vr / w / wg / wsg / wsr / x / y] [Search | Home]

[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vip /vp / vr / w / wg / wsg / wsr / x / y] [Search | Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the shown content originated from that site. This means that 4Archive shows their content, archived. If you need information for a Poster - contact them.
If a post contains personal/copyrighted/illegal content, then use the post's [Report] link! If a post is not removed within 24h contact me at [email protected] with the post's information.