Introduction: 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

Step 1: 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

Step 2: 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

Step 3: SSH Into Raspberry Pi

1.open your command prompt in Windows or terminal in Linux

2.type "ssh pi@Your_pi_ip"

Step 4: Enter Following Commands

sudo apt-get update

sudo apt-get install git

sudo apt-get install ruby full

Step 5: 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

Step 6: 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

Step 7: 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

Step 8: Configure Screen Resolution

sudo raspi-config

Then set the resolution as 800x600 and save it

Step 9: 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

Step 10: 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

Clocks Contest

Participated in the
Clocks Contest