99 Bottles of Beer in Techage

Post Reply
User avatar
joe7575
Member
Posts: 873
Joined: Mon Apr 24, 2017 20:38
GitHub: joe7575
In-game: JoSto wuffi
Location: Germany, in the deep south

99 Bottles of Beer in Techage

by joe7575 » Post

This thread is intended to be a variant of the 99 Bottles of Beer collection. The original version contains the lyrics of the song “99 Bottles of Beer” in 1,500 different programming languages. But instead of programming the lyrics, we will simply blink with the Techage Color Lamp.

The challenge is to implement a system that blinks with the Techage Color Lamp. Obvious solutions are to use one of the various programming devices such as the Techage Lua Controller.

But there should be many more ways to solve this challenge. There is only one rule: the system must be able to blink with the Techage Color Lamp (techage:color_lamp2_off) at a frequency of 0.05 to 5 Hz.

I'm looking forward to creative solutions :)

It would be nice if each solution included a picture and a short description.

To get things going, I will also add a few examples.
Last edited by joe7575 on Fri Jan 10, 2025 14:46, edited 1 time in total.
Sent from my Commodore 64. Some of my Mods: Tech Age, TechPack, Hyperloop, Tower Crane, Lumberjack, vm16, Minecart, Signs Bot.

User avatar
joe7575
Member
Posts: 873
Joined: Mon Apr 24, 2017 20:38
GitHub: joe7575
In-game: JoSto wuffi
Location: Germany, in the deep south

Re: 99 Bottles of Beer in Techage

by joe7575 » Post

Lua Controller
screenshot_20250105_103000.png
screenshot_20250105_103000.png (38.97 KiB) Viewed 220 times


This is a simple example using the Techage Lua controller. No additional devices are required.

Init code:

Code: Select all

cnt = 0
loop code:

Code: Select all

if cnt % 2 ==  0 then
  $send_cmnd(30, "on")
else
  $send_cmnd(30, "off")
end
cnt = cnt + 1
The number 30 is the node number of the lamp in my test world.
Sent from my Commodore 64. Some of my Mods: Tech Age, TechPack, Hyperloop, Tower Crane, Lumberjack, vm16, Minecart, Signs Bot.

User avatar
joe7575
Member
Posts: 873
Joined: Mon Apr 24, 2017 20:38
GitHub: joe7575
In-game: JoSto wuffi
Location: Germany, in the deep south

Re: 99 Bottles of Beer in Techage

by joe7575 » Post

TA3 Terminal in BASIC Mode
screenshot_20250105_105520.png
screenshot_20250105_105520.png (133.14 KiB) Viewed 216 times


The TA3 Terminal can also be used in BASIC mode.
Here the blinking light example in BASIC.

Code: Select all

10 for i=1 to 100
20 res = cmd(32, 1, 1)
30 sleep(1)
40 res = cmd(32, 1, 0)
50 sleep(1)
60 next i
Last edited by joe7575 on Sun Jan 05, 2025 11:01, edited 1 time in total.
Sent from my Commodore 64. Some of my Mods: Tech Age, TechPack, Hyperloop, Tower Crane, Lumberjack, vm16, Minecart, Signs Bot.

User avatar
joe7575
Member
Posts: 873
Joined: Mon Apr 24, 2017 20:38
GitHub: joe7575
In-game: JoSto wuffi
Location: Germany, in the deep south

Re: 99 Bottles of Beer in Techage

by joe7575 » Post

Chicken farm
screenshot_20250105_113222.png
screenshot_20250105_113222.png (495.03 KiB) Viewed 212 times

With the help of a chicken farm and a few hoppers that collect the eggs, you can also make a blinking light. However, you also need the TA3 Item Detector, which generates a signal when eggs are moved into the chest, and the TA3 Flip-Flop, which turns the lamp on and off again with each signal.
Sent from my Commodore 64. Some of my Mods: Tech Age, TechPack, Hyperloop, Tower Crane, Lumberjack, vm16, Minecart, Signs Bot.

User avatar
joe7575
Member
Posts: 873
Joined: Mon Apr 24, 2017 20:38
GitHub: joe7575
In-game: JoSto wuffi
Location: Germany, in the deep south

Re: 99 Bottles of Beer in Techage

by joe7575 » Post

TA4 Sequencer
screenshot_20250110_153941.png
screenshot_20250110_153941.png (178.96 KiB) Viewed 113 times


The easiest way to make the lamp blinking is with the sequencer, which can be used to process sequences of commands according to the time specified.

Code: Select all

[1] send 92 on
[6] send 92 off
[10] goto 1
Sent from my Commodore 64. Some of my Mods: Tech Age, TechPack, Hyperloop, Tower Crane, Lumberjack, vm16, Minecart, Signs Bot.

Post Reply