Raspberry

来自Jack's Lab
(版本间的差异)
跳转到: 导航, 搜索
(ESP8266/ESP8089)
(ESP8266/ESP8089)
第106行: 第106行:
  
 
[[文件:Raspi-esp8089.png]]
 
[[文件:Raspi-esp8089.png]]
 +
 +
<source lang=bash>
 +
SDIO signal RPi HAT ESP-12F pin / signal
 +
ESP-03 pin / signal
 +
CLK 15 / GPIO22 14 / SCLK Flash pin 6 (CLK)
 +
CMD 16 / GPIO23 9 / CS0 Flash pin 1 (/CS)
 +
D0 18 / GPIO24 10 / MISO Flash pin 2 (DO)
 +
D1 22 / GPIO25 13 / MOSI Flash pin 5 (DI)
 +
D2 (optional for 1-bit) 37 / GPIO26 11 / GPIO9 Flash pin 7 (HOLD)
 +
D3 (optional for 1-bit) 13 / GPIO27 12 / GPIO10
 +
Flash pin 3 (WP)
 +
- 1 or 17 / 3.3V 8 / VCC Module 1 / VCC
 +
- 2, 4, 14, or 20 / GND 15 / GND Module 8 / GND
 +
- 27 / ID_SD 3 / CH_PD Module 13 / CH_PD
 +
</source>
  
 
<br><br>
 
<br><br>

2017年10月1日 (日) 14:54的版本

目录

1 Pinout

1.1 Model A and B

Rasp-gpio-pins-1.jpg

Raspberry-1-gpio-led.png

Rasp-gpio-pins-2.png

Rasp-gpio-pins-3.png



1.2 Models A+, B+, PI 2 B, PI 3 B

Gpio-pins-pi2.jpg

Gpio-numbers-pi2.png

Physical-pin-numbers.png


Raspberry-pi-pinout.png



2 Serial

2.1 Enable

/boot/cmdline.txt
 "console=serial0,115200" 

/boot/config.txt
enable_uart=1


2.2 Disable

 Remove  "console=serial0,115200"  from /boot/cmdline.txt


If you want to use the uart as IO device, add "enable_uart=1" into /boot/config.txt


Or you can do it by run "sudo raspi-config" , enter "Advanced Options" and then enter "Serial" ....


2.3 Connections

  • RASP_TXD --- HEX_TX
  • RASP_RXD --- HEX_RX


3 GPIO Control



4 Timezone

$ cat /etc/timezone
Etc/UTC
$ sudo echo "Asia/Shanghai" > /etc/timezone

add following into /etc/profile:

TZ=Asia/Shanghai
export TZ
 $ sudo reboot




5 Static IP

add following into /etc/dhcpcd.conf:

interface eth0
static ip_address=192.168.1.45/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1




6 ESP8266/ESP8089

Raspi-esp8089.png

SDIO signal	RPi HAT	ESP-12F pin / signal
ESP-03 pin / signal
CLK	15 / GPIO22	14 / SCLK	Flash pin 6 (CLK)
CMD	16 / GPIO23	9 / CS0	Flash pin 1 (/CS)
D0	18 / GPIO24	10 / MISO	Flash pin 2 (DO)
D1	22 / GPIO25	13 / MOSI	Flash pin 5 (DI)
D2 (optional for 1-bit)	37 / GPIO26	11 / GPIO9	Flash pin 7 (HOLD)
D3 (optional for 1-bit)	13 / GPIO27	12 / GPIO10
Flash pin 3 (WP)
-	1 or 17 / 3.3V	8 / VCC	Module 1 / VCC
-	2, 4, 14, or 20 / GND	15 / GND	Module 8 / GND
-	27 / ID_SD	3 / CH_PD	Module 13 / CH_PD





































































个人工具
名字空间

变换
操作
导航
工具箱