Difference between revisions of "3-CH Relay for Jetson Nano"

From Waveshare Wiki
Jump to: navigation, search
m (Text replace - "Service00" to "Service02")
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{DISPLAYTITLE:3-CH Relay for Jetson Nano}}
 
{{DISPLAYTITLE:3-CH Relay for Jetson Nano}}
 
+
<div class="wiki-pages jet-green-color">
<div class="tabber">
 
<div class="tabbertab" title="Introduction">
 
 
{{Infobox item
 
{{Infobox item
 
|name=[[3-CH Relay for Jetson Nano]]
 
|name=[[3-CH Relay for Jetson Nano]]
|img=[[File:3-CH-Relay-for-Jetson-Nano-1.jpg|300px|link=https://www.waveshare.com/3-ch-relay-for-jetson-nano.htm|3-CH Relay for Jetson Nano]]
+
|img=[[File:3-CH-Relay-for-Jetson-Nano-1.jpg|300px|{{Amazon_nolink|default={{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}|url=link=https://www.waveshare.com/3-ch-relay-for-jetson-nano.htm?amazon}}|3-CH Relay for Jetson Nano]]
 
|platform=Relay
 
|platform=Relay
 
|category=[[:Category:Modules|Modules]], [[:Category:Jetson Nano|Jetson Nano]]
 
|category=[[:Category:Modules|Modules]], [[:Category:Jetson Nano|Jetson Nano]]
 
|brand=Waveshare
 
|brand=Waveshare
|{{#urlget:amazon|default}}=display
+
|{{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}=display
 
|website_cn=[https://www.waveshare.net/shop/3-CH-Relay-for-Jetson-Nano.htm 官方中文站点]
 
|website_cn=[https://www.waveshare.net/shop/3-CH-Relay-for-Jetson-Nano.htm 官方中文站点]
 
|website_en=[https://www.waveshare.com/3-ch-relay-for-jetson-nano.htm Waveshare website]
 
|website_en=[https://www.waveshare.com/3-ch-relay-for-jetson-nano.htm Waveshare website]
 
|interface=GPIO
 
|interface=GPIO
 
|related=
 
|related=
 
 
}}
 
}}
 
+
<div class="wiki-pages jet-green-color">
== Introduction ==
+
=Overview=
Quality 3-Ch Relay Expansion Board Designed For Jetson Nano, Optocoupler Isolation
+
==Introduction==
{{Amazon|{{#urlget:amazon|default}}=display
+
Quality 3-Ch Relay Expansion Board Designed For Jetson Nano, Optocoupler Isolation.
 +
{{Amazon|{{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}=display
 
|More = [https://www.waveshare.com/3-ch-relay-for-jetson-nano.htm More]}}
 
|More = [https://www.waveshare.com/3-ch-relay-for-jetson-nano.htm More]}}
==Featires==
+
<div class="wiki-pages jet-green-color">
*Standard 40PIN GPIO header, directly pluggable onto the Jetson Nano
+
==Features==
*Incorporate quality relay component, max load: ≤5A 250V AC or ≤5A 30V DC
+
*Standard 40PIN GPIO header, directly pluggable onto the Jetson Nano.
*Optocoupler isolation, prevent interference from the high voltage circuitry
+
*Incorporate quality relay component, max load: ≤5A 250V AC or ≤5A 30V DC.
*Indicators for monitoring the relay operating status
+
*Optocoupler isolation, prevent interference from the high voltage circuit.
*Control pins of relays are configurable via jumpers
+
*Indicators for monitoring the relay operating status.
*Acrylic bottom panel, isolating the Jetson Nano from the relay expansion board
+
*Control pins of relays are configurable via jumpers.
 
+
*Acrylic bottom panel, isolating the Jetson Nano from the relay expansion board.
 +
<div class="wiki-pages jet-green-color">
 
==Pinout==
 
==Pinout==
 
[[File:3-CH-Relay-for-Jetson-Nano-details-inter.jpg]]
 
[[File:3-CH-Relay-for-Jetson-Nano-details-inter.jpg]]
</div>
 
<div class="tabbertab" title="User Guide">
 
 
{{3-CH Relay for Jetson Nano User Manual}}
 
{{3-CH Relay for Jetson Nano User Manual}}
</div>
+
=Resource=
<div class="tabbertab" title="Resources">
 
 
==Document==
 
==Document==
 
*[https://www.waveshare.net/w/upload/3/36/3-CH_Relay_for_Jetson_Nano_Schematic.pdf Schematic]
 
*[https://www.waveshare.net/w/upload/3/36/3-CH_Relay_for_Jetson_Nano_Schematic.pdf Schematic]
 +
 
==Demo Codes==
 
==Demo Codes==
 
*[https://www.waveshare.net/w/upload/f/f8/3-ch_Realy_for_jetsonnano.7z Demo Code]
 
*[https://www.waveshare.net/w/upload/f/f8/3-ch_Realy_for_jetsonnano.7z Demo Code]
</div>
 
<div class="tabbertab" title="FAQ">
 
  
  
== FAQ ==
 
</div>
 
<div class="tabbertab" title="Support">
 
 
{{Service02}}
 
{{Service02}}
</div>
+
 
 
[[Category:Modules]]
 
[[Category:Modules]]

Latest revision as of 06:30, 10 August 2022

3-CH Relay for Jetson Nano
3-CH Relay for Jetson Nano
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

Overview

Introduction

Quality 3-Ch Relay Expansion Board Designed For Jetson Nano, Optocoupler Isolation.

More

Features

  • Standard 40PIN GPIO header, directly pluggable onto the Jetson Nano.
  • Incorporate quality relay component, max load: ≤5A 250V AC or ≤5A 30V DC.
  • Optocoupler isolation, prevent interference from the high voltage circuit.
  • Indicators for monitoring the relay operating status.
  • Control pins of relays are configurable via jumpers.
  • Acrylic bottom panel, isolating the Jetson Nano from the relay expansion board.

Pinout

3-CH-Relay-for-Jetson-Nano-details-inter.jpg

Pins

The pins which are used for cotnrolling the channle of Relay are listed :

Channel BCM Description
CH1 P21/P16 Channel 1
CH2 P20/P19 Channel 2
CH3 P26/P13 Channel 3

【Note】The silk printing of PCB is based on BCM libraries.

Jumpers

Relay_JMP is used to configure the control pins. If you plug the jumpers on the pins, channels are connected to the GPIO of Jetson for controlling.
For example, if you want to stack two relay boards for 6-CH, you can stack board A on the board B and: Set the jumpers of board A on D21, D20, D26. Set the jumpers of board B on D16, D19, D13.

Use with Jetson Nano

Examples

Download Demo Codes

Open a terminal, download the demo codes and unzip it

sudo apt-get install p7zip
wget https://www.waveshare.com/w/upload/f/f8/3-ch_Realy_for_jetsonnano.7z
7zr x 3-ch_Realy_for_jetsonnano.7z -r -o./3-ch_Realy_for_jetsonnano
cd 3-ch_Realy_for_jetsonnano

Testing

Hardware configuration: set the jumpers on D21, D20, D26 (default setting) Go to the directory 3-ch_Realy_for_jetsonnano and run the following commands:

sudo python test.py

Expect result: The Relay channels onboard are toggled and the LEDs indicate according to the status of the channel. You can press Ctrl+C to

Web Control

The example use python Web framework to control the Relay board.
Open a terminal and run the following commands:

sudo apt-get install python-bottle
cd python-bottle
sudo python main.py

Open a chrome browser, and go to page [IP of Jetson nano ]:8080.
for example: 192.168.1.11:8080
Then you can click the icon on the Webpage to troggle the relay.

Resource

Document

Demo Codes