Forum: µC & Digital Electronics Design a simple synth with Arduino

von Ada L. (Company: Tesco) (jonnydep)

Attached files:

Rate this post
0 useful
not useful
I am designing a simple synth with Arduino (just the Atmega IC) and it 
works fine. The only thing is this annoying clicks I barely hear 
constantly if I raise the volume somewhat.

I had this problem in the past that's why I was trying to fix it by 
designing the PCB, separating 3 ground sectors in digital and analogue 
parts on one side of the PCB. In theory that should stop the digital 
part contaminating the analogue part. It seems it didn't quite worked 
because I can still hear the clicks.

There are two things making clicks at the same time, according to my 

  [1] the Atmega crystal: If I remove the Atmega IC, that click stop. 
**UPDATE: **That click was caused by the Atmega program. But I still 
have this other midi click sounds:

  [2] the Midi messages: When Midi is not connected, there is no click. 
After each midi message is sent (a note or clock i.e) I hear a click. 
For example the clock makes a constant stream of clicks and are sped up 
if I increase the tempo on the master device sending the BPM. If I take 
the Atmega IC and send midi messages, I can hear the clicks, so it's 
independent of it. That's why I'm thinking it's a PCB design issue

To strip down the problem I removed the LM358( 
http://www.kynix.com/Detail/1319286/LM358.html ) part where the 
"scissors" are in the schematic picture and I just get the output from 
where it says PWM, that's just the output from the atmega IC.

So, my question is: Do you see any PCB design flaws? What could be 
causing the click noises?


von beric (Guest)

Rate this post
0 useful
not useful
My guess is that the Atmega is temporarily "overloaded" when a MIDI 
message comes in, causing a drop in the PWM output. Instead of 
listening to the PWM output, I'd attach a scope and look at it.


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.