DIY 13 S0 USB pulse with Arduino

Moderator: leecollings

Post Reply
HansHofman
Posts: 6
Joined: Tuesday 17 November 2015 16:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

DIY 13 S0 USB pulse with Arduino

Post by HansHofman »

Hi,

I added the s0 pulse USB to have 13 devices connected with an Arduino Uno3 directly to the Raspeberry PI by USB dev/ttyACM0

The serial info it sends is

ID:a:I:b:M1:c:d:M2:e:f:M3:g:h:M4:i:j:M5:k:l:M6:x:x:M7:x:x:M8:x:x:M9:x:x:M10:x:x:M11:x:x:M12:x:x:M13:x:x


What I noticed is that it shows only 5 devices is it possible to show the devices what it show in the input.

Also is it possible to set the USB speed in mysensors its set to 119200 but it only works with 9600.

Source code domoticz:

/a:S0 Pulse Counter V0.x
Data record (repeated every interval):
D:a:I:b:M1:c:d:M2:e:f:M3:g:h:M4:i:j:M5:k:l
Legenda:
a -> Unique ID of the S0PCM
b -> interval between two telegrams in seconds
c -> number of pulses in the last interval of register 1
d -> number of pulses since the last start-up of register 1
e -> number of pulses in the last interval of register 2
f -> number of pulses since the last start-up of register 2
.... etc.... for register 3, 4, 5

Hans
ThinkPad
Posts: 890
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

Re: DIY 13 S0 USB pulse with Arduino

Post by ThinkPad »

Funny that you made this. I also made this with an Arduino, as a proof of concept: http://domoticz.com/forum/viewtopic.php?f=38&t=7300
Maybe my topic contains something useful for you.

I think that the limit of 5, is because there was a S0PCM-2 and now only the S0PCM-5... so i think if you want 13 inputs, you will need 3 Arduino's.
I am not active on this forum anymore.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest