Loading...
  Show Posts
Pages: 1 2 [3]
31  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: extenion for more knobs on: August 24, 2006, 04:03:45 pm
hello,
im trying to use the multiplexer below.
my question is how to calculate binary numbers out of decimal chiffres.
greetings
woo

Quote
hello vedran

let's take the mc14067 (http://www.onsemi.com/pub/Collateral/MC14067B-D.PDF) as an example
this is an 16 channel analogue multiplexer. i've use this a lot of times.

the code will look like this:

for (i=0; i <16; i++) {
  write i in binary on 4 output pins
  this selectes the input

  val = analogRead(0)
  store val somewhere or send it on
  the serial port

}



32  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: 'midi in" project.... on: September 23, 2006, 07:02:50 pm
i got it working.
partwise.
that means im only able to read the second byte of the midi byte stream. like:
if (serbyte == 61) {
    digitalWrite(ledPin2, HIGH);
    }
  if (serbyte == 73) {
    digitalWrite(ledPin2, LOW);
    }
  
 if (serbyte == 62) {
    digitalWrite(ledPin3, HIGH);
    }
  if (serbyte == 74) {
    digitalWrite(ledPin3, LOW);
    }

..... and so on
that means its just the note number wich is recognized, neither channel nor volume/noteOn/noteOff bytes.
in this code example i use one note to turn on the LED, anotherone to turn it off...
but im already a little bit happy, like this i can read notes. only problem at the moment: there must not be some other midisignals on the wire if yes--big trouble! because theres no channel separation.



greets
woo
33  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: 'midi in" project.... on: July 10, 2006, 09:11:30 am
hi,

i use the same shematics, and it works.
But i spend a lot of time, searching for the reason why nothing happens: finally (Oh Lord!) i confused the direction of the midi jack! (its not easy to be supid like this...)
in this shematics, you don't see the the jack, the part on your breadboard.
its the connector, the cabel wich is shown.
perhaps this helps.
sometimes life is happy:)
greetz
34  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: play sound files with arduino on: September 17, 2006, 05:54:28 pm
Quote
if you want to i could send you a tutorial by Marcus Hannerstig (from k3).
 
regards
tomek

hello,
im very interrested in that.
could i read it as well?

chers
woo
35  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: atmega16 unstead atmega8 on: September 10, 2006, 04:15:25 am
hello
can i use the atmega168 on the normal atmega8 arduino board?  because there is also an DIP version of it. it seems to be almost similar.
 
woo
36  Forum 2005-2010 (read only) / Frequently-Asked Questions / what happens if i make a math division? on: June 11, 2006, 07:59:04 pm
what happens if i make a math division wich causes a float?
e.g. 7 / 2 = 3.5 or 3 or 4
or does it crash the programm?

greetz
woo
37  Forum 2005-2010 (read only) / Frequently-Asked Questions / Arduino-Max/MSP on: March 07, 2006, 03:38:59 am
Hello,

i just started to expereince my new arduino board -try and error methods...
i did already manage to read data in Max/Msp via the "serial" object from the arduino board, but it seems to be that im too stupid to send things to Arduino. there is something which is sent, but i dont know what..
for the beginning i just want to send the little easy letter "H" to the board to follow the examples of the arduino software.
could anyone give me a hint how to manage this? do i have to use Ints?
the "serial" object can handle the Bitsize/stopbits, do i have to change something?


woo
Pages: 1 2 [3]