T
Tim Ngua
I'm a newbie programmer and I've been trying to communicate with an
Arduino using the ruby-serialport library. If I run this:
require 'rubygems'
require 'serialport'
sp = SerialPort.new "COM3", 9600
sp.write "H"
puts sp.read # hopefully "OK" ;-)
I get this error (as a windows pop-up box):
'The application has failed to start because msvcrt-ruby18.dll was not
found. Re-installing the application may fix the problem.'
and this ruby error in my command line window:
D:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-serialport/lib/serialport.rb:1:in
`require': 126:
The specified module could not be found. -
D:/Ruby19/lib/ruby/1.9.1/i386-mingw32/serialport.so (LoadError)
from
D:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-serialport/lib/serialport.rb:1:in
`<top (required)>'
from ser.rb:2:in `require'
from ser.rb:2:in `<main>'
As far as I can see, the serialport library was supposed to work with
1.8. There doesn't seem to be a 1.9 version on the GitHub repository
either.
I'm pretty stuck and don't want to learn Python just so I can write
programs for my Arduino (I need to use an email library as well so I can
light an LED each time I get a new email - ie. I can't use
'Processing').
Any suggestions much appreciated.
Arduino using the ruby-serialport library. If I run this:
require 'rubygems'
require 'serialport'
sp = SerialPort.new "COM3", 9600
sp.write "H"
puts sp.read # hopefully "OK" ;-)
I get this error (as a windows pop-up box):
'The application has failed to start because msvcrt-ruby18.dll was not
found. Re-installing the application may fix the problem.'
and this ruby error in my command line window:
D:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-serialport/lib/serialport.rb:1:in
`require': 126:
The specified module could not be found. -
D:/Ruby19/lib/ruby/1.9.1/i386-mingw32/serialport.so (LoadError)
from
D:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-serialport/lib/serialport.rb:1:in
`<top (required)>'
from ser.rb:2:in `require'
from ser.rb:2:in `<main>'
As far as I can see, the serialport library was supposed to work with
1.8. There doesn't seem to be a 1.9 version on the GitHub repository
either.
I'm pretty stuck and don't want to learn Python just so I can write
programs for my Arduino (I need to use an email library as well so I can
light an LED each time I get a new email - ie. I can't use
'Processing').
Any suggestions much appreciated.