Linux Powered USB TableClock
Linux Power USB Table clock is Raspbian Lite Linux powered table clock. It is made to be used especially by night owls like me who want to see a quick time but it's too bright LCD to check the time on a mobile phone. Its look cool on my setup
Supplies
Raspberry Pi Zero W
Waveshare 3.5 inch Display
Micro-USB Cable
SD-Card
Format the SD Card and Burn It With Raspbian Lite Image
Format the SD Card so we can install fresh Raspbian in it
You can download Raspbian Lite Image from here -https://www.raspberrypi.org/downloads/raspbian/
You can also use Raspberry Pi Imager- https://downloads.raspberrypi.org/imager/imager.e...
Or Use Pre-Configured Clock OS-https://drive.google.com/file/d/1Hni6upFwmDCsuu1zF0F9jQucdxk_WYeU/view?usp=sharing
If using Pre-Configured Clock OS then directly connect all components and clock will work
Connect to Wifi-Headless
1.Download the config files from the link given below
Link-https://github.com/Cyrixninja/Raspberry-pi-Headless
2.Edit it using notepad++ or vscode and add your wifi password and name
3.Power on the raspberry pi using Micro-USB cable
4. Raspberry pi will get connected to wifi
SSH Into Raspberry Pi
1.open your command prompt in Windows or terminal in Linux
2.type "ssh pi@Your_pi_ip"
Enter Following Commands
sudo apt-get update
sudo apt-get install git
sudo apt-get install ruby full
Install the Display Drivers
Enter the Following Commands-
git clone https://github.com/waveshare/LCD-show.git
cd LCD-show
chmod +x LCD35-show
./LCD35-show 180
After everything gets over the ssh will get disconnected and raspberry pi will restart
Download the Code
Enter the following commands
git clone https://github.com/Cyrixninja/term-clock
ruby ~/term-clock/term-clock.rb --download-conf
ruby ~/term-clock/term-clock.rb --download-characters
Configure the OS to Run Code on Startup
Enter following commands in raspberry pi-
1.sudo raspi-config
Then set the the boot to autologin to console
2.sudo nano /etc/profile
Then add the line -"sudo ruby ~/term-clock/term-clock.rb" and save it
Configure Screen Resolution
sudo raspi-config
Then set the resolution as 800x600 and save it
Time Configuration
The Default time of this clock is 0-GMT
You can change it according to your location
After the ssh click on terminal and press Ctrl+C
after that type "raspi-config" and follow the images to set time
after you have set the time finish and save the settings
Connect the Display and Power It Using Micro-USB Cable
connect the display to raspberry pi zero and power it using micro-USB cable using your pc or laptop