You can check out this thread:
https://dietpi.com/forum/t/using-uart/2276/3?u=jappe
dietpi-config > Advanced Options > Serial/UART
- Enable serial console with dietpi-config should already do all steps for you, but to be sure:
- Verify that /DietPi/config.txt contains the line enable_uart=1.
- Verify that /DietPi/dietpi.txt contains the line CONFIG_SERIAL_CONSOLE_ENABLE=1.
- By default on RPi3 the hardware UART (aka full UART) on /dev/ttyAMA0 is used by the Bluetooth device.
- But if you disable Bluetooth completely, you can still use it for other tasks.
- Otherwise the software UART (aka mini UART) is available on /dev/ttyS0 which is as well by default configured to be available on the GPIO ports, so being the primary UART, on RPi3.
Instead of making the tty world-writeable, please add the nodered user to the tty group: usermod -aG tty nodered