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.
99 Bottles of Beer in Techage
- 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
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.
- 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
Lua Controller
This is a simple example using the Techage Lua controller. No additional devices are required.
Init code:
loop code:
The number 30 is the node number of the lamp in my test world.
This is a simple example using the Techage Lua controller. No additional devices are required.
Init code:
Code: Select all
cnt = 0
Code: Select all
if cnt % 2 == 0 then
$send_cmnd(30, "on")
else
$send_cmnd(30, "off")
end
cnt = cnt + 1
Sent from my Commodore 64. Some of my Mods: Tech Age, TechPack, Hyperloop, Tower Crane, Lumberjack, vm16, Minecart, Signs Bot.
- 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
TA3 Terminal in BASIC Mode
The TA3 Terminal can also be used in BASIC mode.
Here the blinking light example in BASIC.
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.
- 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
Chicken farm
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.
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.
- 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
TA4 Sequencer
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.
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.