Using the UART pins on the Pi?

All the topics related to QLC+ on the Raspberry Pi
Post Reply
RavenII
Posts: 5
Joined: Mon Aug 31, 2015 2:30 am
Real Name: Ramsin

Hello all,

I'm currently using this wireless DMX PCB and it requires either an RS485 converter or an RS232/UART adapter and I'm currently using this here using USB but would like to eliminate the need for it by using the GND/5v/TX/RX that's built into the Pi, is there any way of doing this?
User avatar
mcallegari
Posts: 4481
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

RavenII wrote:I'm currently using this wireless DMX PCB and it requires either an RS485 converter or an RS232/UART adapter and I'm currently using this here using USB but would like to eliminate the need for it by using the GND/5v/TX/RX that's built into the Pi, is there any way of doing this?
Hi, I have implemented a UART plugin for QLC+.
Would you be willing to help testing it ?
RavenII
Posts: 5
Joined: Mon Aug 31, 2015 2:30 am
Real Name: Ramsin

mcallegari wrote:
RavenII wrote:I'm currently using this wireless DMX PCB and it requires either an RS485 converter or an RS232/UART adapter and I'm currently using this here using USB but would like to eliminate the need for it by using the GND/5v/TX/RX that's built into the Pi, is there any way of doing this?
Hi, I have implemented a UART plugin for QLC+.
Would you be willing to help testing it ?
YES!! Absolutely!
User avatar
mcallegari
Posts: 4481
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Hi, at the moment there is no UART plugin for QLC+.
Might be coming soon though.
RavenII
Posts: 5
Joined: Mon Aug 31, 2015 2:30 am
Real Name: Ramsin

Ah, I see, thanks a lot! I really appreciate the work and support!
User avatar
mcallegari
Posts: 4481
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

So, here you go.

You need to do 3 things:
Add this at the end of the config.txt file in the SD FAT partition:

Code: Select all

init_uart_clock=16000000
Otherwise the UART will not support the speed requested by DMX which is 250kbps.

Edit the file cmdline.txt in the FAT partition and turn it into this:

Code: Select all

dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
These 2 will be included by default in the next images.

Then extract the attached ZIP file and copy the .so file in /usr/lib/qt4/plugins/qlcplus/
Restart QLC+ (or reboot) and you'll see the UART plugin.

Please report here your results.
Thanks
Attachments
libuart.so.zip
(30.77 KiB) Downloaded 121 times
RavenII
Posts: 5
Joined: Mon Aug 31, 2015 2:30 am
Real Name: Ramsin

Massimo....I love you. It worked flawlessly. I'll definitely post up what my setup consists of so people can know the power of this software. Dude, I've got a very functional DMX controller....wireless. Awesome.
User avatar
mcallegari
Posts: 4481
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Excellent news Ramsin !
Yes, please post a bit of information of your setup as other users might be interested in it and can be sure that it works :)
User avatar
karrika
Posts: 60
Joined: Tue May 12, 2015 6:50 am
Real Name: Karri Kaksonen

This is really good news. Does it implement DMX in also?

Once I get the isolated GPIO board done I would love to make an isolated DMX in/out board to the RPi.
User avatar
mcallegari
Posts: 4481
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

karrika wrote:This is really good news. Does it implement DMX in also?

Once I get the isolated GPIO board done I would love to make an isolated DMX in/out board to the RPi.
Unfortunately, no DMX input at the moment.
It's a programming pain in the ass.
bodex
Posts: 2
Joined: Thu Jan 21, 2016 3:01 pm
Real Name:

Hi,

I tried to use the three UART-Pins as an Outpout-Device. But it doesn´t work yet. Must i change some configurations to use them?
What Baud Rate uses the UART Out.

Bodex
User avatar
mcallegari
Posts: 4481
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Mihai Andrei
Posts: 77
Joined: Sun Sep 27, 2015 10:58 am
Location: Italy-Arezzo
Real Name: Mihai Andrei
Contact:

I built UART converter :
chip used: SN75176B http://www.ti.com.cn/cn/lit/ds/symlink/sn75176b.pdf

Image
chuddy117
Posts: 3
Joined: Tue Dec 20, 2016 4:28 pm
Real Name:

I just donated and received a link to the QLC+ image for the PI, and I'm looking to use the native UART pins on my PI, but am a little confused as to the components required. I have a MAX485 converter (same as this one: http://www.jonshouse.co.uk/rpidmx512.cgi), but on that website, it doesn't use the UART pins on the Pi. Does any one have a diagram for which pins are required, and if I need anything beyond the MAX485 adapter?
Mihai Andrei
Posts: 77
Joined: Sun Sep 27, 2015 10:58 am
Location: Italy-Arezzo
Real Name: Mihai Andrei
Contact:

I have done so and I works perfectly
is it of RPI QLC for OLA

1)
put before writing that is

Code: Select all

#
with the command:

Code: Select all

sudo nano /boot/cmdline.txt
2)
put the end of everything

Code: Select all

init_uart_clock=16000000
with the command:

Code: Select all

sudo nano /boot/config.txt
3)
simple .. just connect the RI uart TX for the Rpi .. and everything works
(Capacitors are used to overcome small disturbances from the DMX line)
12787079_10204293742103299_312901291_o.jpg
the LED is not mandatory but as confirmation that everything works I put .. you can also put it to the test and remove it very important to be bi-color LED with 2 pins .. or inverted pin inside .. or 2 opposite mounted LED .. (then LED with 3-pin and common ground are not good)
the startup will be red .. while charging the image can change the color (flashing of LED type sd) then they are both turned on ..
as soon as you throw the signal you see flashing very fast (almost imperceptible) to 40hz ...
in this case, everything should work ...
We just have to try a real fixture to have more confirmation that everything is ok
Post Reply