Page 1 of 1

DIY 13 S0 USB pulse with Arduino

Posted: Thursday 14 January 2016 12:58
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

Re: DIY 13 S0 USB pulse with Arduino

Posted: Thursday 14 January 2016 14:38
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.