Precondition
- PYNQ-Z1 v2.3 SDCard image
- SDK branch: image_v2.4
Connect hdmi-out to hdmi-in as prerequisite.
Connect IO0/IO1/GND of PYNQ to RX/TX/GND of USB-UART cable or something. UART signal is 3.3v and its speed is 9600 bps. Python script and microblaze binary, which are based on arduino_devmode.py and arduino_mailbox.bin, need to be installed as below because Arduino pins are under control of microblaze processor if you use 'base.bit' overlay.
pynq$ cd pynq-z1-examples/pynq/lib/arduino
pynq$ make
pynq$ cp arduino_uart.bin /usr/local/lib/python3.6/dist-packages/pynq/lib/arduino/
pynq$ cp arduino_uart.py /usr/local/lib/python3.6/dist-packages/pynq/lib/arduino/
Add one line below to /usr/local/lib/python3.6/dist-packages/pynq/lib/arduino/__init__.py
from .arduino_uart import Arduino_Uart