boligrafoe

unplugged d0 and d1 programmed it and then replugged them both in? cool. however still no print out in arduino.app when i twist the pot. typically i see a stream of data in the sketch window when i test stuff like this? but i haevtn really looked at this guys code to see if thats how its setup.

by the way youre a champ for helping me with all of this jazz!

i forgot to mention on the last image i took out the pot to make it less confusing looking.

Daniel

i think we can just thank god that you didn't blow up...It only too me two minutes to help, as I'm designing a web site and when my email went 'ding' it was a good distraction. I guess that's what the team means by the "support" that they provide for official Arduino products.... i.e. support by someone other than the team. Ok, ok , they're paying for the hosting.

Quote

beginSerial(9600);

that's wrong, check the reference and comment out the other serial command and it should work.

Serial.println(bin[count]); in the serial inspecting window i did get it counting 0 1 10 100 101 110 111 etc.

Lastly i moved the jumpers from the 4051 to only occupy d2 d3 and d4 so that way no more unplugging and plugging back in every time i reprogram the arduino. it also seem according to this code that 2 3 and 4 are the ones hes calling as per this line

boligrafoe

whoops. sorry. hopefully this isn't way more hand holding than you counted on? i'm just hoping i haven't bit off more than i can chew. switched that code out. but in looking at the code i don't think there is anything to tell the arduino.app to read the pins when a pots values change. now this is the part i'm confused about do i use an analog read http://www.arduino.cc/en/Reference/AnalogRead which would only check the values coming out of the 4051 into the a0 port. or do i read all the values from the digital pins ? http://www.arduino.cc/en/Reference/DigitalRead. seems like analog since the digital pins are all 1/0 rather than variable.

thanks again for all your help i really do appreciate it. and i think if we get this thing rolling it could serve as a rad tutorial for other folks step by step wise.

currently it checks the pot to see if its been moved about half way and then it prints the value. otherwise it prints "off" what i need to figure out how to do is get ti to cycle through all the different ports and read out the values individually. im also beginning to think that maybe having the arduino spit out midi itself is a better way to go than have max read the pots and then translate it to midi. this might even be a faster application?

Hi, got mine from maplin ( HEF 4051 BP ).At first I tried to follow your pictures and the tutorial but I was confused.Your pictures relate to the right hand diagram from the tutorial ( logic symbol ). That's what confused me.I followed the left hand diagram ( pin configuration ) and only the tutorial and now it works like a charm.Obviously I had to had a analogueRead to read the thing. I think all your trouble scared me

Daniel:I don't understand why the tutorial as a beginSerial instead of the Serial.begin. Is it because of a old version, or the code is for wiring?And I didn't use any capacitor.

Tomorrow I will try to adapt the capacitive thing to the multiplex.

Do you think that one of us should do a simple tutorial with pictures on how to wire a multiplex and rewrite the code so it actually do something when the arduino is wired properly. I am happy to do it, but I won't do it directly as I have lot of work. I still don't know what pin 6 and 7 (E and Vee) are for, ground access ?

boligrafoe

wow thats awesome that you have had so much success? my problems stem strictly from the fact that i am learning all this stuff as i go. if you post your solution for mulitplexing that i can follow i will happily document it and post it. i have alot of work to do too? but frankly this is more fun

edit: i should mention i did get it working to a degree? i just have no idea how to get the data out of arduino into something useful like max or even midi.

ACTUALLY: could you show me what your analog read looks like? Im mostly curious how you are separating the different inputs since they are all coming in on the same analog input.

Oh I wasn't trying to show of. I am also learning as I am doing it. I think I am so happy to have this working that I had to say it.It's really a pain when you are a newbee like me and you don't have any pictures to look at in a tutorial. I think I will take the time to do a small one with picts.

Making it talk to Max is also my next step after the capacitive thing. I hope I will be as lucky. Your midi idea might be a good one actually.Are you going to try with this tutorial ? http://itp.nyu.edu/physcomp/Labs/MIDIOutput

little-scale

Hey Boli, I got your comment on my blog regarding the multiplexing. I have not been following this thread, so I don't know exactly what has been happening. However, I have implemented a simple sketch / patch / breadboard combo of multiplexing two 4051s into the Arduino and reading the data in Max/MSP. I am assuming that this is something similar as to what you were asking.

Anyway, you can see what i have done so far in a very simple example with 2 4051s. But i have to run off to work now, so i'm afraid that is it for a while from me at least. But i will be back - hopefully whip up slightly better code etc.