B
bashcommando
Guest
I got a brand new microcomputer for Christmas(YAY!). However when following the tutorial it assumed that it was plugged into my serial port. But, I have a laptop, so I used a USB connection. What now?
- http://osepp.com/learning-centre/start-here/uno-r3-plus/d. Select the serial port: Tools > Serial Port
This is the serial port for the board’s built-in FTDI. If you do not know which one this is, you can find out by going into Device Manager > Ports (COM & LPT), and look for a “USB Serial Port (COMx)”
There is nothing that says COM ANYTHING in my /dev/ directory.Does this help?
- http://osepp.com/learning-centre/start-here/uno-r3-plus/
ls /dev/
adsp log shm tty25 tty5 vcs1
agpgart loop0 snapshot tty26 tty50 vcs2
audio loop-control snd tty27 tty51 vcs3
autofs MAKEDEV sndstat tty28 tty52 vcs4
block mapper sr0 tty29 tty53 vcs5
bsg media0 stderr tty3 tty54 vcs6
btrfs-control mem stdin tty30 tty55 vcs7
bus mixer stdout tty31 tty56 vcs8
cdrom net tty tty32 tty57 vcsa
char network_latency tty0 tty33 tty58 vcsa1
console network_throughput tty1 tty34 tty59 vcsa2
core null tty10 tty35 tty6 vcsa3
cpu port tty11 tty36 tty60 vcsa4
cpu_dma_latency ppp tty12 tty37 tty61 vcsa5
disk psaux tty13 tty38 tty62 vcsa6
dri ptmx tty14 tty39 tty63 vcsa7
dsp pts tty15 tty4 tty7 vcsa8
fb0 random tty16 tty40 tty8 vga_arbiter
fb1 rfkill tty17 tty41 tty9 vhost-net
fd rtc tty18 tty42 ttyS0 video0
full rtc0 tty19 tty43 ttyS1 watchdog
fuse sda tty2 tty44 ttyS2 watchdog0
fw0 sda1 tty20 tty45 ttyS3 xconsole
hpet sda2 tty21 tty46 uinput zero
input sda5 tty22 tty47 urandom
kmsg sg0 tty23 tty48 v4l
lirc0 sg1 tty24 tty49 vcs
It won't work I try:I don't know if this is significant but the com ports in linux start with ttyS0 (that's ends in zero) and go on from there, the next one would be ttyS1.
Type "ls /dev/ttyS*" to see them. Just because there may be (for example) a ttyS3 file, doesn't necessarily mean that there exists a physical serial port there.
sudo python
import serial
ser = serial.Serial('/dev/ttyS0', 96000)
Did you happen to see the output ofIs your board like the Arduino UNO? I connect to an Arduino Uno through /dev/ttyACM0 (can be ttyACM1 sometimes though). This is through a USB serial cable (Printer Cable).
Also, have you tried using the Arduino IDE? Probably works with that board too.
cat /dev/
I did. When the Uno is attached to the system the file in /dev should be created. You may also be able to create the /dev/file with makedev.Did you happen to see the output of
But it is like the Arduino UnoCode:cat /dev/
How do I use makedev?
mknod /dev/ttyACM0 c 166 0