N
N
Nicholas2016-08-12 06:11:19
linux
Nicholas, 2016-08-12 06:11:19

How to find and select a usb relay?

Let's say I have a task:
1. I need to control the power supply of the device via usb (powered from the outlet but on the way to the device usb relay) just turned it off.
2 As in the first version, only with power adjustment.
Questions:
1 which relays are suitable for me (you can link to allexpress)
2 how to work with them from the console (linux)?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
tayanov, 2016-08-12
@ACCNCC

Well, I have an arduino for 100 rubles. and a pair of relays for 70 rubles.
You can control it through the built-in usb (usb-uart is built-in)
And you can run a script in the console (in my case, php, you can use a python for example)
The sketch is simple.
I turn the printer on / off remotely and tilt the tray on the inkjet with a servo before printing.

A
Alexander, 2016-08-12
@NeiroNx

I would take an arduino and do it myself. 220V power adjustment is complex and requires feedback
Relay: ru.aliexpress.com/item/J34-USB-Relay-2-Channel-Pro...
Code: https://github.com/darrylb123/usbrelay

K
Konstantin ™, 2016-08-13
@Energoblock

Our Russian guys make ready-made usb-relay modules: www.olimp-z.ru/rodos-3
Software for linux comes from the mp709 relay (manufactured by masterkit and olimp). Supplied in source.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question