Raspberry

来自Jack's Lab
(版本间的差异)
跳转到: 导航, 搜索
(Raspberry 3)
(Raspberry 3)
第25行: 第25行:
  
 
<source lang=bash>
 
<source lang=bash>
S: $ dd if=/dev/hdb5 | gzip -9 | nc -l 3333
+
$ dd if=/dev/hdb5 | gzip -9 > myhdb5partition.img.gz
C: $ nc 192.168.0.123 3333 | pv -b > myhdb5partition.img.gz
+
 
</source>
 
</source>
  

2019年4月20日 (六) 16:29的版本

目录

1 Login

Username: pi
Password: raspberry


2 Image

2.1 Raspberry 3

  • Raspbian-4.1
  • raspberrypi-jessie-WAZIUP-demo.dmg.zip
Write image into SD card
$ sudo dd bs=1m if=2019-04-08-raspbian-stretch-lite.img of=/dev/rdisk2 conv=sync
Make SD card into a img file
$ dd if=/dev/hdb5 | gzip -9 > myhdb5partition.img.gz



3 Pinout

3.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



3.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



4 Serial

4.1 Enable

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

/boot/config.txt
enable_uart=1


4.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" ....


4.3 Connections

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


5 GPIO Control



6 Timezone

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

add following into /etc/profile:

TZ=Asia/Shanghai
export TZ
 $ sudo reboot




7 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




8 ESP8266/ESP8089

Raspi-esp8089.png


Note that the CH_PD signal is connected to the ID_SD signal. This must be mapped as a GPIO (GPIO0) and switched to an output and driven low then switched to an input again before the driver is loaded in order to reset the module. This will be added in the near future in the driver.

https://github.com/al177/esp8089

https://hackaday.io/project/8678/instructions?page=1



9 Reference













个人工具
名字空间

变换
操作
导航
工具箱