This daisy module is discontinued
Up to 8 Daisy-4 modules can be wired using an unique flat cable. In that case you can make the flat cable with more IDC sockets by yourself.
This is the usable connectors where to plug this board using the factory default Linux image:
|D2||D11||Up to 8 modules|
|D5||D12||Up to 8 modules|
On the FOX Board G20 is requested a Daisy-1 adapter to wire this boards.
This is a very simple example of how to wire an external load to the Daisy-4 module.
A dip switch enables you to select on which GPIO line the relay will be drives.
Usually only one DIP must be placed "ON".
The following code examples illustrate how to manage the Daisy-4 module in Python. They work with a Daisy-11 module plugged on D5 connector and the dip switch 1 moved to the "ON" position.
Turn ON a Relay
Turn OFF a Relay
To launch it install the code playground directory following this article: Programming examples on GitHub then move into playground directory:
debarm:~/playground/python/daisy4# python relayon.py debarm:~/playground/python/daisy4# python relayoff.py
The main part of this code is the class Daisy4() that gets as parameter the Daisy connector (i.e. D2, D5, etc) and the dip switch in ON position (DIP1, DIP2 .. DIP8).
myrelay = daisy.Daisy4('D5','DIP1') myrelay.on() myrelay.off()