electro-music.org   Dedicated to experimental electro-acoustic
and electronic music
 
 Front Page  |  Radio  |  Forum  |  Media  |  Playlists  |  Wiki
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
Coming up on Radio 1 at
Twyndyllyngs live on Chez Mosc
 
 Forum index » DIY Hardware and Software » Developers' Corner
Percussion module using a STM32 Blue Pill
Post new topic   Reply to topic Moderators: DrJustice
Page 1 of 1 [1 Post]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Grumble



Joined: Nov 23, 2015
Posts: 1320
Location: Netherlands
Audio files: 32

PostPosted: Fri May 15, 2020 9:18 am    Post subject: Percussion module using a STM32 Blue Pill
Subject description: snare, clap, hihat, cowbell
Reply with quote  Mark this post and the followings unread

I was looking for some percussion modules for my synth and started tinkering.
I'm a fan of the Analog Devices chips (for obvious reasons...) and also in this module I used an Analog Devices DAC to convert the digital samples to the analog domain, an AD5761 16 bits multi range voltage output DAC.
I found samples on the net and used Audacity to trim them to fit the memory of the Blue Pill. After that I used a Labview program to make a nice text output that I could copy and paste into the Arduino code.
The front panels are 3D printed, using a two color methode (I just changed the philament the moment the printer started to print the characters...)

Now I'm not a great programmer, but I get things done, may it not be the best and fastest way, so bare with me...

The PDF file is the schematics, folowed by two .h files containing the samples. In retrospect I could have streamline it more, but it works..
The last .ino file is the Arduino program file.

HERE a small demo youtube flic.


19CBC5C2-ED83-4049-A800-8447BF14D2DD.jpeg
 Description:
 Filesize:  845.47 KB
 Viewed:  537 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

19CBC5C2-ED83-4049-A800-8447BF14D2DD.jpeg



snare.ino
 Description:

Download (listen)
 Filename:  snare.ino
 Filesize:  3.42 KB
 Downloaded:  354 Time(s)


snare_hard.h
 Description:

Download (listen)
 Filename:  snare_hard.h
 Filesize:  76.12 KB
 Downloaded:  340 Time(s)


snare_soft.h
 Description:

Download (listen)
 Filename:  snare_soft.h
 Filesize:  55.3 KB
 Downloaded:  303 Time(s)


percussion module.pdf
 Description:

Download (listen)
 Filename:  percussion module.pdf
 Filesize:  158.63 KB
 Downloaded:  326 Time(s)


_________________
my synth
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: DrJustice
Page 1 of 1 [1 Post]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » Developers' Corner
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Log in
Username:     Password:      Log me on automatically each visit    


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2026 by electro-music.org