Chinese STM8S103F3 4 relay with RS485 board

1,108 views
Skip to first unread message

soyxan

unread,
Apr 25, 2016, 3:39:53 AM4/25/16
to souliss
Hi,

I am designing my home autimation system and I want to use Rs485 to cummunicate my modules (I dont like RF thing). My first idea was to use an arduino with a RS485 module and some relays but I found the following board on DealExtreme.


Is it based on STM8S103F3. Will I bea ble to ge it working with Souliss? Any advice of using it?

Any other cheap hardware solution that fits my needs (Souliss + RS485)

Thanks in advance.

Di Maio, Dario

unread,
Apr 25, 2016, 3:44:52 AM4/25/16
to sou...@googlegroups.com

Hi,

we support ProDino produced by KMP Electronics, is more expensive but is a well designed product and has both Ethernet and RS485 on board.

In a couple of months the Dino with ESP8266 will also be available, that will have Wifi and rs485 and will be cheaper.

Dario.

From Mobile.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/838d711e-522b-49e9-b780-956366f94236%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Damiano Verzulli

unread,
Apr 25, 2016, 8:00:43 PM4/25/16
to sou...@googlegroups.com


2016-04-25 9:39 GMT+02:00 soyxan <vicent...@gmail.com>:
> [...]

> I am designing my home autimation system and I want to use Rs485 to
> cummunicate my modules (I dont like RF thing).

Ok. So I'm not alone :-)
I'm doing _EXACTLY_ the same thing: implementing an home-automation system on top of several Arduinos, connected via RS485 (...as I don't like wireless, for this activity).


> My first idea was to use an
> arduino with a RS485 module and some relays

that's exactly what I tested and are currently implementing: several MEGAs controlling a bunch of relay modules (SSR, in my case)
Nice. And cheap. As I said, I preferred SSR so... have not considered such an option.



> Is it based on STM8S103F3. Will I bea ble to ge it working with Souliss? Any
> advice of using it?

I think _YES_: you should be able to use such a module.

Based on this picture:

​I see on the right IN1, IN2, IN3 and IN4 and I bet that they are the controlling PINs of the four relays on the left.

On the top right you can see "A+" and "B-" that clearly are related to the RS-485 bus.

So I guess that, with such a module, you have _TWO_ ways to control your relays:

1 - with a common approach as for any other common relay modules (aka: with PINs IN[1234]");
2 - with some vendor-specific application protocol, built on top of RS-485 interface.

As for SOULISS:
a - you'll have no problem following the approach "1", providing you'll have an Arduino (or an ESP or whatever) with 4 OUTPUT PINs phisically connected to IN[1234];
b - I really doubt you'll be able to follow the approach "2"

Anyway, as from your question it looks like your plan is to use the above relay module _ALONE_, with only an RS-485 connection (...and power), I would say that.... this is _NOT_ feasible: you can use the module, but you need an Arduino to connect to it.


> Any other cheap hardware solution that fits my needs (Souliss + RS485)

All my Arduinos will be connected on the RS-485 bus (please note that, actually, it's not a bus in a "strict" sense) via this RS-485 brick... and SOULISS worked like a charm.

Now I'm (heavily) working about the placement of the whole equipments inside properly-sized-and-arranged wall-boxes and.... this is _definitely_ a much more complex task (with respect to the "development/integration" side). I'll probably end in relying on a custom-made PCB to be used as:
- terminal-connection-ends for light-switches, DHT sensors and REED-switches;
- starting point for connections towards the local Arduino.
It might look a bit exagerated but.... distributing POWER and handling GROUND connections towards all the sensors/push-buttons is really a mess (...without a PCB) :-)

....but I'm going off-topic. Sorry!

HTH.

Bye,
DV

soyxan

unread,
Apr 26, 2016, 3:14:42 AM4/26/16
to souliss
Thanks for your reply.

As far as I can understand from the chinese web page, and from the provided documentation:


The board uses an STM8S103F3 which should be programmable, (in the previous link they talk about an SDK), or you can see more info on the following link


So my idea is to do NOT use an external arduino to control the relays. What I am not sure is if it can run Souliss in some way...

Regards.

Fulvio Spelta

unread,
Apr 26, 2016, 4:06:03 AM4/26/16
to souliss
It's not clear how's the programming configuration of the module at the supply state. From the few info available the module has 4 opto-isolated input (not driving the rele but available get acquire digital information) and 4 rele.

Due to STM cpu you can't run souliss directly on it.

Search for available libraries in order to have a stadard protocol over 485 such as modbus.

Fulvio Spelta

unread,
Apr 26, 2016, 4:07:43 AM4/26/16
to souliss
The http://pan.baidu.com/s/1nt6cLct link is a 404 (and same result followinf the link provided on the store). Good starting point :-)

Thomas R.

unread,
Jan 5, 2017, 10:33:58 PM1/5/17
to souliss
I know the thread over here is old but because it ends without any solution I feel like I have to add, that I read on aliexpress that the protocol it talks via RS485 is modbus RTU.


I don't own this device but maybe the modbus examples in souliss help you to connect it with an existing souliss node.

Best,
Thomas

guyc

unread,
Jan 6, 2017, 3:21:49 PM1/6/17
to souliss
Why not using DMX modules ?
In my actual project I control all the outputs by DMX. The I/O pins of the arduino are used for inputs.

Other possibility is one wire technology.
My next projects I gone do with ESP12e  and one wire for the inputs, outputs and temperature sensors (ds1820)
http://denkovi.com/one-wire-relay-boards-and-converters
The inputs modules I couldn't find for the moment, so I have to make them myself with the Dallas DS2408 IC.

Also a possibilty

Op vrijdag 6 januari 2017 04:33:58 UTC+1 schreef Thomas R.:
Reply all
Reply to author
Forward
0 new messages