- waveshare 3.5 inch touchscreen
- raspberry pi 4b or later
- camera module(s)
- usb-c power bank or li-ion battery
- usb-c to usb-c cable
- micro-usb to hdmi cable
- hdmi cable
- wired keyboard and mouse
- 32gb microsd card
- wired buttons
- self-designed case (optional)
- unbox all the materials.
- connect the wired button to the gpio pins. one should be on a gnd and one should be on the bcm 21 pin. (refer to rpi 4b map)
- align the female gpio pins on the touchscreen to the male gpio pins on the raspberry pi towards the left.
- connect the camera ribbon cable to the connector on the raspberry pi and do the same for the module.
- plug in the usb-c to the power bank and the other side to the raspberry pi port.
- connect the wired keyboard and mouse.
- plug in the hdmi cable to the micro-usb adapter and plug the micro-usb to the raspberry pi.
- download raspberry pi imager.
- etch the latest version of raspbian onto the microsd card.
- plug in the microsd card.
- turn on the raspberry pi via the power bank.
- go through the set up process.
- open up the terminal and enter this command: cloning the repository:
git clone https://github.com/johannlo2013/picamera.git
open up a new file called "init.sh" on Desktop:
nano ~/Desktop/init.sh
paste these three lines of code:
cd /
cd /home/mashedpotatoes/picamera/
python3 init.py
- double-click "init.sh" on the desktop.
- select "execute in terminal".
- take pictures and enjoy!
- click the wired button to snap a photo
- click the record button once to start and stop recording
- the exit button is self-explanatory
- click the time button 5 times to open the applications menu