Buzzing sound in the background

Hi Frank @Frankje and Jude @JackANDJude,
Thanks Frank, you found the real reason !
I checked my P1 power bit and it delivers a voltage slightly under 5 Volt (4.91 Volt).
My P3 power bit is much stronger and makes 5.1 Volt.
Indeed the buzzing sound disappears below 5 Volt in my setup.
So that’s the real reason…
Maybe it can be solved without tinkering with the hardware but instead by diving into the software. Next step…

1 Like

Hello @alexpikkert and @JackANDJude,
I just made a protobit with in series with the 5V a Schottky diode BAT85, which drops the voltage by 0.40 Volts. Just enough for the circuit to operate without distortion. Across the output, I mounted a capacitor of 220uF to smooth the 4.60 V. Everything works fine now.
The circuit ( with volume turned fully up ) consumes about 40mA which is safe for the BAT85.
This diode can forward a current of 200mA.
The center output connection is also feeded by this 4.60V ( white wire in the picture ).
Of course, when more modules are added, a better regulator is needed.

How can you add a picture ? I don’t see the the symbol in the edit tab ??

1 Like

Hi frank @Frankje,
Great solution !
To upload a picture use this

And follow instructions on screen…

1 Like

Thank you @alexpikkert.
I uploaded the picture :grinning:

Glad you have a solution, @frankje :slight_smile: To embed a video on the forum, give the youtube link a row all to itself. Try editing your post above until you get it embedded. :thumbsup:

Thank you @JackANDJude
I’ve updated the youtube video inside the message :smile:

Interesting and deep analysis, folks! I had problems with noise in littleBits audio circuits before. Turns out, it was the switching power supply (adapter) that was causing the noise. I started using a non-switching supply (an old Yamaha PA-3b) and the noise went away. I use the P1 power bit.

Even with clean power, my design is noisy. I tried using the same design with voice samples and never could tune the buzz/noise away.

So, I’ve got a better design using a Microchips MCP4921 DAC via the SPI pins on the Arduino module. The good news is that the design is less sensitive to noise. The bad news is that the MCP4921 solution requires a few more low-cost components and you must solder six header pins to the Arduino module.

Here are links at my web site that should help you out:

I eventually completed the SPI DAC project, but haven’t had a chance to post the project to the littleBits site.

All the best – pj


Hi Pj,
First of all, congrats on your fantastic project aka BeatBox.
I’ve read your article and it would indeed be fun to upgrade the arduino bit !
I have just a question about changing sounds and drumkits in the sketch.
I have a few audio samples of drums in wav format. How do you convert these in decimal form, separated by comma’s, so that they can be put in the sketch ?
Which software can be used for that and how do you do this ?
Which bitrate and sample frequencie must be used ?
I could put these in the forum here for other Littlebits lovers :wink:

1 Like

Hi Frank @Frankje, Jude @JackANDJude and Paul @pjd,

The BeatBox is a real nice gadget to practice programming of the Arduino…
Even with a switching power connection I cannot hear buzz/noise behind the beats.
My arduino is now working on 4 Volt instead of 5, going lower then some beats disappear…
I made a littlebits filter, based on the breadboard version:


Hear my Beatbox in action with two speakers (more audiopowerrrr) and the Littlebits low pass filter on D9:

:grinning: :musical_score:


Hello @alexpikkert, @JackANDJude, @pjd,
Thank you Alex for posting this filter module :smiley:
I would like to add a power reduction bit to the cool circuit of Pjd.
Thanks to the LittleBits Hatdware Development Kit, it is possible to make permanent usable bits. And perf board is perfect usable.
I used perf board with copper lanes and use a small drill to cut tracks.
So, here is some info and pictures of the power and filter module :slightly_smiling_face:

I adder a delay bit behoren the speaker , fun fun fun :grinning:


Hi folks –

Those are very nice modules! Your work is well-beyond my craft level and I’m quite impressed!

I wrote up a description of how I developed, translated and represented the drum instrument waveforms for the Beat Box. The write-up is at my site:

Frankje, the short answer is 22,050Hz, signed 8-bit, mono. I wrote each waveform to a RAW audio file – no header, just samples. Then, I converted the RAW audio file to C language with a program that I wrote (raw2c.c). The page at my site has a link to a ZIP file containing the source code.

It’s very exciting and gratifying to see what you have accomplished! Thank you.

– pj

1 Like

@frankje I think it would be cool if you uploaded this to and link to @pjd 's original post in your description. While you’re at it, perhaps you’d like to change up the code to use react to input Bits?

Hello @JackANDJude,
Well, right now I’m working on this project to add fresh sounds and drum loops. I might as well add a few more functions in the sketch.
When completed, I will upload this to littlebits inventions with permission of @pjd. He was so kind to share his Project as open source.
I will do my best :blush:


Hi @Frankje @pjd @JackANDJude,

great alternative BeatBox, this Mini Pops !
I built this little machine and found two really funny things:

It worked without the extra voltage drop bit. Huh? …
I checked with my multimeter and it worked on 5.05 Volt.
How to explain…

The new pulse output for an additional sequencer on D1 did not work in the beginning, I added my oscilloscope and saw very small pulses. So I added a little delay in the ino program (2 msec for the gatePin) and voila, the sequencer started… Use 10 msec and you get a different sound)
As a consequence the maximum beats per second dropped, but you can’t have everything… :joy:

See the result here, with a sequecer and a micro sequencer with in total 4 different sound combinations:

(4 out of a zillion possible sounds !) :musical_score: :musical_score: :musical_score: :musical_score:
Great !


Hi @alexpikkert

Cool, dude!

WRT your second observation, I suspect that the sequencer as some timing requirement on its gate signal. I can’t remember if I passed this suggestion to the littleBits folks, but it would be great if they published the timing requirements for the gate signal. This bit of info would eliminate a certain amount of trial and error. It would also help to publish a set of requirements and guidelines for using the Arduino buffered outputs (D5 and D9) with everyday digital circuits. The OP AMP slew rate affects timing when driving CMOS logic.

All the best – pj

1 Like

hi @alexpikkert and @pjd and @JackANDJude !
Thank you Alex for taking time to study the mini pops project and for finding a solution to the delay of the sequencer pulses : you’re the best ! :clap:
I’ve given it even more time (30) and also adapted the tempo control,so that the extra delay for the pulses, are compensated.
Could you give it another try ?
In the meantime doing so, I programmed 4 new extra patterns and these can be controlled by the dimmer at a1.
I’ve uploaded a new ino file with the updated sketch to the MiniPops project. It’s best that you download ALL files ( including kits, patterns and waveforms and minipops.ino).
Unlucky for me, 5V to the arduino gives buzzzzzzz., so I really need the 4.6V adapter and opto circuit :open_mouth:
Tomorrow, I will create a optocoupler bit with the HDK.
Many greetings


version 3 with 8 rhythms and better sequencer trigger output on D1
:musical_score: :grinning:


3 posts were split to a new topic: Cardboard Sequencer & Noisemakers

Hi Frank @Frankje
Can you maybe rewrite the beatbox pops ino program for an arduino UNO or NANO?
It seems to work only for the Littlebits W6 Leonardo version… :grinning:
I got this question on my Youtube channel…

Hello @alexpikkert
Its best to ask pjd to transfer the code to Arduino Uno.
He has developed the program so he will certainly know how to do this properly.
I just created new sound samples and patterns for the drum loops.
Wish you the best,

1 Like