Build sketches? Ardcore Expander?

Discussion and Support for our Atmospheric Modification Devices.

Moderators: Kent, infradead, loss1234

Post Reply
User avatar
jenz
Voltage Controlled Corpse
Posts: 1059
Joined: Fri Feb 21, 2014 1:46 am
Location: La belle province

Build sketches? Ardcore Expander?

Post by jenz » Fri Dec 19, 2014 10:48 pm

I woukd like to program my own sketches... How do I do that? Where did you learn? What's the language?

So many questions :zombie: :despair:

I use a lot of sketches from 20 objects and others and I was asking myself :do I need the expander since I have traded my Timetable... I want to buy a gate seq, maybe the triger riot but don't have the funds. Is the expander only for gates or It can send some other stuff?

User avatar
eclectics
Wiggling with Experience
Posts: 360
Joined: Sat Oct 05, 2013 10:32 am
Location: Melbourne

Post by eclectics » Fri Dec 19, 2014 11:43 pm

I learned by knowing how to program already and adapting what I know to the arduino and ardcore environments. Probably not helpful.

There's a lot of material at arduino.cc; if you look over some of that ie http://arduino.cc/en/Guide/HomePage at look over the sketches that are in the original repositories and that have been provided here -- see the complete ardcore sketch forum thread it should be a good start.

Lots of sketches are very very easy to create and modify, once you have your head around the basics. And if you have questions, ask them here -- people are very helpful.

The expander is great for gates and triggers, but it's aso got a couple of other in and out ports. I also find it useful to be able to see what's going on with the dac.

User avatar
jenz
Voltage Controlled Corpse
Posts: 1059
Joined: Fri Feb 21, 2014 1:46 am
Location: La belle province

Post by jenz » Sat Dec 20, 2014 9:10 am

I have checked the code in some sketch but did not understand it... Never really did some code... I'll check the arduino forum for shure!
Thanx man!!!

loss1234
Wiggling with Experience
Posts: 304
Joined: Sat Sep 12, 2009 11:29 pm

Post by loss1234 » Sat Dec 20, 2014 10:39 am

I learned to program with the help
Of looking at code (mainly Darwin's original 15-20
Programs ) , taking it and editing it and seeing
What happened and then cutting and pasting

And I read other Arduinoo code too


All the functions you need to get going are in
The github library

I also got a few good books on C ( many are
Free online!! )

And you don't need the expander to start
Thnx

User avatar
jenz
Voltage Controlled Corpse
Posts: 1059
Joined: Fri Feb 21, 2014 1:46 am
Location: La belle province

Post by jenz » Sat Dec 20, 2014 10:40 am

Any hints in C books?

User avatar
hangovercat
domestic party animal
Posts: 173
Joined: Mon Apr 09, 2012 5:37 pm
Location: Toronto, Canada

Post by hangovercat » Tue Feb 03, 2015 11:47 pm

I am about halfway through this book which was recommended to me by a friend who makes his living developing embedded processors:

http://www.amazon.com/Beginning-Arduino ... 1430247762

It's quite readable and even entertaining at times.
"An idea isn't responsible for the people who believe in it." – Don Marquis

ModularGrid
BandCamp
SoundCloud

User avatar
jenz
Voltage Controlled Corpse
Posts: 1059
Joined: Fri Feb 21, 2014 1:46 am
Location: La belle province

Post by jenz » Wed Feb 04, 2015 12:50 am

Will definitely check that book... Thanx!

User avatar
hangovercat
domestic party animal
Posts: 173
Joined: Mon Apr 09, 2012 5:37 pm
Location: Toronto, Canada

Post by hangovercat » Wed Feb 04, 2015 11:04 pm

While we're here talking about sketches for the Ardcore, what's the maximum usable resolution people have gotten out of the analogue input knobs? I have an idea that would require a full byte of data selection, but I think that might be kind of ambitious.
"An idea isn't responsible for the people who believe in it." – Don Marquis

ModularGrid
BandCamp
SoundCloud

User avatar
soundwave106
Super Deluxe Wiggler
Posts: 1728
Joined: Thu Dec 16, 2010 10:16 pm

Post by soundwave106 » Thu Feb 05, 2015 8:55 am

hangovercat wrote:While we're here talking about sketches for the Ardcore, what's the maximum usable resolution people have gotten out of the analogue input knobs?
Ardcore (and Arduino) is 10 bit on the input reads, so 0-1023 over 5V. The expander's bipolar outputs offers -1023-1023 if I recall.

The output is 0-256 (8 bit) but for math convenience it looks like Ardcore sets 5V @ 240 instead of 256.
BC | SC

User avatar
eclectics
Wiggling with Experience
Posts: 360
Joined: Sat Oct 05, 2013 10:32 am
Location: Melbourne

Post by eclectics » Fri Feb 06, 2015 10:08 am

In terms of control I've found it useful to output the pot value to the expander LEDs to see how fiddly dialing in values is. You can always to a coarse/fine setup with the pots.

User avatar
hangovercat
domestic party animal
Posts: 173
Joined: Mon Apr 09, 2012 5:37 pm
Location: Toronto, Canada

Post by hangovercat » Thu Feb 19, 2015 8:05 pm

Thanks for the tips guys. 256 is entirely reasonable resolution as it turns out. I started a new thread for the sketch I was making, which is a pattern generator called "Binary Beats". I scaled the inputs down by a factor of 4 and printed the output to the serial monitor to test. It takes a bit of fine wiggling but you can hit all the values pretty reliably.
"An idea isn't responsible for the people who believe in it." – Don Marquis

ModularGrid
BandCamp
SoundCloud

Post Reply

Return to “SNAZZY FX”