Notifications
Clear all

Raspberry Pi (1) with relay board

3 Posts
2 Users
0 Likes
715 Views
KUTGV
(@kutgv)
Active Member
Joined: 3 years ago
Posts: 10
Topic starter  

I'm a bit confused, rather "overinformed" and I can't think clearly any more. Or maybe is just aging or the corona lockdown that is hitting me ....

 

I want my old raspberry pi 1 to switch some relay board (those cheap classic boards from china).

The pins on the raspberry pi are 3.3V, those on arduino are 5V. Every tutorial with arduino just connects the Arduino Pin with the pin on the relay board. So it works with 5V.

Can I do the same with my pi? Will the 3.3V be seen as high or will I need a level shifter (that I learned about on the dronebotworkshop, tx BTW)?

 

Another solution would be to link my Arduino to the Pi with I2C and connect the relay board to the arduino but that is overcomplicating things. KISS needs to be the ground rule ...

 

TIA

Mario (from Belgium)


   
Quote
frogandtoad
(@frogandtoad)
Noble Member
Joined: 4 years ago
Posts: 1506
 

@kutgv

Posted by: @kutgv

I'm a bit confused, rather "overinformed" and I can't think clearly any more. Or maybe is just aging or the corona lockdown that is hitting me ....

 

I want my old raspberry pi 1 to switch some relay board (those cheap classic boards from china).

The pins on the raspberry pi are 3.3V, those on arduino are 5V. Every tutorial with arduino just connects the Arduino Pin with the pin on the relay board. So it works with 5V.

Can I do the same with my pi? Will the 3.3V be seen as high or will I need a level shifter (that I learned about on the dronebotworkshop, tx BTW)?

 

Another solution would be to link my Arduino to the Pi with I2C and connect the relay board to the arduino but that is overcomplicating things. KISS needs to be the ground rule ...

 

TIA

Mario (from Belgium)

 According to the diagram and explanation in the following article, it should work just fine:

    logic-levels

Cheers.


   
ReplyQuote
KUTGV
(@kutgv)
Active Member
Joined: 3 years ago
Posts: 10
Topic starter  

I can confirm, it worked as advertised!

I connected the Vcc to the 3.3V pin and the JCC to the 5V pin (it is a 5V relay board). It also worked with Vcc to the 5V pin but the there is a 1.7V voltage remaining but it works ...

 

Tx everybody

Mario


   
ReplyQuote