Coder Social home page Coder Social logo

afch / nixieclockraspberrypi Goto Github PK

View Code? Open in Web Editor NEW
19.0 12.0 15.0 566 KB

Firmware Simple Nixie Tubes Clock Based on RaspberryPi, adapter and NCS314-6 Tubes or NCS318-6 Tubes shields for Arduino (by GRA and AFCH)

C++ 73.91% Makefile 26.09%
softwae gra afch nixie-tube-clock gra-afch ncs-314 raspberry-pi

nixieclockraspberrypi's Introduction

NixieClockRaspberryPi

Simple Nixie Tubes Clock Based on RaspberryPi, adapter and NCS314-6 Tubes or NCS318-6 Tubes shield for Arduino (by GRA and AFCH).

A simple program that show the current time (stored in shield's onboard RTC) at Nixie tubes.

(Enhanced mod by Leon Shaner available here: https://github.com/UberEclectic/NixieClockRaspberryPi/tree/master/DisplayNixie)

Requared hardware:
  1. Raspberry Pi any models with 40-pin GPIO connector (Except A and B models).
  2. Arduino to Raspberry Pi adapter (by GRA & AFCH): https://gra-afch.com/catalog/shield-nixie-clock-for-arduino/raspberry-pi-shield-nixie-tubes-clock-ncs314-for-in-14-nixie-tubes-options-tubes-gps-remote-arduino-columns-copy/
  3. Arduino Nixie Clock Shield NCS314 (v1.2, v2.x, v3.x) or NCS318: https://gra-afch.com/catalog/shield-nixie-clock-for-arduino/nixie-tubes-clock-arduino-shield-ncs314-for-xussr-in-14-nixie-tubes/
How to use binaries:
  1. Download and unzip.

  2. Set execute permission "Anyone" to "DisplayNixie" file: https://photos.app.goo.gl/yVWtZkcIU9afhsvI2

  3. Enable SPI and I2C modules in the "Raspberry Pi Configuration": https://photos.app.goo.gl/vH7DtG9nwMzJHwvP2 3.1) or CLI way "sudo raspi-config": https://photos.app.goo.gl/wfoPd8CNLSlJ0bF83

  4. Run the program "sudo /home/pi/Downloads/NixieClockRaspberryPi-master/Firmware/Debug/DisplayNixie": https://photos.google.com/album/AF1QipPrdCjy8WkSl1f51m8EP9go7VUFAiGsy_bjW9pH/photo/AF1QipPch7Yz6RWZKBhiU_U8SIZtXHFvxyfVzh27Byjp

    Step-by-Step video: https://youtu.be/-58clsFwA3I

Сommand line options available for CLITool (/home/pi/Downloads/NixieClockRaspberryPi-master/CLITool/Debug/CLITool):

  1. 123456 - any 6 digits. Shield will display these numbers.

  2. now - Shield will display current system time at the time the command is executed.

  3. clock - the program will loop and will update every second the time from Real Time Clock (RTC on shield board) on tubes.

  4. settime x - set time, where x time in format [hh:mm:ss].

  5. setsystime - set current time from OS. Example: "sudo /home/pi/Downloads/NixieClockRaspberryPi-master/CLITool/Debug/CLITool 123456" - will show 123456 on tubes.

     To compile the source: 
    

Add folder "DisplayNixie" into the workspace of Eclipse: "File"->"Import", "Genral"->"Existing Project into Workspce". p.s. The project uses the "wiringPi" library: http://wiringpi.com/download-and-install/

    Autorun the program at startup: 

Edit /home/pi/.bashrc file - add string like this: sudo "/home/pi/Documents/Eclipse Projects/DisplayNixie/Debug/DisplayNixie" clock

nixieclockraspberrypi's People

Contributors

afch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nixieclockraspberrypi's Issues

Buttons malfunction

Hey,
i am using the IN-14 NIXIE TUBES CLOCK RASPBERRY PI HAT or ARDUINO SHIELD NCS314 with an Raspberry Pi 4 Modell B.
When i am using your software, the time keeps counting up. I have identified, that the issue seem to be the up/down button.

digitalread() of the buttons always returns 0, even when they are pressed. Do you have any experience with such a problem or know how to solve it?

Best regards,
Seb

Directory file structure changed?

Just got my nixie clock. Following the instructions, noticed there is no longer a bin folder. When I try to run the DisplayNixie clock command from /home/pi/downloads/nixieclockraspberrypi-master/firmware debug, I get an “Unable to open I2C device: No such file or directory”.

CLITool support for Firmware NCS314 HW v3.x

When trying to use the CLITool utility with firmware NCS314 HW v3.x, and the Raspberry Pi Astrpa v.2.1, it does not display correctly. For example, entering 'CLITool 123456' displays '726594' on the tubes. Are there plans to update the utility so that it can be used with the updated firmware?

Libraries not findable

Hi guys,

I have difficulties to compile the code because the following libraries are not findable. Can you help me ton find them?

#include <wiringPi.h>
#include <wiringPiSPI.h>
#include <wiringPiI2C.h>

Best regards

CP

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.