That's great news. Congratulations!
dear MR...sorry for keep bothering u, i tried to leave some comment at Arduino forum about the 'sto.1b8b' but no answer so far...so, wud u pls help me again?now i have 8X 4021 chips and they all can be read in Arduino monitor correctly,however my problem is still how to receive the data in MAX/MSP. now the data is a list like '0 0 0 0 0 0 0 0'if i turn on the first button it will be '1'and the last button will be '1 0 0 0 0 0 0 0' i didn't quite understand last time u said u put 'S' and 'E' at the beginning and the end, now i put characters between each byte and i tried to use 'zl group' to receive it but it still unstable. like some times i receive numbers besides 0 and 1.wud u show me again how to recieve them properly? or somebody understand my problem pls let me know, thx....
Yo!Okay, so basically instead of Serial.println("data", BIN); You need to be using printByte("data");Or try Serial.print("data");It will look wrong in the Arduino IDE when you connect to the serial port, but that doesn't matter. Now, in Max/MSP, the sto.1b8b object will take each byte and split it up into 8 bits. Each bit is presented at an outlet. First you should try to get just one 4021 working with max in this fashion. Now, the next problem you have is that if you send more than 1 byte (so, more than 1 4021), you dont know which is the first and which is the second. You can use an identifying byte to determine the byte order (so, for example, everytime you see the byte 'S', you know that the next so and so many bytes are going to be the data, in the order that you send it to max via the Arduino. Make sense? So you just need to find a way to work out the order, and then hey presto! It's go time.
Well done Sebastian:) Does that mean a trip to Ireland is on the cards?
I hope i get to go to ireland.
Post a Comment