Pre-compiled Kalliope Installation

  1. 格式化SD卡
    格式化工具:SD Memory Card Formatter (已放在U盘)
  2. 烧录固件
    固件烧录程序:Etcher
    Kalliope最新固件下载地址(最新固件已放U盘)
  1. 屏幕文件设置
    7INCH HDMI LCD
    在根目录下config.txt文件后面添加
1
2
3
4
max_usb_current=1
hdmi_group=2
hdmi_mode=87
hdmi_cvt 1024 600 60 6 0 0 0

2.8inch RPi LCD (A))

  1. 进入系统
    用户名:pi 密码:raspberry
  2. 键盘设置
    sudo raspi-config
    http://jingyan.baidu.com/article/e6c8503c6b79a1e54f1a18fc.html

  3. Wifi设置

1
2
3
4
5
6
7
8
9
sudo su
wpa_passphrase "testing" "testingPassword" >> /etc/wpa_supplicant/wpa_supplicant.conf
sudo wpa_cli reconfigure
sudo wpa_cli status
ifconfig wlan0

记录下IP地址

  1. SSH连接
    电脑终端下,使用SSH命令连接树莓派
    ssh pi@192.168.x.x

8.FTP软件使用
FTP

9.设置音频

Create a file in /home/pi/.asoundrc with the content bellow

1
2
3
4
5
6
7
8
9
10
11
pcm.!default {
type asym
playback.pcm {
type plug
slave.pcm "hw:1,0"
}
capture.pcm {
type plug
slave.pcm "hw:1,0"
}
}

Where playback.pcm is the output audio and the capture.pcm is the input audio.

Restart alsa to apply changes

1
sudo /etc/init.d/alsa-utils restart

You can adjust the microphone sensibility by running alsamixer:

1
alsamixer

And then select your microphone device by pressing F6 and finally move up the mic sensibility level

10.添加brains

主目录的brain.yml添加“- brains/led.yml”

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
- includes:
- brains/say.yml
- brains/systemdate.yml
- brains/neurotransmitter.yml
- brains/uri.yml
- brains/led.yml
- name: "default-synapse"
signals:
- order: "default-synapse"
neurons:
- say:
message:
- "I haven't understood"
- "I don't know this order"
- "Please renew your order"
- "Would you please reword your order"
- "Can ou please reformulate your order"
- "I don't recognize that order"

brains目录下新建文件“brain.yml”

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- name: "turn-on-the-light"
signals:
- order: "turn on the light"
neurons:
- uri:
url: "http://192.168.154.219/gpio/0"
method: "POST"
- say:
message: "oppening the light"
- name: "turn-off-the-light"
signals:
- order: "turn off the light"
neurons:
- uri:
url: "http://192.168.154.219/gpio/1"
method: POST
- say:
message: "Closing the light, sir"