BitWizard DMX Interface: Difference between revisions

From Gangplank
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 4: Line 4:


=== GPIO Configuration ===
=== GPIO Configuration ===
For the BitWizard HAT to function it has to be set to ''output mode'' via the GPIO <ref>[[wikipedia:General-purpose_input/output]]</ref> pins. There are a number of programms which enable you to configure the GPIO pins. In this example we use ''pigpio'' <ref>http://abyz.me.uk/rpi/pigpio/</ref>. To install pigpio on your Raspberry Pi either open a terminal window or connect to the Pi via SSH. Then type:
For the BitWizard HAT to function it has to be set to ''output mode'' via the GPIO <ref>[[wikipedia:General-purpose_input/output]]</ref> pins. There are a number of programms which enable you to configure the GPIO pins. In this example we use ''pigpio'' <ref>http://abyz.me.uk/rpi/pigpio/</ref>. To install pigpio on your Raspberry Pi either open a terminal window or connect to the Pi via SSH and type:


sudo apt install pigpio
sudo apt install pigpio

Revision as of 15:36, 13 April 2021

The BitWizard DMX interface is an HAT (hardware attached on top) extension board for the Raspberry Pi [1].

Installation Notes

GPIO Configuration

For the BitWizard HAT to function it has to be set to output mode via the GPIO [2] pins. There are a number of programms which enable you to configure the GPIO pins. In this example we use pigpio [3]. To install pigpio on your Raspberry Pi either open a terminal window or connect to the Pi via SSH and type:

sudo apt install pigpio

Output mode

Then we create a shell script [4] which will configure the GPIO pins when we run the script. Let's call the script bitwizard_gpio.sh

#!/bin/bash
pigpiod
sleep 1
pigs m 18 W
pigs w 18 1
pigs m 14 0
pigs m 15 0
systemctl restart olad

Caveat: We presume your shell is Bash [5]. If you use another shell change the first line of the script accordingly. We also presume that you have either Open Lighting Architecture (OLA) [6] or QLC+ [7] installed on your Raspberry.

Then make the script executable:

sudo chmod +x bitwizard_gpio.sh

Run the script with:

sudo ./bitwizard_gpio.sh

Now the pin configuration is changed and the BitWizard DMX HAT should work.

See also

QLC+

References

External Links

http://bitwizard.nl/wiki/Dmx_interface_for_raspberry_pi