Difference between revisions of "Pico-3v-Relay-Hat"
From SB-Components Wiki
(→Pinout) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 21: | Line 21: | ||
</div> | </div> | ||
<div class="large-4 column"> | <div class="large-4 column"> | ||
− | [[File:Pico_relay_3v_hat.png]] | + | [[File:Pico_relay_3v_hat.png|thumb|left|alt=Pico 3v Relay HAT| Buy it From : ''[https://shop.sb-components.co.uk/products/pico-3v-relay-hat Click Here]'']] |
</div> | </div> | ||
</div> | </div> | ||
== Pinout == | == Pinout == | ||
− | [[File:Pico_3v_Relay_Pinout.png]] | + | <table class="wikitable"> |
+ | <tr><td>[[File:Pico_3v_Relay_Pinout.png]]</td> | ||
+ | <td> | ||
+ | <table class="wikitable"> | ||
+ | <tr> <th>3V Relay HAT </th> <th> PICO Pins </th></tr> | ||
+ | <tr> <td> VCC </td> <td> 3V3 </td></tr> | ||
+ | <tr> <td> GND </td> <td> GND </td></tr> | ||
+ | <tr> <td> RELAY 1 </td> <td> GP6 </td></tr> | ||
+ | <tr> <td> RELAY 2 </td> <td> GP7 </td></tr> | ||
+ | </table> | ||
+ | </td> | ||
+ | </table> | ||
== Installation == | == Installation == | ||
Line 32: | Line 43: | ||
<li> Stack Raspberry Pi Pico on female header of Pico 3V Relay HAT. </li> | <li> Stack Raspberry Pi Pico on female header of Pico 3V Relay HAT. </li> | ||
<li> Connect USB cable on Raspberry Pi Pico USB port. </li> | <li> Connect USB cable on Raspberry Pi Pico USB port. </li> | ||
− | <li> Now use example code "test.py" from Pico 3V Relay HAT's github repository in | + | <li> Open Thonny IDE and Choose interpreter as MicroPython (Raspberry Pi pico). </li> |
+ | [[File:Thonny-interpreter.PNG|600px]] | ||
+ | <li> Now use example code "test.py" from Pico 3V Relay HAT's github repository in thonny ide. </li> | ||
Source code : https://github.com/sbcshop/Pico-3V-Relay-HAT | Source code : https://github.com/sbcshop/Pico-3V-Relay-HAT | ||
Line 38: | Line 51: | ||
<li> Copy and paste code in thonny ide. </li> | <li> Copy and paste code in thonny ide. </li> | ||
[[File:Pico_3v_relay_thonny.PNG|600px]] | [[File:Pico_3v_relay_thonny.PNG|600px]] | ||
− | |||
− | |||
<li> Click on green play button to run example of Pico 3V Relay HAT. </li> | <li> Click on green play button to run example of Pico 3V Relay HAT. </li> | ||
[[File:Thonny_play.PNG]] | [[File:Thonny_play.PNG]] | ||
== Resources == | == Resources == |
Latest revision as of 06:50, 11 June 2021
Pico 3V Relay HAT
Pico 3V Relay HAT is a Two-Channel high-quality relay with the Switching Voltage(VAC) up to 2A/ 120V(Max), Switching Voltage(VDC) up to 2A/ 24V(Max), and an operating voltage of 3.3V. It comes with a Female Pin Header, to easily connect with Raspberry Pi Pico via effortless stacking.
Features
Specifications
Pinout
|
Installation
MicroPython
Source code : https://github.com/sbcshop/Pico-3V-Relay-HAT