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 » Microcontrollers and Programmable Logic
My grid sequencer project
Post new topic   Reply to topic Moderators: State Machine
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
adamon



Joined: May 15, 2009
Posts: 96
Location: Lawrence Kansas
Audio files: 3

PostPosted: Sat Jul 10, 2010 9:51 pm    Post subject: My grid sequencer project
Subject description: using a BS2 as a grid sequencer
Reply with quote  Mark this post and the followings unread

Hello all, I've been asked to write up a bit about my grid sequencer that I finished recently (picture here: http://electro-music.com/forum/phpbb-files/pa210180_968.jpg ) . I suggest you might first read over this explanation about how my system is set up control signal-wise: http://electro-music.com/forum/topic-42914.html .

The sequencer has the following inputs/controls/outputs:

-X clock input
-X direction switch
-X "control direction" input jack and switch for automated direction control

-Y clock input
-Y direction switch
-Y "control direction" input jack and switch for automated direction control

-A 4x4 grid that makes up the 16 steps. Each step has the following:
-Step level knob
-Step indicator led
-Step on/off switch

-Eight control outputs (4 rows and 4 columns) with amount/offset control for each

So the sequencer is made up of just a basic stamp (BS2) and a decoder (74hc154). The x and y clocks advance the step of the current position (there is only one position in the grid active at one time) on the rise of the clocks for the respective directions (left/right for x and up/down for y). The bs2 takes the two clock signals and determines the current position. The bs2 also reads in the direction controls and either adds or subtracts advancing steps depending on the state of the direction controls (a high input equals left and up, low equals right and down for x and y respectively). The bs2 then outputs the current position (in binary) to the decoder. The decoder is an active "low" device, so it serves as ground for all of the step lines.

The individual steps (the grid) is organized as four rows and four columns. Each row and each column has a separate output for the four steps related to that row or column. The outputs are tied to V+, go through the driving side of a vactrol, and then go through the network of steps which are then connected to ground sequentially via the decoder. The rows and columns are interconnected at the level pot for each step, but diodes prevent any signals from getting past the active step.

As far as programming goes, its a pretty basic (no pun intended...) setup: the clocks states are read in, a series of nested for-loops increments the steps (reads in the direction states in these as well to determine + or -), the x,y position is then translated to binary (using the DIR command in basic) with a string of if-statements, and is then output to the decoder. There are definitely limits as to how fast the clock and direction signals can get before there is aliasing, but it works well enough for my intentions.

This was my first crack at incorporating a ucontroller into a module, so its a little "rough around the edges", not to mention the BS2 is basically just a $50 interface to a $5 chip. I'm hoping to learn more advanced programming languages soon and start using PICs directly. I had the bs2 laying around from a class that I took a few years back, and decided it would be a good place to start. I imagine this could probably be implemented without a ucontroller, but I'm more than rusty on my logic diagrams...

_________________
www.soundcloud.com/adamon
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: State Machine
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 » Microcontrollers and Programmable Logic
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