Raspberry Piと、Node.js

pi@raspberrypi:~/Znodejs $ node -v
v6.10.2
pi@raspberrypi:~/Znodejs $ npm -v
3.10.10
pi@raspberrypi:~/Znodejs $ node index.js
now listening to the port 3000..
serial port /dev/ttyUSB0 is opened.

動きますね!index.jsindex.htmlについては、私の以前の記事IC-7410 Rig Control with httpを参照して下さい。

Raspberry Pi 3 Model Bと、IC-7410

無線機を制御するには、単純なボードの方が良いかも知れません。

Mac-mini:~ $ ssh pi@192.168.0.102
pi@192.168.0.102's password: 

pi@raspberrypi:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       5.8G  4.0G  1.5G  74% /
devtmpfs        458M     0  458M   0% /dev
tmpfs           462M   23M  440M   5% /dev/shm
tmpfs           462M  6.4M  456M   2% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           462M     0  462M   0% /sys/fs/cgroup
/dev/mmcblk0p6   65M   21M   45M  33% /boot
tmpfs            93M     0   93M   0% /run/user/1000
/dev/mmcblk0p5   30M  398K   28M   2% /media/pi/SETTINGS

pi@raspberrypi:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: CODEC [USB Audio CODEC], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

pi@raspberrypi:~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: CODEC [USB Audio CODEC], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0