Answer the question
In order to leave comments, you need to log in
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
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.
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
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 questionAsk a Question
731 491 924 answers to any question