Open main menu

Changes

DIDO

4,862 bytes added, 30 May
[[File:DIDO-IMG-7801.jpg|thumbnail|right|Raspberry Pi DIDO V1.3]]
[[File:DIDO-IMG-7799.jpg|thumbnail|right|Raspberry Pi DIDO V1.3]]
[[File:DIDO-IMG-7798-1.jpg|thumbnail|right|Raspberry Pi DIDO V1.3]]
[[File:DIDO0393.jpg|thumbnail|right|Raspberry Pi DIDO V1.2]]
{{GD Template Impl}}
[[File:DIDO0400.jpg|thumbnail|right|Raspberry Pi DIDO V1.2]]
[[File:DIDO0398.jpg|thumbnail|right|Raspberry Pi DIDO V1.2]]
[[File:DIDO0397.jpg|thumbnail|right|Raspberry Pi DIDO V1.2]]
[[File:DIDO0402.jpg|thumbnail|right|Raspberry Pi DIDO V1.2]]
==Instruction ==
'''NOTE:'''

This DIDO module supports also '''Raspberry Pi 5''' hardware, but need to change the gpio no, refer to [[#FAQ]] Q3


The DIDO is upgraded to Version 1.3, and it's support the raspberry pi 4 model B now. We have only reduced the PCB size, nothing else has changed.

How to use the DIDO on Raspberry PI 4B Please refer to [[File:How to use the DIDO on Raspberry PI 4B-EN.pdf]]

DIDO module includes components like relays,switches, gigital and analog I/O that will allow for connection to sensors ,motors, lights, etc.
and be controlled by the Raspberry Pi board.

The digital DIDO module interface board fits the original Raspberry Pi models A and B.
DIDO module has been redesigned to fit the Raspberry Pi models A and B.

== Product highlights ==
=== Typical applications: ===
* Education
* Home/Industrial automation
* Security monitoring
* Internet of Things gateway
* Remote monitoring
* Hobbyist projects and games
* I/O expander
* User interface for systems
=== Features: ===
* 2 Change Over Relays
* 4 Tactile Switches
* 8 Digital Inputs、touch sensitive inputs
* 8 Open-Collector Outputs
* 8 LED Indicators
* Graphical Emulator
* Easy to program in Python 3 and 2, Scratch and C
* Graphical emulator

=== Technical specifications: ===
* Changeover relays, 20V 5A switching max
* 1.5mm screw terminal hole size
* Operating Temp -40° to 85°

== Fitting instructions ==
'''Warnings'''
* Ensure that no power is supplied to Raspberry Pi, or DIDO boards
when plugging or unplugging.
DIDO sits neatly above the Raspberry Pi and connects using the expansion
connector. Take care to ensure all expansion pins are lined up with the holes on the
DIDO socket. Check the alignment for left and right, and front and back before
pushing down and never force the boards together if they don’t slide smoothly.

== Tour of hardware ==
[[File:DIDO1.png]]

Detail refer to [[File:DIDO-Piface2-Getting-starte.pdf]]

[[File:DIDO-schematic-1.jpg]]

[[File:DIDO-schematic-2.jpg]]

== Document & Download ==
*[[File:How_to_use_the_DIDO_on_Raspberry_PI_4B-EN.pdf]]
*[[File:How to use the DIDO on Raspberry PI 4B-CN.pdf]]
*[[File:Software-package.zip]]
* [[File:DIDO-module-Overview.pdf]]
* [[File:Install-DIDO-module-Software.pdf]]
* [[File:DIDO-Piface2-Getting-starte.pdf]]
* Test sample: [[File:Simple led.zip]]
* [[File:Draw Marquee-LED Banner about DIDO module(1).pdf]]
* For step by step help and ideas for projects visit: [http://www.piface.org.uk/guides/ Piface Guide]

== Application ==
* [[File:Controlling a remote control with the piface digital.pdf|Controlling a remote control with the piface digital.pdf]]
* [[File:Simple_web_control_with_PiFace_Digital.pdf| Simple web control with PiFace Digital.pdf]]

== test source code ==
#!/usr/bin/python3

from time import sleep
import pifacedigitalio

DELAY = 0.1 # seconds

if __name__ == "__main__":
pifacedigital = pifacedigitalio.PiFaceDigital()
while True:
sleep(DELAY)
pifacedigital.output_port.value=pifacedigital.input_port.value
==FAQ==
<div class="toccolours mw-collapsible mw-collapsed">
<div style="font-weight:bold;line-height:1.0; ">
Q1: Can't install PiFace Digital software
</div>
<div class="mw-collapsible-content">
A:
Please refer to the [[Raspberry_Pi_DIDO_Board#Document_.26_Download]] to install manually.

(https://www.raspberrypi.org/forums/viewtopic.php?t=194332 for reference)
</div>
</div>

<div class="toccolours mw-collapsible mw-collapsed">
<div style="font-weight:bold;line-height:1.0; ">
Q2: What GPIOs are be used?
</div>
<div class="mw-collapsible-content">
A: GPIO19 - GPIO24 are be used.

[[File:DUDo-gpio.png|none]]
</div>
</div>

<div class="toccolours mw-collapsible mw-collapsed">
<div style="font-weight:bold;line-height:1.0; ">
Q3: How to get DIDO working on Raspberry Pi 5
</div>
<div class="mw-collapsible-content">
A: When use it on the Raspberry Pi 5, You may encounter the following errors:

[[File:DIDO-error-on-pi5.png|800px]]

Need to run the command:
sudo nano /usr/lib/python3/dist-packages/pifacecommon/interrupts.py
Then search the <code>GPIO_INTERRUPT_PIN = 25</code> line and change '''25''' to '''596'''

PS: Run 'cat /sys/kernel/debug/gpio' to get new gpio no on raspberry pi 5
</div>
</div>

[[Category:Product Manual]]
[[Category:Raspberry pi]]
<comments/>