I have success at hooking up the sensor to the computer. The software is
working fine. I am able to see a
window on my computer screen waiting to read sensor output. However I run into
an error as per the code
below. More work is
needed:
avrdude: 502 bytes of flash
written
avrdude: verifying flash memory
against hello.light.45.c.hex:
avrdude: load data flash data
from input file hello.light.45.c.hex:
avrdude: input file
hello.light.45.c.hex auto detected as Intel Hex
avrdude: input file
hello.light.45.c.hex contains 502 bytes
avrdude: reading on-chip flash
data:
Reading |
################################################## |
100% 0.20s
avrdude: verifying ...
avrdude: 502 bytes of flash
verified
avrdude: safemode: Fuses OK
avrdude done. Thank you.
make: warning: Clock skew
detected. Your build may be incomplete.
croppm@ubuntu:~/Desktop/Sensfile10$
Blair and Anna are helping
troubleshoot the problem. I am trying to get the
the program to recognize the port I am using.
croppm@ubuntu:~/Desktop/Sensfile10$
python hello.light.45.py /dev/ttyUSB
Traceback (most recent call
last):
File "hello.light.45.py", line
62, in <module>
ser = serial.Serial(port,9600)
File
"/usr/lib/python2.7/dist-packages/serial/serialutil.py",
line 260, in __init__
self.open()
File
"/usr/lib/python2.7/dist-packages/serial/serialposix.py",
line 276, in open
raise SerialException("could
not open port %s: %s" % (self._port, msg))
serial.serialutil.SerialException:
could not open port /dev/ttyUSB: [Errno 2] No such
file or directory: '/dev/ttyUSB'
croppm@ubuntu:~/Desktop/Sensfile10$
I have the python sensor
appearing on the desktop.
When I look in the Sensfile10
folder I have 2 new files.
One is hello.light.45.c.hex the
other is hello.light.45.out
The next step is to type the USB port in
correctly. I need to watch
capitalization, use correct paths, and be very precise on my
coding instructions. The
process will continue.
|