Build Your Own Clone Message Board

It is currently Thu Mar 28, 2024 2:24 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Aug 08, 2014 5:26 pm 
Offline

Joined: Fri Aug 08, 2014 5:18 pm
Posts: 3
Hey, I'm new here but a post a little on OSG, madbean, and ILF.

I've just started my adventure with microcontrollers. I'm having a little play with my Arduino and I eventually plan to upload (right term?) the code to a microcontroller.

My n00b question is; would using a single microcontroller for relay switching and a LFO cause excess noise and/or reliability issues?


Top
 Profile  
 
PostPosted: Wed Aug 13, 2014 10:43 am 
Offline
Site Admin
User avatar

Joined: Sun Jan 22, 2006 1:39 pm
Posts: 5983
Location: Richland, WA
ThePastRecedes wrote:
Hey, I'm new here but a post a little on OSG, madbean, and ILF.

I've just started my adventure with microcontrollers. I'm having a little play with my Arduino and I eventually plan to upload (right term?) the code to a microcontroller.

My n00b question is; would using a single microcontroller for relay switching and a LFO cause excess noise and/or reliability issues?


Well....I'm a noob too. I'm sort of working on something similar in so much as I'm trying to make the MCU do multiple functions at the same time without interrupting each other.

I really don't know anything about Arduino and I'm not sure if you would be capable of doing this in Arduino. Ironically, what you want to start learning about is called an "interrupt".

It needs to be done in assembly language for it to work well. Higher level languages like BASIC and Arduino can't seem to do it. http://darreltaylor.com/DT_INTS-14/intro.html This is an example of some interrupt programs. Unfortunately for you, this example only works with the PBP compiler. With this, you upload the ASM program files to your compiler. These are called DEFINEs. You then write your code in whatever language your compiler uses, but you can write in commands to call these functions that are written in ASM. So, yes, you can make an mcu do more than one thing at once. In that example, there are interrupt programs for making the mcu recognize a button, and perform Pulse Width Modulation, which is exactly what you seem to want to do. There is probably something very similar to this for Arduino.

That being said, the cost of using 2 separate lower end mcu instead of using a single higher end mcu to do what you are proposing is probably a wash and would be much less complicated. Unless you're trying to do something with multiple relays that can save multiple LFO/loop presets, I'd look into keeping the two functions on separate mcu.

_________________
*patience is a virtue*

Please do not PM me. email is prefered. keith@buildyourownclone.com


Top
 Profile  
 
PostPosted: Sat Aug 16, 2014 3:52 pm 
Offline

Joined: Fri Aug 08, 2014 5:18 pm
Posts: 3
byoc wrote:
That being said, the cost of using 2 separate lower end mcu instead of using a single higher end mcu to do what you are proposing is probably a wash and would be much less complicated. Unless you're trying to do something with multiple relays that can save multiple LFO/loop presets, I'd look into keeping the two functions on separate mcu.


This what I'll probably end up doing. Cost isn't a huge huge factor since this mainly a personnel project and maybe I'll give details for other DIYers if it turns out nicely. I'll have 2 LFO 90ยบ out of phase and stereo relay switching so I'm sure it'll make my life easier.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group