Skip to content

RobinHeitz/qlock

Repository files navigation

DIY-Project inspired by QLOCKTWO

privat usage only! I built this project for a birthday present (see (/img). Deployed on a raspberry pi Zero W.

Installation:

Download Qlock Repo

  • clone github repo 'qlock'

  • sudo pip install rpi_ws281x

  • disable audio kernel module: create file /etc/modprobe.d/snd-blacklist.conf with 'blacklist snd_bcm2835' for further information: https://pypi.org/project/rpi-ws281x/

  • Start the script after boot:

    • on the pi: 'sudo nano /etc/rc.local
    • paste in 'sudo python clock_controller.py' before the last line and save

Potentiometer installations

Wiring:

WS281x LED chips are controlled by 5V PWM signal, but RPi only has 3,3V - level shifter needed. I'm using the SN54AHCT125 with 5 cabels connected to it.

So, 5V and ground are coming directly from the Pi (Pin 2/4 for 5V & 6 for GND), but the GPIO needs to be shifted.

Alt text

Shifter's pin 1 and 7 to gnd, 14 to 5V, 2 is input PWM (coming from Pi) and 3 is output (going to led strip).

Parts

Additional:

  • disable audio: sudo nano /etc/modprobe.d/snd-blacklist.conf add 'blacklist snd_bcm2835'
  • in sudo nano /boot/config.txt, comment out 'dtparam=audio=on'
  • sudo reboot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages