Hi everybody!
I am dealing with the problem that I have changed to a new mainboard which doesn't have a serial port anymore. I'm on Ubuntu Natty.
I used to send LCD display data to my remote on the normal serial port using [comport]. The display itself has a serial interface. The remote uses a separate cable and [comport] for USB going to the arduino.
Is it possible to transfer the serial data for the display through the arduino using the arduinos serial out to feed the display (with a baud rate of 19200) ?
I still need to use firmata for all other arduino stuff. So it should be like an addon to firmata. Or is this already possible with the current firmata?
If anybody has done this before I'd appreciate any help!
Ingo
On 2013-06-05 14:24, Ingo wrote:
Hi everybody!
I am dealing with the problem that I have changed to a new mainboard which doesn't have a serial port anymore. I'm on Ubuntu Natty.
I used to send LCD display data to my remote on the normal serial port using [comport]. The display itself has a serial interface. The remote uses a separate cable and [comport] for USB going to the arduino.
Is it possible to transfer the serial data for the display through the arduino using the arduinos serial out to feed the display (with a baud rate of 19200) ?
I still need to use firmata for all other arduino stuff. So it should be like an addon to firmata. Or is this already possible with the current firmata?
If anybody has done this before I'd appreciate any help!
I did some Arduino programming but not much with Firmata.
It is possible, but it probably means you have to create your own firmata sketch which includes the SoftwareSerial library. With an Arduino with more serial ports, like the Mega2560 or Leonardo, you won't need SoftwareSerial but still a custom Firmata. You also need a TTL-to-RS232C voltage converter between the Arduino and display.
It is probably much simpler to use a separate USB to serial adapter. Those work out of the box with Ubuntu and you only have to change the serial port name in your patch.
Ingo
Greetings,
Fred Jan
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Thanks! I'll have a look at the SoftwareSerial library.
You also need a TTL-to-RS232C voltage converter between the Arduino and display.
The serial converter of the display takes already care of that.
It is probably much simpler to use a separate USB to serial adapter. Those work out of the box with Ubuntu and you only have to change the serial port name in your patch.
Yes, that works fine but it mixes up the port number of the arduino and the serial adapter. I can't get the two to be assigned to the same port number each time Pd starts. They both show up as /dev/ttyUSB0 or /dev/ttyUSB1 on the [comport].
It also would be cleaner with less cables to have the arduino taking care of the serial data transfer. If I can't get that to work I'll have to use a serial adapter and find a good way to distinguish the two automatically.
Ingo
-----Ursprüngliche Nachricht----- Von: pd-list-bounces@iem.at [mailto:pd-list-bounces@iem.at] Im Auftrag von Fred Jan Kraan Gesendet: Mittwoch, 5. Juni 2013 19:18 An: pd-list@iem.at Betreff: Re: [PD] Forwarding serial data through an Arduino (with firmata) to a serial display
On 2013-06-05 14:24, Ingo wrote:
Hi everybody!
I am dealing with the problem that I have changed to a new mainboard
which
doesn't have a serial port anymore. I'm on Ubuntu Natty.
I used to send LCD display data to my remote on the normal serial port
using
[comport]. The display itself has a serial interface. The remote uses a separate cable and [comport] for USB going to the arduino.
Is it possible to transfer the serial data for the display through the arduino using the arduinos serial out to feed the display (with a baud
rate
of 19200) ?
I still need to use firmata for all other arduino stuff. So it should be like an addon to firmata. Or is this already possible
with
the current firmata?
If anybody has done this before I'd appreciate any help!
I did some Arduino programming but not much with Firmata.
It is possible, but it probably means you have to create your own firmata sketch which includes the SoftwareSerial library. With an Arduino with more serial ports, like the Mega2560 or Leonardo, you won't need SoftwareSerial but still a custom Firmata. You also need a TTL-to-RS232C voltage converter between the Arduino and display.
It is probably much simpler to use a separate USB to serial adapter. Those work out of the box with Ubuntu and you only have to change the serial port name in your patch.
Ingo
Greetings,
Fred Jan
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi,
Ingo wrote:
Yes, that works fine but it mixes up the port number of the arduino and the serial adapter. I can't get the two to be assigned to the same port number each time Pd starts. They both show up as /dev/ttyUSB0 or /dev/ttyUSB1 on the [comport].
There are some udev rules floating on the net for that.
You can also use the files in /dev/serial/by-id/ instead of /dev/ttyUSB* and select by serial number.
hth,