# Kosmo Clock Module

**URL:** <https://lookmumnocomputer.discourse.group/t/kosmo-clock-module/5600>\
**Category:** KOSMO MODULES\
**Created:** [October 30, 2022, 11:44pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-clock-module/5600 "2022-10-30T23:44:45Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenRufenacht](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@BenRufenacht](https://lookmumnocomputer.discourse.group/u/BenRufenacht)\
**Post date:** [October 30, 2022, 11:44pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-clock-module/5600/1 "2022-10-30T23:44:45Z")

</div>

I am making a Clock Module that should, in theory, run the LittleBen code from [quinie](https://github.com/Quinienl/LittleBen-Firmware). Here is my schematic so far (\*Updated based on discussion below):

 ![ClockSchematics](https://global.discourse-cdn.com/free1/uploads/lookmumnocomputer/original/3X/6/2/6207b00ee5c62adef0d2aa7c213c0de4aac89bc2.png)

And my 75mm panel. I tried fitting it into 50mm, but that would be very tight for the components:

 ![ClockPanelGraphics](https://global.discourse-cdn.com/free1/uploads/lookmumnocomputer/original/3X/8/e/8e0afe112bc454f29a3045ff72d60e3845afd062.png)

I am not sure that I have the start/stop interrupt input circuits correct. Does that look like it will work?

---

<div class="post-metadata">

**Author:** ![analogoutput](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/analogoutput/32/29663_2.png) [@analogoutput](https://lookmumnocomputer.discourse.group/u/analogoutput)\
**Post date:** [October 31, 2022, 12:00am UTC](https://lookmumnocomputer.discourse.group/t/kosmo-clock-module/5600/2 "2022-10-31T00:00:39Z")

</div>

What I used in a recent design:

![image](https://global.discourse-cdn.com/free1/uploads/lookmumnocomputer/original/3X/a/e/aeee3c4cb247ea61298fc7445a0bc720ff70b598.png)

Note I used +5 V and a resistor on the collector. I guess the input could use the internal pullup, I didn’t really think about that. I also used a weak 1M pulldown to avoid having the base floating.

---

<div class="post-metadata">

**Author:** ![BenRufenacht](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@BenRufenacht](https://lookmumnocomputer.discourse.group/u/BenRufenacht)\
**Post date:** [October 31, 2022, 1:44am UTC](https://lookmumnocomputer.discourse.group/t/kosmo-clock-module/5600/3 "2022-10-31T01:44:33Z")

</div>

I will add that 1M to ground. Probably won’t change anything, but seems like a good idea.

My circuit has the collector connected to 5V through a 100k resister at the switch, which will pull it to ground when pressed. I think the two circuits will work the same way? Yours just makes the transistor pull to ground while mine does it with the button.

---

<div class="post-metadata">

**Author:** ![analogoutput](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/analogoutput/32/29663_2.png) [@analogoutput](https://lookmumnocomputer.discourse.group/u/analogoutput)\
**Post date:** [October 31, 2022, 1:50am UTC](https://lookmumnocomputer.discourse.group/t/kosmo-clock-module/5600/4 "2022-10-31T01:50:16Z")

</div>

Right, I didn’t see the other instance of START. I have the push button connected (via Molex) to CLK\_IN — and I should have put a resistor there, or connected it after the 100k, in case the input is connected to ground or some other voltage. Duh.

---

<div class="post-metadata">

**Author:** ![antoine.pasde2](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/antoine.pasde2/32/326_2.png) [@antoine.pasde2](https://lookmumnocomputer.discourse.group/u/antoine.pasde2)\
**Post date:** [November 1, 2022, 8:23pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-clock-module/5600/5 "2022-11-01T20:23:21Z")

</div>

You should connect the \*OE input of the 74HC595 to ground, CMOS inputs should never be left floating.

---

<div class="post-metadata">

**Author:** ![BenRufenacht](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@BenRufenacht](https://lookmumnocomputer.discourse.group/u/BenRufenacht)\
**Post date:** [November 1, 2022, 9:01pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-clock-module/5600/6 "2022-11-01T21:01:13Z")

</div>

I will do that, and It seems I should also pull the SRCLR high. Also, maybe I should power with the 3.3v regulator on the nano?

---

<div class="post-metadata">

**Author:** ![antoine.pasde2](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/antoine.pasde2/32/326_2.png) [@antoine.pasde2](https://lookmumnocomputer.discourse.group/u/antoine.pasde2)\
**Post date:** [November 1, 2022, 9:11pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-clock-module/5600/7 "2022-11-01T21:11:42Z")

</div>

Yes, the \*SRCLR input should also be driven, I missed that.  
Using 3.3V to power the '595 is probably a good idea as the input high threshold voltage would be marginal if powered by 5V but driven by 3.3V outputs from the micro-controller.  
You might want to adjust the gain of the opamp output buffers to compensate for the lower output voltage of the 74HC595 when powered from 3.3V.

---

<div class="post-metadata">

**Author:** ![BenRufenacht](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@BenRufenacht](https://lookmumnocomputer.discourse.group/u/BenRufenacht)\
**Post date:** [November 1, 2022, 9:49pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-clock-module/5600/8 "2022-11-01T21:49:39Z")

</div>

Looks like flipping my resistors would get me close to the same output voltage at 8.25V. I have considered configuring the opamps as comparators and getting 10.5V clocks.

---

<div class="post-metadata">

**Author:** ![antoine.pasde2](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/antoine.pasde2/32/326_2.png) [@antoine.pasde2](https://lookmumnocomputer.discourse.group/u/antoine.pasde2)\
**Post date:** [November 1, 2022, 9:58pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-clock-module/5600/9 "2022-11-01T21:58:58Z")

</div>

Opamps as comparators, to save on resistors?  
You would use 0V and 12V to power the opamps? Then you would have outputs that don’t go all the way down to zero.  
Unless I’m missing something, doesn’t seem like a good idea.

---

<div class="post-metadata">

**Author:** ![BenRufenacht](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@BenRufenacht](https://lookmumnocomputer.discourse.group/u/BenRufenacht)\
**Post date:** [November 1, 2022, 10:42pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-clock-module/5600/10 "2022-11-01T22:42:56Z")

</div>

It would be +12 and -12, and a diode could be added to keep the -12 to ground. Still probably a more complicated circuit if I consider that I would have to make sure my threshold voltage was correct.

---

<div class="post-metadata">

**Author:** ![BenRufenacht](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@BenRufenacht](https://lookmumnocomputer.discourse.group/u/BenRufenacht)\
**Post date:** [November 15, 2022, 3:30am UTC](https://lookmumnocomputer.discourse.group/t/kosmo-clock-module/5600/11 "2022-11-15T03:30:57Z")

</div>

Even though Analog Output made a module that covers a lot of what I want out of this one, I am far enough along to go ahead and finish it out.

Also, I needed more weird on the panel:

 ![ClockPanelGraphics](https://global.discourse-cdn.com/free1/uploads/lookmumnocomputer/original/3X/2/2/220056b767ecec2c3029388e1e873aee43bc04a5.jpeg)

This could be used along with that clock to give more divided outputs.

---

<div class="post-metadata">

**Author:** ![analogoutput](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/analogoutput/32/29663_2.png) [@analogoutput](https://lookmumnocomputer.discourse.group/u/analogoutput)\
**Post date:** [November 15, 2022, 3:52am UTC](https://lookmumnocomputer.discourse.group/t/kosmo-clock-module/5600/12 "2022-11-15T03:52:30Z")

</div>

Very nice weird! ![tiny](https://global.discourse-cdn.com/free1/uploads/lookmumnocomputer/original/3X/c/1/c13e64addcf8ab426631ece0eb23ad24911418ca.png)

---

<div class="post-metadata">

**Author:** ![BenRufenacht](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@BenRufenacht](https://lookmumnocomputer.discourse.group/u/BenRufenacht)\
**Post date:** [November 15, 2022, 4:35am UTC](https://lookmumnocomputer.discourse.group/t/kosmo-clock-module/5600/13 "2022-11-15T04:35:10Z")

</div>

Updated schematic in OP based on discussion.

---

<div class="post-metadata">

**Author:** ![analogoutput](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/analogoutput/32/29663_2.png) [@analogoutput](https://lookmumnocomputer.discourse.group/u/analogoutput)\
**Post date:** [November 15, 2022, 4:49am UTC](https://lookmumnocomputer.discourse.group/t/kosmo-clock-module/5600/14 "2022-11-15T04:49:18Z")

</div>

Do you really need the shift register? Without it you have D4–6, D12–13, and A0–A3 (which can be used as D14–D17) available, that’s 9 pins.

---

<div class="post-metadata">

**Author:** ![BenRufenacht](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@BenRufenacht](https://lookmumnocomputer.discourse.group/u/BenRufenacht)\
**Post date:** [November 15, 2022, 4:53am UTC](https://lookmumnocomputer.discourse.group/t/kosmo-clock-module/5600/15 "2022-11-15T04:53:06Z")

</div>

I have concidered that. I would lose compatibility with the Little Ben code if I removed it. I do plan on altering the code anyway, so it is still an option.

---

<div class="post-metadata">

**Author:** ![BenRufenacht](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@BenRufenacht](https://lookmumnocomputer.discourse.group/u/BenRufenacht)\
**Post date:** [December 8, 2022, 11:47pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-clock-module/5600/16 "2022-12-08T23:47:30Z")

</div>

Got the clock and kick playing nicely together.

 ![PXL_20221208_234524501.MP](https://global.discourse-cdn.com/free1/uploads/lookmumnocomputer/original/3X/1/5/154cf0d6d26e4948263dbf5b5cafa2f805e1faf1.jpeg)

---

<div class="post-metadata">

**Author:** ![BenRufenacht](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@BenRufenacht](https://lookmumnocomputer.discourse.group/u/BenRufenacht)\
**Post date:** [March 18, 2023, 8:32pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-clock-module/5600/17 "2023-03-18T20:32:04Z")

</div>

I posted the module and arduino code to git for anyone interested.

> **[GitHub - BenRufenacht/KosmoClock: Kosmo Format Clock Module based on...](https://github.com/BenRufenacht/KosmoClock)**
>
> Kosmo Format Clock Module based on LittleBen by Quinie - GitHub - BenRufenacht/KosmoClock: Kosmo Format Clock Module based on LittleBen by Quinie

---

<div class="post-metadata">

**Author:** ![krztoff](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/krztoff/32/29609_2.png) [@krztoff](https://lookmumnocomputer.discourse.group/u/krztoff)\
**Post date:** [February 2, 2026, 6:01am UTC](https://lookmumnocomputer.discourse.group/t/kosmo-clock-module/5600/18 "2026-02-02T06:01:20Z")

</div>

How is external clock supposed to work with this? I was assuming that it would expect to find clock on the “play” input but that doesn’t seem to be working correctly. The UI says the module is always “paused” in external mode and I just see sparse random LED flickers on the numbered outputs. Apologies if this info is elsewhere, but I haven’t been able to find any documentation for this or the LittleBen firmware anywhere.
