Do you know this relay module (and how to control it)? - Page 1
Forum section: electronics / general

author: fearless
author_rank: Contributor
timestamp: May 21, 2024, 01:26:24 am
content: I bought a Yoidesu 16 channel USB-controlled relay module via Amazon despite user comments that it came without documentation. I wrote to the vendor requesting the USB commands to wiggle the relays but have not yet heard back. It uses an 8051 processor, so the USB commands could be just about anything. So: has anyone in the EEVblog community worked with this unit, and if so, can you pass along the USB commands?(There's supposed to be an image here, but I'm not sure I understand the blog GUI -- click the amazon link if it doesn't show up here...)FWIW, here's the Amazon page for the device:https://www.amazon.com/Yoidesu-Controlled-opto%E2%80%91Isolated-Indicator-Electrical/dp/B08WX6L2KB

author: PCB.Wiz
author_rank: Super Contributor
timestamp: May 21, 2024, 01:50:32 am
content: These things are often generic, and not 'elegant'eg google finds this optionhttps://denkovi.com/Documents/USB-Relay-16Channels-v3/UserManual.pdfand also thishttps://www.sainsmart.com/products/16-channel-9-36v-usb-relay-moduleSeems to use a variant of intel hex ASCII packets, (choice of 36) and somewhat inefficient at 15 chars incl checksum, with relay ID and 0x00 or 0xff for off / on.and even closer may be this - has same STC MCU, and similar/same PCB design (similar intel hex ascii strings as above )https://www.aliexpress.us/item/1005001666658945.htmlCode:Status query 3A 46 45 30 31 30 30 30 30 30 30 31 30 46 31 0D 0AState return value 3A 46 45 30 31 30 30 32 30 30 30 30 30 46 46 0D 0A1st way open 3A 46 45 30 35 30 30 30 30 46 46 30 30 46 45 0D 0APass 1 3A 46 45 30 35 30 30 30 30 30 30 30 30 30 46 44 0D 0A2nd road open 3A 46 45 30 35 30 30 30 31 46 46 30 30 46 44 0D 0APass 2 3A 46 45 30 35 30 30 30 31 30 30 30 30 46 43 0D 0ANo. 3 open 3A 46 45 30 35 30 30 30 32 46 46 30 30 46 43 0D 0AThe third pass 3A 46 45 30 35 30 30 30 32 30 30 30 30 46 42 0D 0A4th road open 3A 46 45 30 35 30 30 30 33 46 46 30 30 46 42 0D 0A4th pass 3A 46 45 30 35 30 30 30 33 30 30 30 30 46 41 0D 0AOpen No. 5 3A 46 45 30 35 30 30 30 34 46 46 30 30 46 41 0D 0A5th pass 3A 46 45 30 35 30 30 30 34 30 30 30 30 46 39 0D 0ANo. 6 open 3A 46 45 30 35 30 30 30 35 46 46 30 30 46 39 0D 0AThe 6th pass 3A 46 45 30 35 30 30 30 35 30 30 30 30 46 38 0D 0ANo. 7 open 3A 46 45 30 35 30 30 30 36 46 46 30 30 46 38 0D 0APass 7 3A 46 45 30 35 30 30 30 36 30 30 30 30 46 37 0D 0ANo. 8 open 3A 46 45 30 35 30 30 30 37 46 46 30 30 46 37 0D 0A8th pass 3A 46 45 30 35 30 30 30 37 30 30 30 30 46 36 0D 0ANo. 9 open 3A 46 45 30 35 30 30 30 38 46 46 30 30 46 36 0D 0AThe 9th pass 3A 46 45 30 35 30 30 30 38 30 30 30 30 46 35 0D 0ANo. 10 open 3A 46 45 30 35 30 30 30 39 46 46 30 30 46 35 0D 0APass 10 3A 46 45 30 35 30 30 30 39 30 30 30 30 46 34 0D 0A11th road open 3A 46 45 30 35 30 30 30 41 46 46 30 30 46 34 0D 0APass 11 3A 46 45 30 35 30 30 30 41 30 30 30 30 46 33 0D 0ANo. 12 open 3A 46 45 30 35 30 30 30 42 46 46 30 30 46 33 0D 0APass 12 3A 46 45 30 35 30 30 30 42 30 30 30 30 46 32 0D 0A13th road open 3A 46 45 30 35 30 30 30 43 46 46 30 30 46 32 0D 0APass 13 3A 46 45 30 35 30 30 30 43 30 30 30 30 46 31 0D 0AOpen No. 14 3A 46 45 30 35 30 30 30 44 46 46 30 30 46 31 0D 0APass 14 3A 46 45 30 35 30 30 30 44 30 30 30 30 46 30 0D 0A15th road open 3A 46 45 30 35 30 30 30 45 46 46 30 30 46 30 0D 0APass 15 3A 46 45 30 35 30 30 30 45 30 30 30 30 46 46 0D 0A16th road open 3A 46 45 30 35 30 30 30 46 46 46 30 30 46 46 0D 0APass 16 3A 46 45 30 35 30 30 30 46 30 30 30 30 46 45 0D 0AFully open 3A 46 45 30 46 30 30 30 30 30 30 31 30 30 32 46 46 46 45 33 0D 0AFull close 3A 46 45 30 46 30 30 30 30 30 30 30 31 30 30 32 30 30 30 30 45 31 0D 0AThe tables do not quite line up, maybe they have typos ?If I merge those two docs I get thisCode:Status query 3A 46 45 30 31 30 30 30 30 30 30 31 30 46 31 0D 0AState return value 3A 46 45 30 31 30 30 32 30 30 30 30 30 46 46 0D 0A1st way open 3A 46 45 30 35 30 30 30 30 46 46 30 30 46 45 0D 0APass 1 3A 46 45 30 35 30 30 30 30 30 30 30 30 46 44 0D 0A2nd road open 3A 46 45 30 35 30 30 30 31 46 46 30 30 46 44 0D 0APass 2 3A 46 45 30 35 30 30 30 31 30 30 30 30 46 43 0D 0ANo. 3 open 3A 46 45 30 35 30 30 30 32 46 46 30 30 46 43 0D 0AThe third pass 3A 46 45 30 35 30 30 30 32 30 30 30 30 46 42 0D 0A4th road open 3A 46 45 30 35 30 30 30 33 46 46 30 30 46 42 0D 0A4th pass 3A 46 45 30 35 30 30 30 33 30 30 30 30 46 41 0D 0AOpen No. 5 3A 46 45 30 35 30 30 30 34 46 46 30 30 46 41 0D 0A5th pass 3A 46 45 30 35 30 30 30 34 30 30 30 30 46 39 0D 0ANo. 6 open 3A 46 45 30 35 30 30 30 35 46 46 30 30 46 39 0D 0AThe 6th pass 3A 46 45 30 35 30 30 30 35 30 30 30 30 46 38 0D 0ANo. 7 open 3A 46 45 30 35 30 30 30 36 46 46 30 30 46 38 0D 0APass 7 3A 46 45 30 35 30 30 30 36 30 30 30 30 46 37 0D 0ANo. 8 open 3A 46 45 30 35 30 30 30 37 46 46 30 30 46 37 0D 0A8th pass 3A 46 45 30 35 30 30 30 37 30 30 30 30 46 36 0D 0ANo. 9 open 3A 46 45 30 35 30 30 30 38 46 46 30 30 46 36 0D 0AThe 9th pass 3A 46 45 30 35 30 30 30 38 30 30 30 30 46 35 0D 0ANo. 10 open 3A 46 45 30 35 30 30 30 39 46 46 30 30 46 35 0D 0APass 10 3A 46 45 30 35 30 30 30 39 30 30 30 30 46 34 0D 0A11th road open 3A 46 45 30 35 30 30 30 41 46 46 30 30 46 34 0D 0APass 11 3A 46 45 30 35 30 30 30 41 30 30 30 30 46 33 0D 0ANo. 12 open 3A 46 45 30 35 30 30 30 42 46 46 30 30 46 33 0D 0APass 12 3A 46 45 30 35 30 30 30 42 30 30 30 30 46 32 0D 0A13th road open 3A 46 45 30 35 30 30 30 43 46 46 30 30 46 32 0D 0APass 13 3A 46 45 30 35 30 30 30 43 30 30 30 30 46 31 0D 0AOpen No. 14 3A 46 45 30 35 30 30 30 44 46 46 30 30 46 31 0D 0APass 14 3A 46 45 30 35 30 30 30 44 30 30 30 30 46 30 0D 0A15th road open 3A 46 45 30 35 30 30 30 45 46 46 30 30 46 30 0D 0APass 15 3A 46 45 30 35 30 30 30 45 30 30 30 30 46 46 0D 0A16th road open 3A 46 45 30 35 30 30 30 46 46 46 30 30 46 46 0D 0APass 16 3A 46 45 30 35 30 30 30 46 30 30 30 30 46 45 0D 0AFully open 3A 46 45 30 46 30 30 30 30 30 30 31 30 30 32 46 46 46 46 45 33 0D 0AFull close 3A 46 45 30 46 30 30 30 30 30 30 31 30 30 32 30 30 30 30 45 31 0D 0A:FE0F0000001002FFFFE3\r\n:FE0F00000010020000E1\r\n

author: mikerj
author_rank: Super Contributor
timestamp: May 22, 2024, 07:39:50 am
content: They must have tried hard to get that much overhead into the comms packet

author: fearless
author_rank: Contributor
timestamp: May 28, 2024, 05:41:33 pm
content: I'm not 100% convinced the commands for the pictured Yoidesu device match that of the SainSmart device, but I"ll give it a shot. Intel hex format isn't complex...Update:Halleluiah and thank you @PCB.Wiz! Pasting these (9600 baud, 8n1) into a terminal emulator:Code::FE0F0000001002FFFFE3\r\n:FE0F00000010020000E1\r\n... turned all the relays on and then off. So it does work!