Some Things One more WordPress weblog

November 27, 2013

Numato “relay on x”

Filed under: PythonNumato — Tags: , , , , — Michael @ 14:13

Problem

Documentation from Numato says that in order to turn on an individual relay on their URMC16 USB Relay Module, users should send the command, relay on x. This command, they say,
Turns a particular relay on. The parameter “x“ stands for the relay number. The relay number starts from zero. See some examples below.
relay on 0 – Turns on relay 0
relay on 1 – Turns on relay 1

That is all good for relays 0 through 9, but what about relays 10 through 15? Trying, for example, to turn on relay 12 with relay on 12 led to relay 1, if it was off, being turned on. So the controller seems to be getting the first digit and ignoring everything after that.

The next thought was that relays 10 through 15 would be addressed by their hex names, ‘a’ through ‘f’, allowing them each to be referenced by a single character. But relay on c had no effect on any relays on the board.

Solution

After some frustrating searches, I finally found what appeared to be an older version of their documentation. In the older version, they give examples of commands sent to switch the higher-addressed relays, and relay on C was what I needed. The address character needs to be in UPPERCASE. I sure wish they would have included that in the documentation.

All related posts will be in the “pythonnumato” category.


u iX

November 24, 2013

Python and Numato

I am working on a project to use Python programming and Numato input/output devices to build a weightlifting referee-light system. I will try to keep track of problems I run into (and solutions I find) as I go along.
All related posts will be in the “pythonnumato” category.




bjldOgnyCe Zl F z dqV

Powered by WordPress