DIDO

From Geekworm Wiki
(Redirected from Raspberry Pi DIDO Board)
Jump to navigation Jump to search
Raspberry Pi DIDO V1.3
Raspberry Pi DIDO V1.3
Raspberry Pi DIDO V1.3
Raspberry Pi DIDO V1.2

Raspberry Pi DIDO V1.2
Raspberry Pi DIDO V1.2
Raspberry Pi DIDO V1.2
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

DIDO1.png

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

DIDO-schematic-1.jpg

DIDO-schematic-2.jpg

Document & Download

Application

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

Q1: Can't install PiFace Digital software

Q2: What GPIOs are be used?

A: GPIO19 - GPIO24 are be used.

DUDo-gpio.png

Q3: How to get DIDO working on Raspberry Pi 5

A: When use it on the Raspberry Pi 5, You may encounter the following errors:

DIDO-error-on-pi5.png

Need to run the command:

sudo nano /usr/lib/python3/dist-packages/pifacecommon/interrupts.py

Then search the GPIO_INTERRUPT_PIN = 25 line and change 25 to 596

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

Add your comment
Geekworm Wiki welcomes all comments. If you do not want to be anonymous, register or log in. It is free.


Anonymous user #1

19 months ago
Score 0++
If the boards can be addressed, where do you set this address in the software? In the above examples I did not notice the address setting.

Danperryy

54 months ago
Score 0++
I can not comprehend how you would not publish a schematic of at least the I/O interface pins of the DIDO board. Are there clamping didoes to both rails? What are the values of the input resistors? What to the open collector outputs look like? What current will the outputs drive? What is the max vcc on the output pins? I won't buy another Geekworm product.

Harry

6 months ago
Score 0++