Announcement

Collapse
No announcement yet.

PI backend Atmega328P and firmware

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #46
    Updated schematic, DipTrace file and firmware for the digital volume version.

    The median filter had to be scaled back to 5 samples due to the extra overhead by the PWM interrupts.

    Click image for larger version

Name:	Schermopname (389).png
Views:	311
Size:	98.0 KB
ID:	426238


    [ATTACH]n426240[/ATTACH]

    Diptrace file [ATTACH]n426239[/ATTACH]


    Firmware [ATTACH]n426241[/ATTACH]


    Comment


    • #47
      Please excuse the dumb question but I assumed the audio to be a PWM frequency within the selected range in software ie 400-1000Hz. How does the timer convert this high freq PWM to audio?

      Comment


      • #48
        Originally posted by Gunghouk View Post
        Please excuse the dumb question but I assumed the audio to be a PWM frequency within the selected range in software ie 400-1000Hz. How does the timer convert this high freq PWM to audio?
        It's explained here in detail.

        This library is good for any Atmega328P board to generate square waves at controllable volumes. It replaces a mechanical sound pot by programattically setting the volume via a menu and up/down buttons, rotary encoder etc. It can even modulate the sound with attack, sustain and decay to (see examples inlcuded in the library).

        Comment


        • #49
          Ok thanks. Digesting

          Comment

          Working...
          X