electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
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 
 Forum index » DIY Hardware and Software » Arduino
Tap Tempi Arduino Style
Post new topic   Reply to topic
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: 1310
Location: Netherlands
Audio files: 30

PostPosted: Mon Aug 31, 2020 12:54 pm    Post subject: Tap Tempi Arduino Style
Subject description: description
Reply with quote  Mark this post and the followings unread

I call this module TAP TEMPI because it outputs several tempos (aka tempi).

First there is a three position switch which positions corresponds with three settings for the internal clock:
upper position: interrupt time flag is set every 1mSec
mid position: interrupt flag is suppressed
down position: interrupt flag is set every 0.5mSec
The up and down positions only have effect when using the TAP switch for setting the base tempo!
There are two ways to set the base tempo: By means of a clock input (5 volt) or by pushing the TAP switch twice.
The Arduino will measure the time between two TAP's (or two positive going edges from the Trig IN input.
On the TAP input to the Arduino there is a de-bounce RC filter formed by R7, C1 (100NF) and the internal pull-up resistor of PD3.
When this is done, the Arduino calculates the timing for the x1 (base frequency), the x2 (double frequency), x3 (triple the base frequency) and x4 (quadruple the base frequency).
Also there are four momentary push-buttons to chose one of the frequencies to output to the Chose output.

I use an Arduino NANO for this but didn't use the Arduino IDE, instead I used ATMEL Studio for this project.



Schematic Tap Tempi.pdf
 Description:

Download (listen)
 Filename:  Schematic Tap Tempi.pdf
 Filesize:  148.85 KB
 Downloaded:  355 Time(s)


TEMPI.txt
 Description:
This is the program used in TXT format

Download (listen)
 Filename:  TEMPI.txt
 Filesize:  5.46 KB
 Downloaded:  328 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
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 » Arduino
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


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use