This relay board will allow you to switch other electrical devices on and off.

 

 

Relay parameters :
The relays are Single Pole Double Throw (SPDT)
The relays can switch up to 240 VAC at 10 Amps and 100 VDC at 5 Amps.

 

Relay's datasheed :
RAS.pdf

 

Supply :
5 Volts DC
Minimum draws current - 180mA

 

Dimensions :
50 mm / 45 mm / 20 mm

 

Sample Arduino Code :

/*
  Relay control example
  Turns on an Relays on and off for half second, repeatedly.
 
  This example code is in the public domain.
*/

void setup() {
  // initialize the digital pin's as an output.
  pinMode(12, OUTPUT); // Relay 1
  pinMode(13, OUTPUT); // Relay 2
}

void loop() {
  digitalWrite(12, HIGH); // set the Relay 1 on
  delay(500); // wait for a half second
  digitalWrite(12, LOW);  // set the Relay 1 off
  delay(500); // wait for a half second
  digitalWrite(13, HIGH); // set the Relay 2 on
  delay(500); // wait for a half second
  digitalWrite(13, LOW);  // set the Relay 2 off
  delay(500); // wait for a half second
}

 

Connecting a relay to Arduino

http://www.info.kmtronic.com/arduino-two-relay-board.html

 

You can find this item in stock on our webshop

 

 

 

 

 

 

 

This relay board will allow you to switch other electrical devices on and off.

 

 

Relay parameters :
The relays are Single Pole Double Throw (SPDT)
The relays can switch up to 240 VAC at 10 Amps and 100 VDC at 5 Amps.

 

Relay's datasheed :
RAS.pdf

 

Supply :
12 Volts DC
Minimum draws current - 100mA

 

Dimensions :
50 mm / 45 mm / 20 mm

 

Sample Arduino Code :

/*
  Relay control example
  Turns on an Relays on and off for half second, repeatedly.
 
  This example code is in the public domain.
*/

void setup() {
  // initialize the digital pin's as an output.
  pinMode(12, OUTPUT); // Relay 1
  pinMode(13, OUTPUT); // Relay 2
}

void loop() {
  digitalWrite(12, HIGH); // set the Relay 1 on
  delay(500); // wait for a half second
  digitalWrite(12, LOW);  // set the Relay 1 off
  delay(500); // wait for a half second
  digitalWrite(13, HIGH); // set the Relay 2 on
  delay(500); // wait for a half second
  digitalWrite(13, LOW);  // set the Relay 2 off
  delay(500); // wait for a half second
}

Connecting a relay to Arduino

http://www.info.kmtronic.com/arduino-two-relay-board.html

 

You can find this item in stock on our webshop

 

 

 

 

 

 

 

 

This relay board will allow you to switch other electrical devices on and off.

 

 

Relay parameters :
The relays are Single Pole Double Throw (SPDT)
The relays can switch up to 240 VAC at 10 Amps and 100 VDC at 5 Amps.

 

Relay's datasheed :
RAS.pdf

 

Supply :
24 Volts DC
Minimum draws current - 100mA

 

Dimensions :
50 mm / 45 mm / 20 mm

 

Sample Arduino Code :

/*
  Relay control example
  Turns on an Relays on and off for half second, repeatedly.
 
  This example code is in the public domain.
*/

void setup() {
  // initialize the digital pin's as an output.
  pinMode(12, OUTPUT); // Relay 1
  pinMode(13, OUTPUT); // Relay 2
}

void loop() {
  digitalWrite(12, HIGH); // set the Relay 1 on
  delay(500); // wait for a half second
  digitalWrite(12, LOW);  // set the Relay 1 off
  delay(500); // wait for a half second
  digitalWrite(13, HIGH); // set the Relay 2 on
  delay(500); // wait for a half second
  digitalWrite(13, LOW);  // set the Relay 2 off
  delay(500); // wait for a half second
}

Connecting a relay to Arduino

http://www.info.kmtronic.com/arduino-two-relay-board.html

 

You can find this item in stock on our webshop

 

 

 

 

 

 

 

This relay board will allow you to switch other electrical devices on and off.

 

 

Relay parameters :
The relays are Single Pole Double Throw (SPDT)
The relays can switch up to 240 VAC at 10 Amps and 100 VDC at 5 Amps.

 

Relay's datasheed :
RAS.pdf

 

Supply :
24 Volts DC
Minimum draws current - 100mA

 

Dimensions :
50 mm / 45 mm / 20 mm

 

Sample Arduino Code :

/*
  Relay control example
  Turns on an Relays on and off for half second, repeatedly.
 
  This example code is in the public domain.
*/

void setup() {
  // initialize the digital pin's as an output.
  pinMode(12, OUTPUT); // Relay 1
  pinMode(13, OUTPUT); // Relay 2
}

void loop() {
  digitalWrite(12, HIGH); // set the Relay 1 on
  delay(500); // wait for a half second
  digitalWrite(12, LOW);  // set the Relay 1 off
  delay(500); // wait for a half second
  digitalWrite(13, HIGH); // set the Relay 2 on
  delay(500); // wait for a half second
  digitalWrite(13, LOW);  // set the Relay 2 off
  delay(500); // wait for a half second
}

 

 

 

 

 

This relay board will allow you to switch other electrical devices on and off.

 

 

Relay parameters :
The relays are Single Pole Double Throw (SPDT)
The relays can switch up to 240 VAC at 10 Amps and 100 VDC at 5 Amps.

 

Relay's datasheed :
RAS.pdf

 

Supply :
12 Volts DC
Minimum draws current - 100mA

 

Dimensions :
50 mm / 45 mm / 20 mm

 

Sample Arduino Code :

/*
  Relay control example
  Turns on an Relays on and off for half second, repeatedly.
 
  This example code is in the public domain.
*/

void setup() {
  // initialize the digital pin's as an output.
  pinMode(12, OUTPUT); // Relay 1
  pinMode(13, OUTPUT); // Relay 2
}

void loop() {
  digitalWrite(12, HIGH); // set the Relay 1 on
  delay(500); // wait for a half second
  digitalWrite(12, LOW);  // set the Relay 1 off
  delay(500); // wait for a half second
  digitalWrite(13, HIGH); // set the Relay 2 on
  delay(500); // wait for a half second
  digitalWrite(13, LOW);  // set the Relay 2 off
  delay(500); // wait for a half second
}

 

Sunday, 15 July 2012 04:38

Board with 2 RELAY ready for your project - 5V

Written by

 

 

 

 

This relay board will allow you to switch other electrical devices on and off.

 

 

Relay parameters :
The relays are Single Pole Double Throw (SPDT)
The relays can switch up to 240 VAC at 10 Amps and 100 VDC at 5 Amps.

 

Relay's datasheed :
RAS.pdf

 

Supply :
5 Volts DC
Minimum draws current - 180mA

 

Dimensions :
50 mm / 45 mm / 20 mm

 

Sample Arduino Code :

/*
  Relay control example
  Turns on an Relays on and off for half second, repeatedly.
 
  This example code is in the public domain.
*/

void setup() {
  // initialize the digital pin's as an output.
  pinMode(12, OUTPUT); // Relay 1
  pinMode(13, OUTPUT); // Relay 2
}

void loop() {
  digitalWrite(12, HIGH); // set the Relay 1 on
  delay(500); // wait for a half second
  digitalWrite(12, LOW);  // set the Relay 1 off
  delay(500); // wait for a half second
  digitalWrite(13, HIGH); // set the Relay 2 on
  delay(500); // wait for a half second
  digitalWrite(13, LOW);  // set the Relay 2 off
  delay(500); // wait for a half second
}

 

Sunday, 15 July 2012 04:29

USB DS1820 Thermometer

Written by




For connection to a PC's USB port using VCP (Virtual COM port). Fully powered from the USB bus.

Features:
• Fully assembled and tested.
• Fully powered from USB
• Measures Temperatures from -55°C to +125°C (-67°F to +257°F)

Complete including:
- 1x USB 1-Wire Adapter
- 1x DS18S20 Temperature Sensor (30 cm cables)

Dimensions:
60 mm / 20 mm

Typical Applications:
- Home automation
- Industrial automation

Drivers:
CDC.zip

Communication Parameters:
8 Data, 1 Stop, No Parity
Baud rate : 9600
 






http://sigma-shop.com/product/77/usb-ds1820-thermometer.html

Thursday, 12 July 2012 09:53

USB RFID 125 kHz Access Control Reader Module

Written by


 

 

 

 

 

 

A general purpose USB Relay board (controller) for connection to a PC's USB port using VCP (Virtual COM port). A low-cost solution to read RFID 125 kHz transponder tags and cards. The USB RFID Reader can be used in a wide variety of hobbyist and commercial applications, including access control, automatic identification, payment systems....

Manufacturer:
KMtronic LTD

Features:
• Fully assembled and tested.
• Powered from USB
• Communication: 9600 bps serial through virtual USB COM port
• LED and Buzzer indication
• The RFID reader is designed to work with all EM41xx/EM42xx family 125 kHz RFID tags including cards, buttons, capsules, disks, key fobs, and other compatible chips
• FT232RL chip for USB to Serial converter

Typical Applications:
• Access control
• Automatic identification
• Robotics
• Inventory tracking
• Payment systems
• Industrial automation

Drivers are available to work with the following operating systems:
Windows Server 2008 R2, Windows 7, Windows 7 x64, Windows Server 2008,
Windows Server 2008 x64, Windows Vista, Windows Vista x64, Windows Server 2003,
Windows Server 2003 x64, Windows XP, Windows XP x64, Windows 2000, Windows ME,
Windows 98, Linux, Mac OS X, Mac OS 9, Mac OS 8, Windows CE.NET (Version 4.2 and greater)

Read Distance:
2 ~ 7 cm (dependant on tag)

Communication Parameters:
8 Data, 1 Stop, No Parity
Baud rate : 9600

Output:
3 bytes tag number in HEX format
Example number: A3E142
Converted in DEC format is 0010740034

 

 

 

 

 

 

 

Controlling USB Relay controller - One Channel

via Microsoft Office PowerPoint 2007

 

 

1. Download the drivers. If you are working with Windows7 or VISTA, you don’t need to download them. The device should be installed automatically. If it does NOT, please click on the following link :

http://www.info.kmtronic.com/installing-ftdi-drivers.html

Here you will find the steps you have to undertake in order to install it.

 

2. Connect the USB Relay. Wait for the Device Driver to install successfully.

 

3. Check in Device Manager COM port where the Relay is installed.

 

4. Download and unzip:

http://info.kmtronic.com/software/USB_Relays/Office/KMTronic_USB_Relay_Control_Software.zip

 

- You will find all files for controlling USB Relay Controllers from 1 to 8 channel in the folder.

 

5. Right-click on Relay_1_OFF and choose Properties. Change the COM Port to yours and click OK

(in our case it is COM3).

 

- Make sure you type the same digit as the COM Port;

    

-  There are two types of commands:
usbrelay.exe -c:3 -r:1#1 (this will turn relay ON );


usbrelay.exe -c:3 -r:1#0 (this will turn relay OFF);


- It will be even easier for you if you use the same name for the Folder and the File as the example above

(D:\ USBrelay\USBrelay.exe);

- Click Apply.

 

6. Now follow the same procedure for Relay_on. However, use the command:

usbrelay.exe -c:3 -r:1#1.
                                    

- Click Apply. The Relay should turn ON now.

The first thing you did was to make sure that the USB One Relay Controller- One Channel turns on and off without any troubles. Now open Microsoft Office PowerPoint 2007.

 

7. With the Presentation open, hit Alt+F11 to open the VBE (Microsoft Visual Basic).

 

8. Click on Insert > Class Module.

 

9. Rename the module (in the Properties pane, bottom left) to cEventClass.

 

10. Copy- Paste the following code:

Public WithEvents PPTEvent As Application
 
Private Sub PPTEvent_SlideShowNextSlide(ByVal Wn As SlideShowWindow)
    Dim RetVal
    If Wn.View.Slide.Shapes.HasTitle Then
        If Wn.View.Slide.Shapes.Title.TextFrame.TextRange.Text = "Model with lights on" Then
            RetVal = Shell("D:\USBrelay\USBRelay.exe -c:3 -r:1#1", 1)
        ElseIf Wn.View.Slide.Shapes.Title.TextFrame.TextRange.Text = "Model with lights off" Then
            RetVal = Shell("D:\USBrelay\USBRelay.exe -c:3 -r:1#0", 1)
        End If

 

End If

   

End Sub

 

 

- Make sure the PPTEvent and Slide ShowNextSlide appear on the top.

 

- Click to “Save” the file.

 

 

 

11. Click on the Insert- Module.

 

12. Copy-Paste the following code:

Public cPPTObject As New cEventClass
Sub Auto_Macros_On()
Set cPPTObject.PPTEvent = Application
End Sub

 

 

- Make sure the Auto_Macros_On, appears again on the top; - Click to “Save” the file.

 

13. Add a Action Button to your first slide: Insert -> Shapes-> Action Button bottom. This will need to be clicked to enable the Auto Macros. Give that shape an Action so it runs the Auto_Macros_On macro when clicked.

 

14. Now go back to the cEventClass, module. The text "Model with lights on/off" needs to be changed so it matches the titles of the slides you want the lights to switch. Do the same for lights off. Let’s name them Start and Stop. Save the file when you are done.

 

-Go back to the PowerPoint Presentation and give a Title the slides.

 

 

 

15. Save the Presentation as macro enabled .pptm.

 

16. Set a time for the slides and Start the slideshow from the beginning. Don’t forget to click the Action Button in the beginning. The USB Relay should turn on and off automatically.

 

 

 

 

 

Friday, 04 May 2012 09:05

KMtronic RS485 Relays commands

Written by

 

 

RS485 Relays commands

 

 

           ON Command                    OFF Command
              DEC   HEX                      DEC      HEX
Relay Board ID:01 Relay 1 Channel 1 255 1 1 FF 01 01 255 1 0 FF 01 00
Relay Board ID:01 Relay 2 Channel 2 255 2 1 FF 02 01 255 2 0 FF 02 00
Relay Board ID:01 Relay 3 Channel 3 255 3 1 FF 03 01 255 3 0 FF 03 00
Relay Board ID:01 Relay 4 Channel 4 255 4 1 FF 04 01 255 4 0 FF 04 00
Relay Board ID:01 Relay 5 Channel 5 255 5 1 FF 05 01 255 5 0 FF 05 00
Relay Board ID:01 Relay 6 Channel 6 255 6 1 FF 06 01 255 6 0 FF 06 00
Relay Board ID:01 Relay 7 Channel 7 255 7 1 FF 07 01 255 7 0 FF 07 00
Relay Board ID:01 Relay 8 Channel 8 255 8 1 FF 08 01 255 8 0 FF 08 00
Relay Board ID:02 Relay 1 Channel 9 255 9 1 FF 09 01 255 9 0 FF 09 00
Relay Board ID:02 Relay 2 Channel 10 255 10 1 FF 0A 01 255 10 0 FF 0A 00
Relay Board ID:02 Relay 3 Channel 11 255 11 1 FF 0B 01 255 11 0 FF 0B 00
Relay Board ID:02 Relay 4 Channel 12 255 12 1 FF 0C 01 255 12 0 FF 0C 00
Relay Board ID:02 Relay 5 Channel 13 255 13 1 FF 0D 01 255 13 0 FF 0D 00
Relay Board ID:02 Relay 6 Channel 14 255 14 1 FF 0E 01 255 14 0 FF 0E 00
Relay Board ID:02 Relay 7 Channel 15 255 15 1 FF 0F 01 255 15 0 FF 0F 00
Relay Board ID:02 Relay 8 Channel 16 255 16 1 FF 10 01 255 16 0 FF 10 00
Relay Board ID:03 Relay 1 Channel 17 255 17 1 FF 11 01 255 17 0 FF 11 00
Relay Board ID:03 Relay 2 Channel 18 255 18 1 FF 12 01 255 18 0 FF 12 00
Relay Board ID:03 Relay 3 Channel 19 255 19 1 FF 13 01 255 19 0 FF 13 00
Relay Board ID:03 Relay 4 Channel 20 255 20 1 FF 14 01 255 20 0 FF 14 00
Relay Board ID:03 Relay 5 Channel 21 255 21 1 FF 15 01 255 21 0 FF 15 00
Relay Board ID:03 Relay 6 Channel 22 255 22 1 FF 16 01 255 22 0 FF 16 00
Relay Board ID:03 Relay 7 Channel 23 255 23 1 FF 17 01 255 23 0 FF 17 00
Relay Board ID:03 Relay 8 Channel 24 255 24 1 FF 18 01 255 24 0 FF 18 00
Relay Board ID:04 Relay 1 Channel 25 255 25 1 FF 19 01 255 25 0 FF 19 00
Relay Board ID:04 Relay 2 Channel 26 255 26 1 FF 1A 01 255 26 0 FF 1A 00
Relay Board ID:04 Relay 3 Channel 27 255 27 1 FF 1B 01 255 27 0 FF 1B 00
Relay Board ID:04 Relay 4 Channel 28 255 28 1 FF 1C 01 255 28 0 FF 1C 00
Relay Board ID:04 Relay 5 Channel 29 255 29 1 FF 1D 01 255 29 0 FF 1D 00
Relay Board ID:04 Relay 6 Channel 30 255 30 1 FF 1E 01 255 30 0 FF 1E 00
Relay Board ID:04 Relay 7 Channel 31 255 31 1 FF 1F 01 255 31 0 FF 1F 00
Relay Board ID:04 Relay 8 Channel 32 255 32 1 FF 20 01 255 32 0 FF 20 00
Relay Board ID:05 Relay 1 Channel 33 255 33 1 FF 21 01 255 33 0 FF 21 00
Relay Board ID:05 Relay 2 Channel 34 255 34 1 FF 22 01 255 34 0 FF 22 00
Relay Board ID:05 Relay 3 Channel 35 255 35 1 FF 23 01 255 35 0 FF 23 00
Relay Board ID:05 Relay 4 Channel 36 255 36 1 FF 24 01 255 36 0 FF 24 00
Relay Board ID:05 Relay 5 Channel 37 255 37 1 FF 25 01 255 37 0 FF 25 00
Relay Board ID:05 Relay 6 Channel 38 255 38 1 FF 26 01 255 38 0 FF 26 00
Relay Board ID:05 Relay 7 Channel 39 255 39 1 FF 27 01 255 39 0 FF 27 00
Relay Board ID:06 Relay 8 Channel 40 255 40 1 FF 28 01 255 40 0 FF 28 00
Relay Board ID:06 Relay 1 Channel 41 255 41 1 FF 29 01 255 41 0 FF 29 00
Relay Board ID:06 Relay 2 Channel 42 255 42 1 FF 2A 01 255 42 0 FF 2A 00
Relay Board ID:06 Relay 3 Channel 43 255 43 1 FF 2B 01 255 43 0 FF 2B 00
Relay Board ID:06 Relay 4 Channel 44 255 44 1 FF 2C 01 255 44 0 FF 2C 00
Relay Board ID:06 Relay 5 Channel 45 255 45 1 FF 2D 01 255 45 0 FF 2D 00
Relay Board ID:06 Relay 6 Channel 46 255 46 1 FF 2E 01 255 46 0 FF 2E 00
Relay Board ID:06 Relay 7 Channel 47 255 47 1 FF 2F 01 255 47 0 FF 2F 00
Relay Board ID:06 Relay 8 Channel 48 255 48 1 FF 30 01 255 48 0 FF 30 00

 

 

 

Status read commands

 
KMtronic RS485 Relay board


Relay Board ID:01

FF A1 00 - Status request command

  > FF A1 xx xx xx xx xx xx xx xx  - Reply from relay where xx is status: 01 - Relay is ON, 00 - Relay is OFF 

First byte is status first relay, Eight byte is status eight relay

 

Relay Board ID:02

FF A2 00 - Status request command

  > FF A2 xx xx xx xx xx xx xx xx  - Reply from relay where xx is status: 01 - Relay is ON, 00 - Relay is OFF 

First byte is status first relay, Eight byte is status eight relay

 


Relay Board ID:03

FF A3 00 - Status request command

  > FF A3 xx xx xx xx xx xx xx xx  - Reply from relay where xx is status: 01 - Relay is ON, 00 - Relay is OFF 

First byte is status first relay, Eight byte is status eight relay

 


Relay Board ID:04

FF A4 00 - Status request command

  > FF A4 xx xx xx xx xx xx xx xx  - Reply from relay where xx is status: 01 - Relay is ON, 00 - Relay is OFF 

First byte is status first relay, Eight byte is status eight relay

 


Relay Board ID:05

FF A5 00 - Status request command

  > FF A5 xx xx xx xx xx xx xx xx  - Reply from relay where xx is status: 01 - Relay is ON, 00 - Relay is OFF 

First byte is status first relay, Eight byte is status eight relay

 


Relay Board ID:06

FF A6 00 - Status request command

  > FF A6 xx xx xx xx xx xx xx xx  - Reply from relay where xx is status: 01 - Relay is ON, 00 - Relay is OFF 

First byte is status first relay, Eight byte is status eight relay

 

 


 

 

 

Dip Switch (Address) Calculators

 

 

http://www.sabretechnology.co.uk/downloads/dipcalc.swf

 

http://www.chauvetlighting.com/chauvet-dip-switch-calculator/

http://www.thedmxwiki.com/dmx_definitions/dip_switches

http://www.xledlighting.co.uk/led-technology/dmx-dip-switch-calculator/

 

 

 

 

 

 

Page 28 of 33