|
|
|
U451 Pinouts
Temperature sensors can be connected to Port A, bits 0 - 7. Port B, bits 0 and 1 control the on-board relays, and Port B, bits 2 - 7 can be tied directly to additional external 5V relays. See http://www.usbmicro.com/odn/index.html for additional information. Monitoring and Controlling U4x1 Devices in Home DominationTo use a U4x1 device in Home Domination, it's best if you plug in the device(s) before you start Home Domination. Then, when it starts, it will automatically detect all the devices. Then, you should start Home Domination and click Setup, then click Device Setup. Click the + sign next to "U401/U421 Direct I/O" and you should see a listing for each U4x1 device attached. The following example shows what it will look like if you have 3 devices.
Now click the + sign next to one of the devices you want to configure. You should see something like the following, where you have two ports, A and B, and each port has 8 data bits. Initially everything will be set as Input.
If you are only going to be reading the value of each pin, you don't need to worry about that since everything defaults to Input, but you will still need to add a "Sensor" that will be included on the sensor tab on the main dialog, or can be used in macros. If you want to control a pin like a switch, you will need to change it to Output and add a "Switch" so it will show up in the switch tab on the main dialog, and so it will configure it so it can be controlled. To change a bit to output or to add a sensor or switch, just double click on a bit, or single click and click Change. Then select Input or Output to whichever one you desire. You can change the On Value and Off Value in case the device you have attached is a little backwards, and you can change the value that it will default to on startup. And finally, if it is set to input, it will allow you to add a sensor, or use one you've already setup, and if it's set to output, it will let you add a switch or use one that's already set up.
This example shows how to set it up so you can control your doomsday device, which is of course quite necessary if you want to dominate the world. When you click Add Switch, the following window will appear:
A paddle switch is for devices where one bit is pulsed on and off to turn the device on and another bit is pulsed on and off to turn the device off. A regular switch uses only one bit and it simply turns it on or off. When you click Switch and then click Select, the following window appears with the Device Type, Port and Bit already filled in for you, so all you have to do is set the name to what you want and click OK and it will add it for you.
When you click Add Sensor, you will get a similar dialog. If you're curious what those other fields are for, or wondering how to set up a paddle switch, just click F1 when you're on that window and it will tell you all about it. If you want to change all 8 bits to output or back to input, you can do it easily by selecting the Port (A or B) and clicking Change. This will bring up the following window where you can change the Input or Output type, and it will automatically change it for all the bits. Here you also have the option of treating the port as a single number rather than individual bits. This may be handy if you want to use the U4x1 to pass in a numeric value, perhaps for analog to digital applications. The value can be used in macros by using the compare ability in a sensor trigger.
Once you've set up all your sensors and switches in this way, they will appear on the Sensors and Switches tab. If you have the remote network client set up, then you can detonate your doomsday device from the safety of another country, or you can create a macro to watch one of your sensors and detonate the device when Mr. Bond approaches it without using his fancy gadgets. Remember, doomsday devices may harm the environment, so you might want to consider taking over the world with annoying noise instead.
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||