23.10.2016, 21:55
Hello buuuudzik,
we use this converter: FTDI US232R which costs about 22 Eur. You can use it simply like this:
we use this converter: FTDI US232R which costs about 22 Eur. You can use it simply like this:
Code:
require('serial')
-- open port on first call
if not port then
port = serial.open('/dev/ttyUSB0', { baudrate = 19200, databits = 8, stopbits = 1, parity = 'none', duplex = 'full' })
port:flush()
log("Port Initialized")
end
-- your code next...