This post is a quick write up of me following the instruction here to create an on/off button for switching on/off the PI. When the PI is running, connecting GPIO3 to GND will cause the system to send out the sudo shutdown -h now command to switch off the PI. When the PI is not running, connecting GPIO3 to GND will cause the PI to wake up and start running.
***IMPORTANT!! This is extremely important to shut down the PI using the sudo shutdown -h now command to avoid corrupting the file system of the SD Card. If you experience trouble booting the PI after a sudden power outage, chances are the SD file system is corrupted and you will have to write a new Raspbian image to the SD Card and re-configure the Raspbian if a backup image is not available ***
This blog is for keeping my study notes, sharing knowledge and showing the products of my study.. I welcome your feedback...
Showing posts with label Raspberry Pi Zero W. Show all posts
Showing posts with label Raspberry Pi Zero W. Show all posts
2020/02/18
2020/02/17
Raspberry Pi - Headless installation of Raspbian OS on Raspberry Pi Zero W
This post is about how to install Raspbian OS onto Raspberry Pi Zero W headlessly (without physically attaching monitor, keyboard, and mouse to the Pi Zero W).
Download OS Image
Download the OS image from the link below.
https://www.raspberrypi.org/downloads/raspbian/
For my application, I use the lite version.
Download OS Image
Download the OS image from the link below.
https://www.raspberrypi.org/downloads/raspbian/
For my application, I use the lite version.
Raspberry Pi - How to run a program on startup
This is a quick write up of me following the instruction here to test out how to use the GPIO of Raspberry Pi and make a program to auto-execute on startup.
Wiring Diagram
Wire up the Pi with an LED and a resistor as shown below.
Wiring Diagram
Wire up the Pi with an LED and a resistor as shown below.
Raspberry Pi - How to mount an USB Flash Drive
This is a quick write up of me following the instruction below on how to mount an USB Flash Drive to my Raspberry Pi.
How To Mount A USB Flash Disk On The Raspberry Pi
https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/
How To Mount A USB Flash Disk On The Raspberry Pi
https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/
Subscribe to:
Posts (Atom)



