This guide shows you how to set up a Raspberry Pi using only a smartphone or tablet — no PC, laptop, or Mac required. You’ll flash the operating system onto a microSD card, configure Wi-Fi and SSH, and boot your Pi headlessly (without a monitor). By the end, you’ll be able to log in remotely from your phone and start using your Pi.
What You’ll Need
- Raspberry Pi (any model that uses a microSD card, e.g., Pi 3, Pi 4, Pi Zero 2 W)
- MicroSD card (8GB or larger, Class 10 recommended) and an adapter to connect it to your phone (USB‑C, micro‑USB, or Lightning, depending on your device)
- Power supply for the Pi (official 5V/3A USB‑C for Pi 4, or appropriate for your model)
- Android phone or tablet (iOS works with some extra steps, but Android is easier)
- App: Raspberry Pi Imager (free, from the Play Store) or EtchDroid (free, for writing images)
- App: Termux (free, for SSH) or any SSH client app like JuiceSSH or Termius
- Optional: a USB‑C or micro‑USB OTG cable if your phone doesn’t have a built‑in card reader
Step-by-Step
- Download the Raspberry Pi OS image – On your phone, open a browser and go to the official Raspberry Pi downloads page. Download the Lite version (no desktop) or the full version if you plan to use a monitor later. The file is a .img or .zip file.
- Install the imaging app – Install Raspberry Pi Imager from the Play Store (it supports writing images directly to SD cards on Android). If your phone can’t use it, install EtchDroid instead.
- Insert the microSD card – Put the microSD card into the adapter and connect it to your phone. If your phone doesn’t recognize it, you may need an OTG cable. Wait for the notification that the card is mounted.
- Flash the OS – Open the imaging app. In Raspberry Pi Imager, tap “Choose OS” and select the downloaded image file. Then tap “Choose Storage” and select your SD card. Confirm that you want to erase the card and write the image. Wait for the process to complete (may take a few minutes).
- Enable SSH and Wi-Fi (headless setup) – After flashing, the SD card will have a boot partition. On Android, you may need to unmount and remount the card to see it. Using a file manager, create an empty file named
ssh(no extension) in the boot folder. Also create a file namedwpa_supplicant.confwith the following content, replacingYourNetworkandYourPassword:ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=US network={ ssid="YourNetwork" psk="YourPassword" }Save the file. (If you’re using the full Raspberry Pi OS with desktop, you can skip this step and use the on‑screen setup later.)
- Safely eject the SD card – In your file manager, unmount the card, then remove it from the phone.
- Boot the Pi – Insert the SD card into the Raspberry Pi and connect the power. Wait about 1–2 minutes for it to boot and connect to your Wi‑Fi.
- Find the Pi’s IP address – On your phone, open your router’s admin page (usually 192.168.1.1) or use a network scanner app like Fing to find the device named “raspberrypi”. Note its IP address.
- SSH into the Pi – Install an SSH client app (e.g., Termux, JuiceSSH). Open it and connect to
pi@<IP address>(default username ispi, password israspberry). Accept the security prompt. You’ll now have a command line on your Pi. - Update and configure – Run
sudo apt updateandsudo apt upgradeto update the system. Usesudo raspi-configto change the default password, set the hostname, or enable interfaces like VNC.
Common Mistakes
- Forgetting the ssh file – Without it, SSH is disabled and you can’t connect remotely. Make sure the file has no extension (not ssh.txt).
- Incorrect wpa_supplicant.conf format – Missing quotes around the SSID or password, or using the wrong country code, can prevent Wi‑Fi from connecting. Double‑check the file.
- Using a card that’s too small – The OS image may not fit on a 4GB card. Use at least 8GB.
- Not waiting long enough – The Pi may take a couple of minutes to boot and join the network. Be patient.
- Writing the image to the wrong drive – On Android, the imaging app might show multiple storage options. Always double‑check that you’re writing to the SD card, not your phone’s internal storage.
Tips
- Use the Lite version of Raspberry Pi OS for a faster, headless setup – it uses fewer resources.
- If your phone can’t write the wpa_supplicant.conf file easily, use a text editor app to create it and save it to the SD card.
- Set a static IP for your Pi in your router’s DHCP settings so you don’t have to search for it every time.
- For a more permanent setup, consider using a powered USB hub if you connect many peripherals.
- Keep your Pi’s OS up to date regularly to get security patches.
Troubleshooting
- Pi doesn’t boot – Check the power supply (must be at least 5V/2.5A for Pi 3B+, 3A for Pi 4). Try re‑flashing the SD card and ensure it’s properly inserted.
- No Wi‑Fi connection – Verify the SSID and password in wpa_supplicant.conf. Make sure the country code matches your region. Check if your router has a guest network that blocks device‑to‑device communication.
- SSH connection refused – Ensure the ssh file is present and has no extension. Try connecting again after a few minutes. If you’re using a Pi Zero, it may take longer to boot.
- Can’t find the Pi’s IP address – Use a network scanner app or check your router’s connected devices list. If the Pi isn’t listed, it may not be connected to the network.
- Permission denied when writing to SD card – On Android, some file managers can’t write to the boot partition. Use the imaging app’s built‑in editor or a dedicated text editor that supports SD card writes.
Frequently Asked Questions
Can I use an iPhone or iPad instead of an Android device?
Yes, but it’s more complex. You’ll need a Lightning‑to‑SD card adapter, and the Raspberry Pi Imager app is not available for iOS. You can use apps like iMazing or Apple Configurator to write images, but the process is less straightforward. Android is recommended.
Do I need a monitor at all?
No, this method is fully headless. You only need a phone or tablet to flash the SD card and then SSH into the Pi.
What if my Wi‑Fi network has a hidden SSID?
Add scan_ssid=1 to the network block in wpa_supplicant.conf to allow scanning for hidden networks.
Can I set up a static IP address without a PC?
Yes, after you SSH in, you can edit /etc/dhcpcd.conf to set a static IP. Alternatively, configure a DHCP reservation on your router.
How do I change the default password?
After SSH login, run passwd and follow the prompts. It’s highly recommended to change it immediately.
Can I use a microSD card that already has data on it?
Yes, but the imaging process will erase all data. Make sure to back up anything important first.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix Mir4 Crashing on PC: 7 Working Solutions
- How to Use Multiple Stops in Google Maps
- How to Fix HDMI No Signal on a Mini PC
- How to Install a CPU on a Motherboard
- Snapchat How to Get More Views: 12 Proven Tips
- Edit PDFs in Windows 11: Built-In Ways