Skip to content

Releases: judge2005/SingleTubeClock

Improved WiFi reliability

10 Oct 00:41
Compare
Choose a tag to compare

Overview

This release contains binary files for my One Tube Clock. They won't work for anything else. There are two files:

  • SingleTubeClock.bin - this is the executable code
  • spiffs.bin - this is the web GUI

New in v1.5

  • Re-wrote the WiFi captive portal. WiFi connections are much more reliable, for example it will now re-connect if the router is re-booted.
  • The Web GUI will attempt to reconnect to the clock if it loses a connection (for example as you are switching between apps on a phone.
  • This changes how memory is allocated, so please see the new upload commands below.

Installing this release will reset all of your settings.

Installation (Abbreviated version)

OK, so this isn't the first time you've done this. These are the commands you need to remember:

  1. esptool -cd nodemcu -cb 115200 -cp <port name> -ca 0 -cf SingleTubeClock.bin
  2. esptool -cd nodemcu -cb 115200 -cp <port name> -ca 0xc3000 -cf spiffs.bin

Installation (Full Version)

This is the step-by-step guide:

  1. Download esptool-ck for your platform and unzip/untar/whatever it somewhere. You will use this to upload the bin files to the clock.
  2. Download these bin files and put the in the same folder (for convenience).
  3. Plug the clock in to your computer using a USB cable that supports syncing - most do these days. If it doesn't, nothing bad will happen. In fact nothing will happen. If this is the first time you have plugged it in, it should install a device driver. If it doesn't, you will need to install CP2102 device drivers. You can get some from Silicon Labs
  4. Figure out what the serial port is called - you will need to know this to upload the files. On windows you can open a command shell and type mode to find out.
  5. In the shell you just opened, change directory to where esptool is.
  6. Upload the binary file with this command - change the -cp value to whatever your serial port is called - here it is called COM10.
    esptool -cd nodemcu -cb 115200 -cp COM10 -ca 0 -cf SingleTubeClock.bin
    You should see some text saying it is uploading, and a bunch of dots.
  7. Upload the spiffs, again replace COM10 with whatever your serial port is called:
    esptool -cd nodemcu -cb 115200 -cp COM10 -ca 0xc3000 -cf spiffs.bin

Added movement sensor to sync protocol

26 Apr 00:52
Compare
Choose a tag to compare

Overview

This release contains binary files for my One Tube Clock. They won't work for anything else. There are two files:

  • SingleTubeClock.bin - this is the executable code
  • spiffs.bin - this is the web GUI

New in v1.4

  • Added movement sensor to sync group. What this means is that you can have one movement sensor shared between multiple clocks.
  • Added a none/local/remote selector for the movement sensor to the Extra screen.
  1. Connect the movement sensor to the master in the sync group
  2. Select local as the sensor type
  3. Add the other clocks as slaves to the same sync group
  4. Select remote as the sensor type on the slaves
  5. If the sensor is triggered on the master, it will trigger on the slaves too
  6. The on time is still set independently on each clock

This release will reset all of your settings...

New in v1.3

  • Added support for movement sensors
  • Added a slider to control the dimming and fading PWM frequency
    Installing this release will reset all of your settings.

Movement Sensors

Choose a movement sensor that has a 3.3V data signal active high. The ones I have used are powered from 5V.

  • Wire the data pin on the sensor to IO16 on the clock expansion port.
  • Wire the + pin on the sensor to 5V on the expansion port.
  • Wire the - pin on the sensor to GND on the expansion port.
    There is a slider on the Extra screen that sets how long the clock stays on for when triggered. If it is left at zero, it will ignore the movement sensor.

PWM Frequency

Some very large tubes (I'm thinking of you CD47, but also sometimes the B7971) can 'sing' at the PWM frequency. There is now a slider to adjust the PWM frequency. Generally you will want to reduce the frequency if you can hear a tube singing.

New in v1.2

  • Added cathode re-mapping. The Extra page has another section that lists all of the pin assignments. Just drag them to re-order them - changes are immediately reflected by the clock.

Installing this release will reset all of your settings.

New in v1.1

  • Fixes a bug with timer rollover math
  • Adds an extra mode to the four-tube multiplexed clock
  • Adds inter-clock syncing which syncs animations and the led backlights.

Inter-clock syncing is only useful if you have more than once clock. One clock can be designated as a master and the others as slaves. The master will periodically send a sync message to the slaves after which the time display animations and led lighting should be in sync. However, you still have to configure each clock individually to use the same settings for time, display durations etc.

Installing this release will reset all your settings.

Installation (Abbreviated version)

OK, so this isn't the first time you've done this. These are the commands you need to remember:

  1. esptool -cd nodemcu -cb 115200 -cp <port name> -ca 0 -cf SingleTubeClock.bin
  2. esptool -cd nodemcu -cb 115200 -cp <port name> -ca 0xBB000 -cf spiffs.bin

Installation (Full Version)

This is the step-by-step guide:
Note: installing these files will probably lose your current settings. You will have to re-enter them in the GUI.

  1. Download esptool-ck for your platform and unzip/untar/whatever it somewhere. You will use this to upload the bin files to the clock.
  2. Download these bin files and put the in the same folder (for convenience).
  3. Plug the clock in to your computer using a USB cable that supports syncing - most do these days. If it doesn't, nothing bad will happen. In fact nothing will happen. If this is the first time you have plugged it in, it should install a device driver. If it doesn't, you will need to install CP2102 device drivers. You can get some from Silicon Labs
  4. Figure out what the serial port is called - you will need to know this to upload the files. On windows you can open a command shell and type mode to find out.
  5. In the shell you just opened, change directory to where esptool is.
  6. Upload the binary file with this command - change the -cp value to whatever your serial port is called - here it is called COM10.
    esptool -cd nodemcu -cb 115200 -cp COM10 -ca 0 -cf SingleTubeClock.bin
    You should see some text saying it is uploading, and a bunch of dots.
  7. Upload the spiffs, again replace COM10 with whatever your serial port is called:
    esptool -cd nodemcu -cb 115200 -cp COM10 -ca 0xBB000 -cf spiffs.bin

Added Several New Features

06 Apr 01:54
Compare
Choose a tag to compare

Overview

This release contains binary files for my One Tube Clock. They won't work for anything else. There are two files:

  • SingleTubeClock.bin - this is the executable code
  • spiffs.bin - this is the web GUI

New in v1.3

  • Added support for movement sensors
  • Added a slider to control the dimming and fading PWM frequency
    Installing this release will reset all of your settings.

Movement Sensors

Choose a movement sensor that has a 3.3V data signal active high. The ones I have used are powered from 5V.

  • Wire the data pin on the sensor to IO16 on the clock expansion port.
  • Wire the + pin on the sensor to 5V on the expansion port.
  • Wire the - pin on the sensor to GND on the expansion port.
    There is a slider on the Extra screen that sets how long the clock stays on for when triggered. If it is left at zero, it will ignore the movement sensor.

PWM Frequency

Some very large tubes (I'm thinking of you CD47, but also sometimes the B7971) can 'sing' at the PWM frequency. There is now a slider to adjust the PWM frequency. Generally you will want to reduce the frequency if you can hear a tube singing.

New in v1.2

  • Added cathode re-mapping. The Extra page has another section that lists all of the pin assignments. Just drag them to re-order them - changes are immediately reflected by the clock.

Installing this release will reset all of your settings.

New in v1.1

  • Fixes a bug with timer rollover math
  • Adds an extra mode to the four-tube multiplexed clock
  • Adds inter-clock syncing which syncs animations and the led backlights.

Inter-clock syncing is only useful if you have more than once clock. One clock can be designated as a master and the others as slaves. The master will periodically send a sync message to the slaves after which the time display animations and led lighting should be in sync. However, you still have to configure each clock individually to use the same settings for time, display durations etc.

Installing this release will reset all your settings.

Installation (Abbreviated version)

OK, so this isn't the first time you've done this. These are the commands you need to remember:

  1. esptool -cd nodemcu -cb 115200 -cp <port name> -ca 0 -cf SingleTubeClock.bin
  2. esptool -cd nodemcu -cb 115200 -cp <port name> -ca 0xBB000 -cf spiffs.bin

Installation (Full Version)

This is the step-by-step guide:
Note: installing these files will probably lose your current settings. You will have to re-enter them in the GUI.

  1. Download esptool-ck for your platform and unzip/untar/whatever it somewhere. You will use this to upload the bin files to the clock.
  2. Download these bin files and put the in the same folder (for convenience).
  3. Plug the clock in to your computer using a USB cable that supports syncing - most do these days. If it doesn't, nothing bad will happen. In fact nothing will happen. If this is the first time you have plugged it in, it should install a device driver. If it doesn't, you will need to install CP2102 device drivers. You can get some from Silicon Labs
  4. Figure out what the serial port is called - you will need to know this to upload the files. On windows you can open a command shell and type mode to find out.
  5. In the shell you just opened, change directory to where esptool is.
  6. Upload the binary file with this command - change the -cp value to whatever your serial port is called - here it is called COM10.
    esptool -cd nodemcu -cb 115200 -cp COM10 -ca 0 -cf SingleTubeClock.bin
    You should see some text saying it is uploading, and a bunch of dots.
  7. Upload the spiffs, again replace COM10 with whatever your serial port is called:
    esptool -cd nodemcu -cb 115200 -cp COM10 -ca 0xBB000 -cf spiffs.bin

Add cathode re-mapping

04 Jan 01:46
Compare
Choose a tag to compare

Overview

This release contains binary files for my One Tube Clock. They won't work for anything else. There are two files:

  • SingleTubeClock.bin - this is the executable code
  • spiffs.bin - this is the web GUI

New in v1.2

  • Added cathode re-mapping. The Extra page has another section that lists all of the pin assignments. Just drag them to re-order them - changes are immediately reflected by the clock.

New in v1.1

  • Fixes a bug with timer rollover math
  • Adds an extra mode to the four-tube multiplexed clock
  • Adds inter-clock syncing which syncs animations and the led backlights.

Inter-clock syncing is only useful if you have more than once clock. One clock can be designated as a master and the others as slaves. The master will periodically send a sync message to the slaves after which the time display animations and led lighting should be in sync. However, you still have to configure each clock individually to use the same settings for time, display durations etc.

Installing this release will reset all your settings.

Installation (Abbreviated version)

OK, so this isn't the first time you've done this. These are the commands you need to remember:

  1. esptool -cd nodemcu -cb 115200 -cp <port name> -ca 0 -cf SingleTubeClock.bin
  2. esptool -cd nodemcu -cb 115200 -cp <port name> -ca 0xBB000 -cf spiffs.bin

Installation (Full Version)

This is the step-by-step guide:
Note: installing these files will probably lose your current settings. You will have to re-enter them in the GUI.

  1. Download esptool-ck for your platform and unzip/untar/whatever it somewhere. You will use this to upload the bin files to the clock.
  2. Download these bin files and put the in the same folder (for convenience).
  3. Plug the clock in to your computer using a USB cable that supports syncing - most do these days. If it doesn't, nothing bad will happen. In fact nothing will happen. If this is the first time you have plugged it in, it should install a device driver. If it doesn't, you will need to install CP2102 device drivers. You can get some from Silicon Labs
  4. Figure out what the serial port is called - you will need to know this to upload the files. On windows you can open a command shell and type mode to find out.
  5. In the shell you just opened, change directory to where esptool is.
  6. Upload the binary file with this command - change the -cp value to whatever your serial port is called - here it is called COM10.
    esptool -cd nodemcu -cb 115200 -cp COM10 -ca 0 -cf SingleTubeClock.bin
    You should see some text saying it is uploading, and a bunch of dots.
  7. Upload the spiffs, again replace COM10 with whatever your serial port is called:
    esptool -cd nodemcu -cb 115200 -cp COM10 -ca 0xBB000 -cf spiffs.bin

Added inter-clock syncing, fixed timer bug

22 Dec 00:48
Compare
Choose a tag to compare

Overview

This release contains binary files for my One Tube Clock. They won't work for anything else. There are two files:

  • SingleTubeClock.bin - this is the executable code
  • spiffs.bin - this is the web GUI

New in this Release

  • Fixes a bug with timer rollover math
  • Adds an extra mode to the four-tube multiplexed clock
  • Adds inter-clock syncing which syncs animations and the led backlights.

Inter-clock syncing is only useful if you have more than once clock. One clock can be designated as a master and the others as slaves. The master will periodically send a sync message to the slaves after which the time display animations and led lighting should be in sync. However, you still have to configure each clock individually to use the same settings for time, display durations etc.

Installing this release will reset all your settings.

Installation (Abbreviated version)

OK, so this isn't the first time you've done this. These are the commands you need to remember:

  1. esptool -cd nodemcu -cb 115200 -cp <port name> -ca 0 -cf SingleTubeClock.bin
  2. esptool -cd nodemcu -cb 115200 -cp <port name> -ca 0xBB000 -cf spiffs.bin

Installation (Full Version)

This is the step-by-step guide:
Note: installing these files will probably lose your current settings. You will have to re-enter them in the GUI.

  1. Download esptool-ck for your platform and unzip/untar/whatever it somewhere. You will use this to upload the bin files to the clock.
  2. Download these bin files and put the in the same folder (for convenience).
  3. Plug the clock in to your computer using a USB cable that supports syncing - most do these days. If it doesn't, nothing bad will happen. In fact nothing will happen. If this is the first time you have plugged it in, it should install a device driver. If it doesn't, you will need to install CP2102 device drivers. You can get some from Silicon Labs
  4. Figure out what the serial port is called - you will need to know this to upload the files. On windows you can open a command shell and type mode to find out.
  5. In the shell you just opened, change directory to where esptool is.
  6. Upload the binary file with this command - change the -cp value to whatever your serial port is called - here it is called COM10.
    esptool -cd nodemcu -cb 115200 -cp COM10 -ca 0 -cf SingleTubeClock.bin
    You should see some text saying it is uploading, and a bunch of dots.
  7. Upload the spiffs, again replace COM10 with whatever your serial port is called:
    esptool -cd nodemcu -cb 115200 -cp COM10 -ca 0xBB000 -cf spiffs.bin

Version 1.0

24 Aug 03:46
Compare
Choose a tag to compare

Overview

This release contains binary files for my One Tube Clock. They won't work for anything else. There are two files:

  • SingleTubeClock.bin - this is the executable code
  • spiffs.bin - this is the web GUI

Installation (Abbreviated version)

OK, so this isn't the first time you've done this. These are the commands you need to remember:

  1. esptool -cd nodemcu -cb 115200 -cp <port name> -ca 0 -cf SingleTubeClock.bin
  2. esptool -cd nodemcu -cb 115200 -cp <port name> -ca 0xBB000 -cf spiffs.bin

Installation (Full Version)

This is the step-by-step guide:
Note: installing these files will probably lose your current settings. You will have to re-enter them in the GUI.

  1. Download esptool-ck for your platform and unzip/untar/whatever it somewhere. You will use this to upload the bin files to the clock.
  2. Download these bin files and put the in the same folder (for convenience).
  3. Plug the clock in to your computer using a USB cable that supports syncing - most do these days. If it doesn't, nothing bad will happen. In fact nothing will happen. If this is the first time you have plugged it in, it should install a device driver. If it doesn't, you will need to install CP2102 device drivers. You can get some from Silicon Labs
  4. Figure out what the serial port is called - you will need to know this to upload the files. On windows you can a command shell and type mode to find out.
  5. In the shell you just opened, change directory to where esptool is.
  6. Upload the binary file with this command - change the -cp value to whatever your serial port is called - here it is called COM10.
    esptool -cd nodemcu -cb 115200 -cp COM10 -ca 0 -cf SingleTubeClock.bin
    You should see some text saying it is uploading, and a bunch of dots.
  7. Upload the spiffs, again replace COM10 with whatever your serial port is called:
    esptool -cd nodemcu -cb 115200 -cp COM10 -ca 0xBB000 -cf spiffs.bin