Arduino INPUT_PULLUP mode

notes

When reading the value of a switch with Arduino, its useful to set the INPUT_PULLUP mode so you don’t need to use an external pullup resistor. By the way, the internal pull-up resistor is 20K ohms.

See this tutorial:

http://arduino.cc/en/Tutorial/InputPullupSerial

If its not clear what a pull-up resistor does,  read the links on this forum post.

http://arduino.cc/forum/index.php/topic,22274.0.html

Everybody has their own way to explain it. I would say that when the switch is open, the pull-up resistor weakly pulls the logic value high, so you don’t get random signal readings.

 

Arduino pachube (cosm) feed for musical stairs

(update) the feed is working – I changed the datastream name from sensor_value to count – and just had it upload a random value every time for testing.

Some initial testing with the Ethernet shield encountered missing libraries when compiling the example sketch which cosm.com provides when setting up an Arduino type feed.

Here is the forum post which explains which libraries are missing:  http://community.cosm.com/node/1694

and here is the helpful quote…

You should try using new official Cosm library for Arduino.

You can download a snapshot zip file here:
https://github.com/cosm/cosm-arduino/zipball/master

You will also need this HTTP library:
https://github.com/amcewen/HttpClient/zipball/master

See here for more details on how to install a 3rd-party
library on different OS:
http://arduino.cc/en/Guide/Libraries

You will find a bunch of usefull examples within the
Cosm library. Please let me know if you have any questions.

Raspberry Pi sound cards

notes

http://elinux.org/RPi_VerifiedPeripherals#USB_Sound_Cards

A post about installing USB sound cards

http://www.raspberrypi.org/phpBB3/viewtopic.php?t=20866

And another – with better detail

http://www.jackenhack.com/raspberry-pi-usb-audio-quality-problems/

http://raspberrypi.stackexchange.com/questions/3888/how-to-install-usb-sounds-adapter

Griffin imic with PD

http://iamthemightyjungulator.blogspot.com/2012/12/raspberry-pi-usb-sound-into-pure-data.html

 

 

dictionaries

notes

 

 

 

 

 

touchOsc plus Arduino

Notes

http://hackaday.com/2011/03/31/using-touchosc-with-your-projects/

Processing + Arduino + touchOSC

uses the p5 library in processing

http://dangerousprototypes.com/2012/01/28/processing-arduino-touchosc/

http://www.urimicrofluidics.com/index.php/arduino/56

This post was the key to making Arduino+EthernetShield work with touchOSC. Without using Processing as an intermediary.  Got it working  tonight and will update this post with details.

http://arduino.cc/forum/index.php?topic=137549.0

 

Web audio from the Soundcloud API

notes

(update) to get your client-id from Soundcloud: From your home page, select more | developers | my apps.

This looks like the easiest way to play streaming content from Soundcloud over the web, Maybe this example could be adjusted to run in Max.

http://stackoverflow.com/questions/13455956/setup-web-audio-api-source-node-from-soundcloud

Example API urls,

this one streams a track: (replace client id with real thing)

http://api.soundcloud.com/tracks/6981096/stream?client_id=CLIENT-ID

This one returns an XML file filled with tracks that can be played:

https://api.soundcloud.com/tracks?client_id=CLIENT-ID

See API reference:

http://developers.soundcloud.com/docs/api/reference#users

(update) Use /resolve to get the user id and user info, given the name – like this:

http://api.soundcloud.com/resolve.json?url=http://soundcloud.com/tkzic&client_id=CLIENT-ID