Simple Sound Effects 2.0 [130209]

Here is a simple, little circuit that makes loud, useless noises with an ATtiny45 programed in Bascom-AVR.
In the May 1979 edition of Elektor we published a “Simple Sound Effects” unit. The author was rightly proud of the design which used a CD4040 counter, a CD4049 Hex inverter and a few odds and ends. Anyone who considered building the circuit all those years ago will be happy to know that a newer version is now available. Thanks to the marvels of modern technology we can now make the same sort of racket but with fewer components. That’s progress!
What we can’t see from the circuit diagram is how much hardware and wiring of the original design containing counters and inverters has been saved. The 21st century version does the same job in software and uses little more than just an 8-pin ATtiny45 microcontroller instead of the clever feedback counter design of the original circuit.
The design also uses a single transistor buffer at the output to increase the level of annoyance produced from the small 8-Ω loudspeaker.
A trimpot is included in the design to give some degree of frequency adjustment of the generated rumpus.
Read on in English
Weiterlesen auf Deutsch
Lees verder in het Nederlands
Continuez la lecture en français
For those who don't like microcontrollers or who just want to play aroud with logic and other classic components, attached below is the original design.
What we can’t see from the circuit diagram is how much hardware and wiring of the original design containing counters and inverters has been saved. The 21st century version does the same job in software and uses little more than just an 8-pin ATtiny45 microcontroller instead of the clever feedback counter design of the original circuit.
The design also uses a single transistor buffer at the output to increase the level of annoyance produced from the small 8-Ω loudspeaker.
A trimpot is included in the design to give some degree of frequency adjustment of the generated rumpus.
Read on in English
Weiterlesen auf Deutsch
Lees verder in het Nederlands
Continuez la lecture en français
For those who don't like microcontrollers or who just want to play aroud with logic and other classic components, attached below is the original design.
Discussion (2 comments)
Alectronic 7 years ago
But strangely the presented Bascom listing only produces shortage on memory errors in Bascom that makes it impossible to program the AVR chip from it? Or to generate any usefull Hex file from it because of it.
Only the given Hex file worked. And even the given configuration fuses do not match that of Bascom? Also the setup frequency was different.
Why call het a Bascom program when the author obviously must have used another program that also explains the difference in configuration fuses?
What is the reason of this?
Alectronic 7 years ago
And you did see as a fact that there were two errors in the .err and .rpt files after I compiled YOUR code. Which for some reason I still do not understand you did not have in yours?
I neither changed any of the Bascom settings in my compiler that would explain the differences between your free and my licenced version. I have no clue why that happened.
Also because I recently just installed the latest downloaded compiler version without changing anything whatsoever!
I therefore probably will not use Bascom much anymore because it is always a pain in the butt to configure the fuses and settings correctly.
(Once it took me a couple of months before I finally found out why my Amigadisk-to-SD -card-copier just didn't work in Bascom. Only because one or two fuses were set or unset wrong. That part in Bascom seems very unclear if not buggy, and a couple of well known USB programmers always refused to work together with the matching USB driver settings in the program. It was only until I bought a perfect SANA programmer on TINDIE that it finally was solved and now works everytime!).
Anyway I feel unhappy about the way I'm called rude especially because I never used any inappropriate words and my answer still isn't solved either. As a paying Gold card Elektor member for me there are no FREE projects. But they will after I have ended my membership in 2018 after many years. They say there are no stupid questions, only stupid answers.
ClemensValens 7 years ago
This is from my RPT file: This is from yours: As you can see, your space left is negative, mine is positive, which probably explains your problem.
So, I think the problem is not in the code, but in the way you have configured Bascom AVR.
About the fuses: I don't know why the article shows an image from Atmel Studio, probably because it looked nicer.
P.S. Please try to change your attitude a bit. You are requesting free support on a free project and you accuse me of leaving out information. Furthermore, you are aggressive. I think you are rude and I will probably no longer help you.
Alectronic 7 years ago
Alectronic 7 years ago
You'll notice the Error : 22 Line : 56 Out of SRAM space , in your 'Bascom' Soundgen.err File that was reported, and also the High Baud rate error in line 56 in the Soundgen.rpt File.
My Elektor window didn't show the upload at first until I scrolled down. And there was no upload confirmation visible why I already had uploaded the file before. And removing those afterwards was not possible either.
Why compiling in Bascom fails. (13kb)
Why compiling in Bascom fails. (13kb)
Why compiling in Bascom fails. (13kb)
ClemensValens 7 years ago
Alectronic 7 years ago
Attaching my project file won't do any good because I did use yours.
And there is no output I can send you either because of the compiling error.
ClemensValens 7 years ago
Which Bascom AVR version you are using? Please attach your project + output so that we can inspect it.
Alectronic 7 years ago
It didn't make any difference and still gave the mentioned memory insufficient error.
Error:22 Line:56 Out of SRam space.
Sorry, but why call it a Bascom program when it turns out that it just doesn't compile in any way?
Alectronic 7 years ago
And even the configuration fuses from Atmel Studio were different because they do not correspond with the results we should get in Bascom. Why not give the correct fuses like they should appear in Bascom? Screenshots from Atmel Studio didn't match that of Bascom and gave completely different results. Thank you for attaching the correct Bascom Basic listing. I will check it hoping to find the cause for the previous Bascom compiling error.
ClemensValens 7 years ago
The configuration fuses shown in the article is a screenshot are from Atmel Studio (as mentioned in the text).
Greg Feneis 7 years ago