Raspberry Pi Zero W thay thế Chromecast (chỉ hỗ trợ điện thoại Android)

duckhiemlyvu

New member
** Xây dựng thiết bị phát trực tuyến của riêng bạn với giá dưới 8 đô la với Raspberry Pi Zero W **

Chromecast, Apple TV và các thiết bị phát trực tuyến khác là tuyệt vời, nhưng chúng có thể đắt tiền.Nếu bạn đang tìm kiếm một tùy chọn giá cả phải chăng hơn, bạn có thể xây dựng thiết bị phát trực tuyến của riêng mình bằng Raspberry Pi Zero W.

** Những gì bạn cần: **

* Raspberry Pi Zero W
* Thẻ SD 8GB
* Cáp Mini HDMI đến HDMI
* Micro USB sang cáp USB
* Điện thoại Android
* Ứng dụng Raspicast

**Hướng dẫn:**

1. ** Cài đặt Raspbian Lite trên thẻ SD. ** Bạn có thể tìm thấy hướng dẫn về cách thực hiện việc này trên trang web Raspberry Pi.
2. ** Kích hoạt đăng nhập SSH và tự động. ** Bạn có thể tìm thấy hướng dẫn về cách thực hiện việc này trên trang web Raspberry Pi.
3. ** Cài đặt các gói sau: **

`` `
Cập nhật sudo apt-get
Sudo Apt-get nâng cấp
Sudo apt-get Cài đặt OMXPlayer Phông chữ-Freefont-TTF CEC-UTILS
`` `

4. ** Tạo hình nền. ** Bạn có thể sử dụng bất kỳ tệp hình ảnh nào có độ phân giải 1080p.Để tạo hình nền, hãy mở một cửa sổ thiết bị đầu cuối và nhập lệnh sau:

`` `
sudo nano ~/.bashrc
`` `

Thêm dòng sau vào cuối tệp:

`` `
MKFIFO /TMP /CMD
sudo/usr/bin/fbi -Noverbose -a -a -1 /home/pi/emhangxom.jpg
`` `

Hãy nhớ lưu tệp (Ctrl+O), thoát trình soạn thảo (nhập) và sau đó đóng cửa sổ đầu cuối.

5. ** Tìm địa chỉ IP của Raspberry Pi Zero W. ** Bạn có thể làm điều này bằng cách chạy lệnh sau:

`` `
ifconfig
`` `

6. ** Mở ứng dụng Raspicast trên điện thoại Android của bạn. **

7. ** Nhập địa chỉ IP của Raspberry Pi Zero W, Số cổng (22) và Tên người dùng của bạn (PI). **

8. ** Nhấp vào nút "Kết nối". **

Bây giờ bạn sẽ có thể đúc video, âm nhạc và hình ảnh từ điện thoại Android của bạn đến Raspberry Pi Zero W.

** Để truyền phát video YouTube, ** Mở ứng dụng YouTube trên điện thoại của bạn và tìm video bạn muốn xem.Sau đó, nhấn vào biểu tượng ** chia sẻ ** (ba chấm ở góc trên cùng bên phải) và chọn "Raspicast".

**Xử lý sự cố:**

* Nếu bạn gặp khó khăn trong việc kết nối với Raspberry Pi Zero W, hãy đảm bảo rằng cả hai thiết bị đều nằm trên cùng một mạng.
* Nếu bạn vẫn gặp sự cố, hãy thử khởi động lại Raspberry Pi Zero W và điện thoại Android của bạn.
* Nếu bạn vẫn gặp sự cố, bạn có thể thử cài đặt lại ứng dụng Raspicast.

**Thưởng thức!**
=======================================
**Build your own streaming device for under $8 with a Raspberry Pi Zero W**

Chromecast, Apple TV, and other streaming devices are great, but they can be expensive. If you're looking for a more affordable option, you can build your own streaming device using a Raspberry Pi Zero W.

**What you need:**

* Raspberry Pi Zero W
* 8GB SD card
* HDMI to HDMI mini cable
* Micro USB to USB cable
* Android phone
* Raspicast app

**Instructions:**

1. **Install Raspbian Lite on the SD card.** You can find instructions on how to do this on the Raspberry Pi website.
2. **Enable SSH and Auto Login.** You can find instructions on how to do this on the Raspberry Pi website.
3. **Install the following packages:**

```
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install omxplayer fonts-freefont-ttf cec-utils
```

4. **Create a wallpaper.** You can use any image file that is 1080p in resolution. To create a wallpaper, open a terminal window and type the following command:

```
sudo nano ~/.bashrc
```

Add the following line to the end of the file:

```
MKFIFO /tmp/CMD
sudo /usr/bin/fbi -noverbose -a -A -1 /home/pi/emhangxom.jpg
```

Remember to save the file (Ctrl+O), exit the editor (Enter), and then close the terminal window.

5. **Find the IP address of your Raspberry Pi Zero W.** You can do this by running the following command:

```
ifconfig
```

6. **Open the Raspicast app on your Android phone.**

7. **Enter the IP address of your Raspberry Pi Zero W, the port number (22), and your username (pi).**

8. **Click the "Connect" button.**

You should now be able to cast videos, music, and images from your Android phone to your Raspberry Pi Zero W.

**To stream YouTube videos,** open the YouTube app on your phone and find the video you want to watch. Then, tap the **Share** icon (the three dots in the top right corner) and select "Raspicast."

**Troubleshooting:**

* If you're having trouble connecting to your Raspberry Pi Zero W, make sure that both devices are on the same network.
* If you're still having trouble, try restarting your Raspberry Pi Zero W and your Android phone.
* If you're still having trouble, you can try reinstalling the Raspicast app.

**Enjoy!**
 
Join Telegram ToolsKiemTrieuDoGroup
Back
Top