Intro to digital programming?

Do-it-yourself pedal building

Moderator: Ghost Hip

Forum rules
The DIY forum is for personal projects (things that are not for sale, not in production), info sharing, peer to peer assistance. No backdoor spamming (DIY posts that are actually advertisements for your business). No clones of in-production pedals. If you have concerns or questions, feel free to PM admin. Thanks so much!
Post Reply
User avatar
Teej212
FAMOUS
FAMOUS
Posts: 1675
Joined: Sun Jun 14, 2009 5:08 pm
Location: NJ

Intro to digital programming?

Post by Teej212 »

Can someone point me in the right direction to get started in writing code? would arduino be a good place to start? I just figure theres so much you can do with digital stuff, and i have had some pedal ideas cooking...
User avatar
Craiz
interested
interested
Posts: 21
Joined: Tue Dec 06, 2011 6:28 pm

Re: Intro to digital programming?

Post by Craiz »

http://www.codecademy.com/#!/exercises/0

I don't code, but this site showed me some of the basics. It's actually pretty fun.
I've always said that if I had two monocles, I'd make a spectacle of myself.
User avatar
Schlatte
IAMILF
IAMILF
Posts: 2667
Joined: Mon Aug 08, 2011 3:27 pm
Location: Austria

Re: Intro to digital programming?

Post by Schlatte »

Arduino is a good starting point. It's open source and there are tons over tons of tons of examples available for free.
I would just get an Arduino board (they're cheap too :joy: ) and try some easy examples. It is important that you understand what the code does, not just copy and paste.
Get used to for() while() if() etc. functions, learn the "grammar" of C, like declaring variables and variable types, arrays and so on... But also get used to the hardware! ADC, PWMs, bus systems and communicating with a PC.
It's also great for starting because of all the "shields" that are out there. Shields are just little piggyback circuit boards that you attach to your arduino, and there are tons of them out there. Some are expensive, most of them are fairly cheap. From ethernet, wifi, radio shields to LOL (lots of leds) shields, everything is commonly available. Check ebay for some good deals on all that stuff.
If you want to get deeper into using digital stuff for pedals, you should look for DSP stuff. Maybe you find an arduino DSP shield (like this: http://www.openmusiclabs.com/projects/codec-shield/ ), so you can really dig deeper into signal processing.
Good luck coding!
Good Deals with: All these fine people!

MOM-D Shark Tank is back! Open Source Designs for musical pleasure! Back in the Tank! Go check it out!
User avatar
Gone Fission
IAMILFFAMOUS
IAMILFFAMOUS
Posts: 4804
Joined: Sat Dec 04, 2010 1:50 pm
Location: The ungovernable tribal regions southwest of D.C.
Contact:

Re: Intro to digital programming?

Post by Gone Fission »

The late Keith Barr did this after Alesis: http://www.spinsemi.com/ Pretty handy all-in-one DSP and AD/DA on a chip with some existing circuit boards available. Good knowledgebase and community forum: http://www.spinsemi.com/knowledge_base.html
http://www.spinsemi.com/forum/index.php

(Sean Costello of ValhallaDSP, who does great plugins, is a forum participant there. I've been hoping that he would make a hardware product with the Spin FV-1 -- that'd be the bomb.)
D.o.S. wrote:Broadly speaking, if we at ILF are dropping 300 bucks on a pedal it probably sounds like an SNES holocaust.
friendship wrote:death to false bleep-blop
UglyCasanova wrote:brb gonna slap my dick on my stomp boxes
User avatar
McSpunckle
IAMILFFAMOUS
IAMILFFAMOUS
Posts: 3848
Joined: Mon Oct 06, 2008 10:20 am
Location: Nashville, TN

Re: Intro to digital programming?

Post by McSpunckle »

Mannnn. I've been wanting to ask this for a while.

Gonna have to go through this shiz.
User avatar
cloudscapes
FAMOUS
FAMOUS
Posts: 1159
Joined: Sat Nov 25, 2006 1:41 pm

Re: Intro to digital programming?

Post by cloudscapes »

I wrote a like 2000-word text for someone about this. it gets a bit more technical, but I'll try and find it. it might be on the computer at work
User avatar
Eric!
IAMILFFAMOUS
IAMILFFAMOUS
Posts: 6689
Joined: Sun Jun 27, 2010 1:53 am

Re: Intro to digital programming?

Post by Eric! »

Any news, cloudscapes?
User avatar
spacelordmother
HERO
HERO
Posts: 5717
Joined: Sun May 16, 2010 4:45 pm
Location: Rochester, NY
Contact:

Re: Intro to digital programming?

Post by spacelordmother »

Also -- Teej obviously figured it out. Care to share you methods? :snax:
User avatar
oscillateur
IAMILF
IAMILF
Posts: 2014
Joined: Sun Oct 02, 2011 6:16 am
Location: Tokyo
Contact:

Re: Intro to digital programming?

Post by oscillateur »

To get good at programming :
- learn the basics properly. If you don't understand the building blocks and global paradigms of whatever language you're using, you'll be in pain at some point soon.
- practice, practice, practice, ideally in the field you're interested in. The point is to get used to solving the problems you're faced with in this specific field in an efficient and relevant way.

I mean, there's more to it but that's what it boils down to in the end.
User avatar
Teej212
FAMOUS
FAMOUS
Posts: 1675
Joined: Sun Jun 14, 2009 5:08 pm
Location: NJ

Re: Intro to digital programming?

Post by Teej212 »

lol what a throwback. best way to learn is from experimenting! gonna get an arduino something this summer to kickstart some projects...
User avatar
Strange Tales
IAMILFFAMOUS
IAMILFFAMOUS
Posts: 4499
Joined: Fri Feb 06, 2015 7:14 pm
Location: America's Sorrow: New Jersey
Contact:

Re: Intro to digital programming?

Post by Strange Tales »

oscillateur wrote:To get good at programming :
- learn the basics properly. If you don't understand the building blocks and global paradigms of whatever language you're using, you'll be in pain at some point soon.
- practice, practice, practice, ideally in the field you're interested in. The point is to get used to solving the problems you're faced with in this specific field in an efficient and relevant way.

I mean, there's more to it but that's what it boils down to in the end.


The more to it portion: Fuck Java.
木枯らし // 木漏れ日 // 風に綱は戦ぐ

Strange Tales Distro - Japanese Underground Music Distribution in the US
Invisible Man wrote:Strange Tales: putting the ‘weeb’ in ‘dweeb’ since whenever.
User avatar
oscillateur
IAMILF
IAMILF
Posts: 2014
Joined: Sun Oct 02, 2011 6:16 am
Location: Tokyo
Contact:

Re: Intro to digital programming?

Post by oscillateur »

Well, Java is only useful for a few specific things. I still think you'd be better off learning C++ first so that you're at least familiar with a lot of things that every programmer should be aware of, even if you end up using other languages for which these things are not relevant.

Thinking that there might be programmers out there who do not understand what pointers are makes me shudder... :idk:
User avatar
Strange Tales
IAMILFFAMOUS
IAMILFFAMOUS
Posts: 4499
Joined: Fri Feb 06, 2015 7:14 pm
Location: America's Sorrow: New Jersey
Contact:

Re: Intro to digital programming?

Post by Strange Tales »

I just personally really hate Java and blast it whenever the opportunity arises (or I can just make my own and then blast it). Java killed all love I had for programming in one fell swoop so hard. Can barely retain any C++/VB information at all because fuck it.
木枯らし // 木漏れ日 // 風に綱は戦ぐ

Strange Tales Distro - Japanese Underground Music Distribution in the US
Invisible Man wrote:Strange Tales: putting the ‘weeb’ in ‘dweeb’ since whenever.
User avatar
eatyourguitar
IAMILFFAMOUS
IAMILFFAMOUS
Posts: 3127
Joined: Sun Oct 03, 2010 12:37 pm
Location: USA, RI

Re: Intro to digital programming?

Post by eatyourguitar »

I was going to say SPIN. After that i would say hunt down an aleph on the monome forums. About $1300 gets you a complete blackfin deveopment kit housed with all the analog and digital stuff you could want. Electro harmonix uses black fin. You could really compete with those products if you have the product development skills. Remember that most stuff at WMD and/or det3 (archangel sequencer, digitech etcc) was made by one person each respectively who does absolutely everything. DSPic was used with great success but i dont see it as being very relavent now that arm and blackfin came down in large quantity.
WWW.EATYOURGUITAR.COM <---- MY DIY STUFF
User avatar
multi_s
IAMILF
IAMILF
Posts: 2095
Joined: Mon Feb 15, 2010 9:00 pm

Re: Intro to digital programming?

Post by multi_s »

there is some interesting benchmarks here when looking at either "microcontroller" (arm m3 m4, dispic etc) vs "dsp" chips like black fin from the audio weaver site.

http://www.dspconcepts.com/sites/defaul ... ckmann.pdf

SPIN is ok too., just pretty slow and limited, but very much all in one so that is pretty cool.

DSPic is ok. The fact that Microchip just recently bought atmel blows my mind because i feel like microchip has done nothing other than made a series of bad decisions/released a series of lack luster chips over the last 5 years and should probably just go out of business. instead here they are owning the competition.

s
Post Reply