Skip to content

Information and code on the train station signs in the space.

Notifications You must be signed in to change notification settings

sheffieldhackspace/train-signs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

111 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Train Station Clocks

The clocks in the space. See also Nottingham Hackspace's wiki:

https://wiki.nottinghack.org.uk/wiki/BigClocks

Gif of "Sheffield Hackspace" moving around train clock sign

Picture of train clock sign

Clock information

  • Dimensions: 96 × 26
  • Operating voltage: 3.3V
  • Power voltage: 5V

Hardware driver

The microcontroller is a XIAO Studio Seeed ESP32C3.

Pinout

Screenshot of a schematic presenting the pinout

See kicad project for the latest version.

Prototype

Photo of the prototyped circuit board

Running the project

Installation

$ pio run -t clean -t upload -e server

Generation of compatible image data

$ ./icons/image2bytes.py ./icons/skull.gif

Setting the status of the display

$ curl http://ip_address:port/ --data '{
  text: "Repair cafe @\nSheffield Hackspace",
  text_wrap: false,
  flash: false,
  invert: false,
  horizontal_align: 0,
  vertical_align: 0,
  image: "AAAAAAAAAAAAAAAAAAAADAAwHAA4Hn54Bv9gAf+AATyAATyAAeeAAeeAAH4AA0LAD37wDjxwBgBgAAAAAAAAAAAAAAAAAAAA",
  image_width: 24,
  image_height: 24
}'
  • text - The text to be displayed. If it is too long, the display will scroll the text accordingly.
  • text_wrap - Should the text be wrapped or not. If true, the overflow will be scrolled vertially; if false, horizontally.
  • flash - Set true to invert the colours every second producing a flashing animation
  • invert - Invert the colours of the display
  • horizontal_align - -1 left, 0 centre, 1 right
  • vertical_align - -1 top, 0 centre, 1 bottom
  • image - base64 of an image (output of the other script)
  • image_width - image width
  • image_height - image height

Included libraries

  • Based on the BigClock library made by the Nottingham Hackspace
  • Adafruit_BigClock provides an Adafruit_GFX compatible driver for the display
  • Adafruit_Widget provides an interface for displaying information

The BigClock library has been heavily rewritten by dredzik.

About

Information and code on the train station signs in the space.

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •