Announcement

Collapse
No announcement yet.

Arduino Script Testing. (Enigmatheatre)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • aluis
    replied
    I add a Lcd 16x2 and now when the temp change on any temp sensor this value is displayed
    Great script !

    Leave a comment:


  • enigmatheatre
    replied
    Fredrik,

    Is there anything in the log when you change the inputs?
    I have just read over your post again and the script will not change the device status as it changes the Value and not the status because this is being removed in HS3.
    Is the Value changing?

    Greig.

    Leave a comment:


  • enigmatheatre
    replied
    Originally posted by FredrikKan View Post
    Hi again!
    Output pins are working, 1-wire is working - now it's time for the next option!
    I have assigned three pins for input;

    Connected to Board 1 on Com port 6
    Board 1, Input 3, Value = Off
    Board 1, Input 2, Value = Off
    Board 1, Input 1, Value = Off

    I then apply 5 volt to one (or any) of the input pins and check for result in Homeseer.
    After trying several times I have now concluded that the input pins I have
    assigned does not trigger a status change on the corresponding devices in Homeseer.

    Status of one of the devices after applying 5 volt;
    <TABLE border=1 cellSpacing=0 cellPadding=0 width="100%"><TBODY><TR><TD class=tableroweven align=left>Reference ID</TD><TD class=tableroweven colSpan=9 align=left>4482</TD></TR><TR><TD class=tablerowodd align=left>Status</TD><TD class=tablerowodd colSpan=9 align=left>17 = Unknown</TD></TR><TR><TD class=tableroweven align=left>Value</TD><TD class=tableroweven colSpan=9 align=left>1 = "Off" </TD></TR><TR><TD class=tablerowodd align=left>String</TD><TD class=tablerowodd colSpan=9 align=left></TD></TR><TR><TD class=tableroweven align=left>Supports Status</TD><TD class=tableroweven colSpan=9 align=left>False</TD></TR><TR><TD class=tablerowodd align=left>Dimmable</TD><TD class=tablerowodd colSpan=9 align=left>False</TD></TR><TR><TD class=tableroweven align=left>Misc Settings</TD><TD class=tableroweven colSpan=9 align=left>Status Only</TD></TR></TBODY></TABLE>

    Any tips are appreciated!

    Fredrik
    Hi Fredrik

    Can you send me your ino and ini and I will see if I can solve your strange problem.

    Greig.

    Leave a comment:


  • mhn
    replied
    That's strange. The only thing I can think of is, do you remember to refresh the status page?

    Try looking at the log.

    The pullup resistor isn't needed unless you get a lot of on/off changes.

    Leave a comment:


  • FredrikKan
    replied
    Setting pin to ground makes no difference

    I have the same status when I connect the pin to ground (0 volt). I have no pullup resistor though... Thought I would see some kind of reaction in status on fiddeling with 0 and 5 volt on the input...?

    Leave a comment:


  • mhn
    replied
    Connect them to GND.

    I add a pullup resistor because they tend to tease, but it should not be necessary.

    Regards
    Morten

    Leave a comment:


  • FredrikKan
    replied
    No status change when 5 volt is applied to input pin

    Hi again!
    Output pins are working, 1-wire is working - now it's time for the next option!
    I have assigned three pins for input;

    Connected to Board 1 on Com port 6
    Board 1, Input 3, Value = Off
    Board 1, Input 2, Value = Off
    Board 1, Input 1, Value = Off

    I then apply 5 volt to one (or any) of the input pins and check for result in Homeseer.
    After trying several times I have now concluded that the input pins I have
    assigned does not trigger a status change on the corresponding devices in Homeseer.

    Status of one of the devices after applying 5 volt;
    <TABLE border=1 cellSpacing=0 cellPadding=0 width="100%"><TBODY><TR><TD class=tableroweven align=left>Reference ID</TD><TD class=tableroweven colSpan=9 align=left>4482</TD></TR><TR><TD class=tablerowodd align=left>Status</TD><TD class=tablerowodd colSpan=9 align=left>17 = Unknown</TD></TR><TR><TD class=tableroweven align=left>Value</TD><TD class=tableroweven colSpan=9 align=left>1 = "Off" </TD></TR><TR><TD class=tablerowodd align=left>String</TD><TD class=tablerowodd colSpan=9 align=left></TD></TR><TR><TD class=tableroweven align=left>Supports Status</TD><TD class=tableroweven colSpan=9 align=left>False</TD></TR><TR><TD class=tablerowodd align=left>Dimmable</TD><TD class=tablerowodd colSpan=9 align=left>False</TD></TR><TR><TD class=tableroweven align=left>Misc Settings</TD><TD class=tableroweven colSpan=9 align=left>Status Only</TD></TR></TBODY></TABLE>

    Any tips are appreciated!

    Fredrik
    Last edited by FredrikKan; May 2, 2013, 08:54 AM.

    Leave a comment:


  • aluis
    replied

    Leave a comment:


  • mhn
    replied
    I have not tried a lot. But there are two DS18B20 on my "beta test breadboard". They work fine.

    But of course it could be a new error.

    Regards
    Morten

    Leave a comment:


  • enigmatheatre
    replied
    HI,

    No you can use more than one. You would have to reset the arduino when you add a new one then you will have to wait for the temp to change for it to register in homeseer.

    Greig.

    Leave a comment:


  • aluis
    replied

    Leave a comment:


  • enigmatheatre
    replied
    Good to here you got it working.

    I think i need to change the manual as the last update I did on the script will cause the device to not be created untill there is a temp change in the onewire device.

    Greig.

    Leave a comment:


  • FredrikKan
    replied
    Originally posted by enigmatheatre View Post
    You will then have to wait till the temp on the onewire device changes and then the device will be created in homeseer.

    Leave a comment:


  • enigmatheatre
    replied
    Originally posted by FredrikKan View Post
    After power toggle off/on for the Arduino board HS found the device!

    <TABLE border=0 cellSpacing=2 cellPadding=0 width="100%"><TBODY><TR><TD class=LOGDateTime0 noWrap align=left>2013-04-19 19:07:22 </TD><TD class=LOGType0 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry0 colSpan=8 align=left>OneWire device found with the Rom Address = 2836B7BD040000CD. Please add your housecode to the arduino.ini</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2013-04-19 19:07:20 </TD><TD class=LOGType1 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry1 colSpan=8 align=left>Connected to Board 1 on Com port 6</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2013-04-19 19:07:19 </TD><TD class=LOGType0 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry0 colSpan=8 align=left>Board 1, Input 3, Value = Off</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2013-04-19 19:07:19 </TD><TD class=LOGType1 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry1 colSpan=8 align=left>Board 1, Input 2, Value = Off</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2013-04-19 19:07:19 </TD><TD class=LOGType0 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry0 colSpan=8 align=left>Board 1, Input 1, Value = Off</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2013-04-19 19:07:19 </TD><TD class=LOGType1 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry1 colSpan=8 align=left>Board 1 Version 1.1.0 and Script Version 1.1.0 are compatible.</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2013-04-19 19:07:19 </TD><TD class=LOGType0 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry0 colSpan=8 align=left>Connecting to Arduino Board 1 on Com Port=6 baud= 115200 Parity= 0 DataBits= 8 stopBits= 1</TD></TR></TBODY></TABLE>
    I edited in W12 as the device code and clicked "Setup". No device W12 shows up in HS.
    The output in the log file is shown below;

    <TABLE border=0 cellSpacing=2 cellPadding=0 width="100%"><TBODY><TR><TD class=LOGDateTime0 noWrap align=left>2013-04-19 19:09:21 </TD><TD class=LOGType0 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry0 colSpan=8 align=left>Connected to Board 1 on Com port 6</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2013-04-19 19:09:21 </TD><TD class=LOGType1 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry1 colSpan=8 align=left>Board 1, Input 3, Value = Off</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2013-04-19 19:09:21 </TD><TD class=LOGType0 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry0 colSpan=8 align=left>Board 1, Input 2, Value = Off</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2013-04-19 19:09:21 </TD><TD class=LOGType1 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry1 colSpan=8 align=left>Board 1, Input 1, Value = Off</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2013-04-19 19:09:21 </TD><TD class=LOGType0 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry0 colSpan=8 align=left>Board 1 Version 1.1.0 and Script Version 1.1.0 are compatible.</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2013-04-19 19:09:20 </TD><TD class=LOGType1 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry1 colSpan=8 align=left>INI Clean complete, Updating Device status.</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2013-04-19 19:09:20 </TD><TD class=LOGType0 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry0 colSpan=8 align=left>Setup complete, Cleaning INI setup.</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2013-04-19 19:09:20 </TD><TD class=LOGType1 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry1 colSpan=8 align=left>Connecting to Arduino Board 1 on Com Port=6 baud= 115200 Parity= 0 DataBits= 8 stopBits= 1</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2013-04-19 19:09:20 </TD><TD class=LOGType0 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry0 colSpan=8 align=left>Device O8 Exists</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2013-04-19 19:09:20 </TD><TD class=LOGType1 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry1 colSpan=8 align=left>Board 1, Output 8, Board Pin no = 9, HS Device code = O8</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2013-04-19 19:09:19 </TD><TD class=LOGType0 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry0 colSpan=8 align=left>Device O7 Exists</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2013-04-19 19:09:19 </TD><TD class=LOGType1 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry1 colSpan=8 align=left>Board 1, Output 7, Board Pin no = 8, HS Device code = O7</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2013-04-19 19:09:18 </TD><TD class=LOGType0 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry0 colSpan=8 align=left>Device O6 Exists</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2013-04-19 19:09:18 </TD><TD class=LOGType1 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry1 colSpan=8 align=left>Board 1, Output 6, Board Pin no = 7, HS Device code = O6</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2013-04-19 19:09:18 </TD><TD class=LOGType0 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry0 colSpan=8 align=left>Device O5 Exists</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2013-04-19 19:09:18 </TD><TD class=LOGType1 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry1 colSpan=8 align=left>Board 1, Output 5, Board Pin no = 6, HS Device code = O5</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2013-04-19 19:09:17 </TD><TD class=LOGType0 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry0 colSpan=8 align=left>Device O4 Exists</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2013-04-19 19:09:17 </TD><TD class=LOGType1 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry1 colSpan=8 align=left>Board 1, Output 4, Board Pin no = 5, HS Device code = O4</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2013-04-19 19:09:17 </TD><TD class=LOGType0 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry0 colSpan=8 align=left>Device O3 Exists</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2013-04-19 19:09:17 </TD><TD class=LOGType1 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry1 colSpan=8 align=left>Board 1, Output 3, Board Pin no = 4, HS Device code = O3</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2013-04-19 19:09:16 </TD><TD class=LOGType0 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry0 colSpan=8 align=left>Device O2 Exists</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2013-04-19 19:09:16 </TD><TD class=LOGType1 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry1 colSpan=8 align=left>Board 1, Output 2, Board Pin no = 3, HS Device code = O2</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2013-04-19 19:09:16 </TD><TD class=LOGType0 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry0 colSpan=8 align=left>Device O1 Exists</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2013-04-19 19:09:16 </TD><TD class=LOGType1 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry1 colSpan=8 align=left>Board 1, Output 1, Board Pin no = 2, HS Device code = O1</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2013-04-19 19:09:15 </TD><TD class=LOGType0 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry0 colSpan=8 align=left>Device I12 Exists</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2013-04-19 19:09:15 </TD><TD class=LOGType1 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry1 colSpan=8 align=left>Board 1, Input 3, Board Pin no = 13, HS Device code = I12</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2013-04-19 19:09:15 </TD><TD class=LOGType0 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry0 colSpan=8 align=left>Device I11 Exists</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2013-04-19 19:09:15 </TD><TD class=LOGType1 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry1 colSpan=8 align=left>Board 1, Input 2, Board Pin no = 12, HS Device code = I11</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2013-04-19 19:09:14 </TD><TD class=LOGType0 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry0 colSpan=8 align=left>Device I10 Exists</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2013-04-19 19:09:14 </TD><TD class=LOGType1 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry1 colSpan=8 align=left>Board 1, Input 1, Board Pin no = 11, HS Device code = I10</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2013-04-19 19:09:14 </TD><TD class=LOGType0 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry0 colSpan=8 align=left>Number of PwmOutputs = 0</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2013-04-19 19:09:13 </TD><TD class=LOGType1 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry1 colSpan=8 align=left>Number of Outputs = 8</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2013-04-19 19:09:13 </TD><TD class=LOGType0 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry0 colSpan=8 align=left>Number of Analogue = 0</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2013-04-19 19:09:12 </TD><TD class=LOGType1 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry1 colSpan=8 align=left>Number of Inputs = 3</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2013-04-19 19:09:11 </TD><TD class=LOGType0 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry0 colSpan=8 align=left>Board 1 Version 1.1.0 and Script Version 1.1.0 are compatible.</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2013-04-19 19:09:11 </TD><TD class=LOGType1 colSpan=3 align=left>Arduino </TD><TD class=LOGEntry1 colSpan=8 align=left>Device J1 Exists</TD></TR></TBODY></TABLE>

    If I remember X10 correct (I probably don't!) he "House Code" is in this case "W" and the device # is 12 - isn't it?

    Hi there,

    Sorry I missed your post I have been very busy at work.
    Did you Get this to work?
    As morten said you should have a entry in your ini that looks like this RomAddress,2836B7BD040000CD=HC
    Change HC to the code you want it to be so I guess you want to use then save the ini. You will then have to wait till the temp on the onewire device changes and then the device will be created in homeseer.

    You dont have to run the setup for one wire as this is passed to homeseer on connect.

    If this is not working for you could you send me your ini and ino and i will have a look.

    Greig.

    Leave a comment:


  • travisdh
    replied
    I had a thought, it may not be practical but if the ethernet stuff was causing a bit of grief I wonder if it is possible to do like that Jon00 does with a few of his plugins and create it so that it can be run from another PC. that way if there are multiple computers on in someones house, they could have Arduino's on multiple ones for input / output work.

    Leave a comment:

Working...
X