Linux Powered USB TableClock
![IMG_20200307_161747.jpg](/proxy/?url=https://content.instructables.com/FY6/EITO/K7GW8PFS/FY6EITOK7GW8PFS.jpg&filename=IMG_20200307_161747.jpg)
![IMG_20200307_161744.jpg](/proxy/?url=https://content.instructables.com/FIT/HJQ2/K7GW8PFR/FITHJQ2K7GW8PFR.jpg&filename=IMG_20200307_161744.jpg)
![IMG_20200307_213346.jpg](/proxy/?url=https://content.instructables.com/F0R/761W/K7GW8Z9D/F0R761WK7GW8Z9D.jpg&filename=IMG_20200307_213346.jpg)
![IMG_20200307_213413.jpg](/proxy/?url=https://content.instructables.com/F3L/0JGN/K7GW8ZAH/F3L0JGNK7GW8ZAH.jpg&filename=IMG_20200307_213413.jpg)
![IMG_20200307_213338.jpg](/proxy/?url=https://content.instructables.com/FUZ/K7QN/K7GW8Z9B/FUZK7QNK7GW8Z9B.jpg&filename=IMG_20200307_213338.jpg)
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
![1.png](/proxy/?url=https://content.instructables.com/FKB/18P1/K7GW8O7H/FKB18P1K7GW8O7H.png&filename=1.png)
![2.png](/proxy/?url=https://content.instructables.com/FXZ/FJDM/K7GW8O7I/FXZFJDMK7GW8O7I.png&filename=2.png)
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
![FU4P7XIK6JDVY3B.LARGE.jpg](/proxy/?url=https://content.instructables.com/FSO/BW8C/K7GW8QEO/FSOBW8CK7GW8QEO.jpg&filename=FU4P7XIK6JDVY3B.LARGE.jpg)
![FS2D44VK6JDVY6I.LARGE.jpg](/proxy/?url=https://content.instructables.com/FRZ/QHBX/K7GW8QEP/FRZQHBXK7GW8QEP.jpg&filename=FS2D44VK6JDVY6I.LARGE.jpg)
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.png](/proxy/?url=https://content.instructables.com/FT4/EPYT/K7GW90CX/FT4EPYTK7GW90CX.png&filename=1.png)
1.open your command prompt in Windows or terminal in Linux
2.type "ssh pi@Your_pi_ip"
Enter Following Commands
![5.png](/proxy/?url=https://content.instructables.com/FIL/O8ET/K7GW8VMY/FILO8ETK7GW8VMY.png&filename=5.png)
![4.png](/proxy/?url=https://content.instructables.com/FS3/SCJH/K7GW8VMV/FS3SCJHK7GW8VMV.png&filename=4.png)
![1.png](/proxy/?url=https://content.instructables.com/FZH/0MVL/K7GW8VMS/FZH0MVLK7GW8VMS.png&filename=1.png)
sudo apt-get update
sudo apt-get install git
sudo apt-get install ruby full
Install the Display Drivers
![6.png](/proxy/?url=https://content.instructables.com/FHX/9QNW/K7GW8VMZ/FHX9QNWK7GW8VMZ.png&filename=6.png)
![7.png](/proxy/?url=https://content.instructables.com/FE2/M07W/K7GW8VN0/FE2M07WK7GW8VN0.png&filename=7.png)
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
![10.png](/proxy/?url=https://content.instructables.com/FUJ/G1P0/K7GW8VN4/FUJG1P0K7GW8VN4.png&filename=10.png)
![9.png](/proxy/?url=https://content.instructables.com/FIK/0PV3/K7GW8VN2/FIK0PV3K7GW8VN2.png&filename=9.png)
![8.png](/proxy/?url=https://content.instructables.com/FBY/AI5H/K7GW8VN1/FBYAI5HK7GW8VN1.png&filename=8.png)
![11.png](/proxy/?url=https://content.instructables.com/FNJ/E4X7/K7GW8VN5/FNJE4X7K7GW8VN5.png&filename=11.png)
![13.png](/proxy/?url=https://content.instructables.com/FD4/75D4/K7GW8VN7/FD475D4K7GW8VN7.png&filename=13.png)
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
![2.png](/proxy/?url=https://content.instructables.com/F0L/9QYR/K7GW8VMT/F0L9QYRK7GW8VMT.png&filename=2.png)
![3.png](/proxy/?url=https://content.instructables.com/F8V/PLZG/K7GW8VMU/F8VPLZGK7GW8VMU.png&filename=3.png)
![14.png](/proxy/?url=https://content.instructables.com/FGD/KEW2/K7GW8VN8/FGDKEW2K7GW8VN8.png&filename=14.png)
sudo raspi-config
Then set the resolution as 800x600 and save it
Time Configuration
![1.png](/proxy/?url=https://content.instructables.com/FTE/BZY1/K7GW91IB/FTEBZY1K7GW91IB.png&filename=1.png)
![2.png](/proxy/?url=https://content.instructables.com/F3C/4GW5/K7GW91IC/F3C4GW5K7GW91IC.png&filename=2.png)
![3.png](/proxy/?url=https://content.instructables.com/FCS/JI93/K7GW91ID/FCSJI93K7GW91ID.png&filename=3.png)
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
![IMG_20200307_162028.jpg](/proxy/?url=https://content.instructables.com/FRM/NNPA/K7GW8P7S/FRMNNPAK7GW8P7S.jpg&filename=IMG_20200307_162028.jpg)
![IMG_20200307_161947.jpg](/proxy/?url=https://content.instructables.com/FJT/02WC/K7GW8P9A/FJT02WCK7GW8P9A.jpg&filename=IMG_20200307_161947.jpg)
![IMG_20200307_162025.jpg](/proxy/?url=https://content.instructables.com/FDQ/WLQQ/K7GW8P8V/FDQWLQQK7GW8P8V.jpg&filename=IMG_20200307_162025.jpg)
![IMG_20200307_161923.jpg](/proxy/?url=https://content.instructables.com/FZ6/RS2M/K7GW8P9V/FZ6RS2MK7GW8P9V.jpg&filename=IMG_20200307_161923.jpg)
![IMG_20200307_161825.jpg](/proxy/?url=https://content.instructables.com/FJ6/7DA4/K7GW8PGN/FJ67DA4K7GW8PGN.jpg&filename=IMG_20200307_161825.jpg)
![IMG_20200307_213429.jpg](/proxy/?url=https://content.instructables.com/FLR/QRSQ/K7GW8ZB2/FLRQRSQK7GW8ZB2.jpg&filename=IMG_20200307_213429.jpg)
![IMG_20200307_213408.jpg](/proxy/?url=https://content.instructables.com/FP9/3GLF/K7GW8Z9V/FP93GLFK7GW8Z9V.jpg&filename=IMG_20200307_213408.jpg)
connect the display to raspberry pi zero and power it using micro-USB cable using your pc or laptop