The DAISY-4 module allows Terra and FOX G20 boards to control larger loads and devices like AC or DC Motors, electromagnets, solenoids, and incandescent light bulbs.
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".
To know the relationship with the Kernel ID use the pinout page.
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()
DAISY-4 is a single relay Daisy module.
Note: the daisy flat cable to wire this board is not included. Don't forget to buy it (code FLAT-20CM)
20 cm ribbon cable with 10 wires compatible with the Acme Daisy Cabling System.
At least one of these cables is required to connect each Daisy module.
if you need different lengths please consider making your own the cable using the IDC socket JJ-02291-10P-F and the flat cable FC-3754-1M.
Atmel© Certified Partner
Acme Systems provides this documentation "as is" without warranty or guarantees of any kind. The mantainer of this site (Sergio Tanzilli), has gone to a great deal of effort into making this documentation as correct as possible. Acme Systems doesn't provide any direct support for the Open Source preinstalled software but provides, through these pages and forum posts, all the information required to obtain the sources, install, use and update the Open Source softwares runnable on the FOX Board, NetusG20, AriaG25 and Terra platforms. Please note that all the preinstalled softwares, used on the Acme Systems products, are Open Source and you will have to check the license terms provided (usually the GPL) by each author before using it in any commercial or non-commercial product, by yourself. Before sending emails or calling the Acme staff here are our contacts please note that WE ARE MAINLY HARDWARE DESIGNERS and NOT LINUX GURUS so could be better to post your questions directly to the forum listed below to be sure that all the contributors of this site and the large software developers community will read and reply to your questions.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.