-
Chitch
@whale-av Thank you so much, David! Your code works great now What I did was to simply create another [t a b] object that connected the inlet to the [moses 9] to access the accelerometer values. And yeah, we really weaved a web bigger than Charlotte's in our code
-
Chitch
@whale-av Your suggestion prints out the values exactly how we wanted them to, but only button 1 seems to work now :/ . Does anyone have any idea why that could be? I've attached my current Plswork.pd code to this reply.
-
Chitch
@whale-av an example of what the message would look like if button 3, 4 and 5 were pressed would be 0034500 rather than 0000345 as it does now, with the highest number always being on the last spot. Instead we want 5 in the fifth spot, 4 in the fourth spot and so forth for every button. Does it make more sense now?
-
Chitch
@weightless Yes, Arduino sends the state of each button to the Pure Data patch; 0 if it is not being pressed and the number assigned to the button when it is pressed (e.g 1 is assigned to 1, 2 is 2 and so forth).
We are using 7 buttons and one accelerometer that sends three values. While the accelerometer works just fine, we want to always print the buttons values in the correct position, so that 1 will always be on the first spot, the 2 on the second one and so on rather than just in a ascending way.
-
Chitch
My group is in the process of programming a PureData code that reacts to buttons and an IMU sensor connected to an Arduino.
The buttons send values from 0-7 (0 always being the LOW state), currently we have sorted the list of incoming values by ascending order (so 0000001 or 0000012). However, we want to control the nth value of the incoming numbers because we want it to look more like (1000007 or 1200007).
We've looked everywhere and tried almost all of the objects in the PureData object list. Do you have any suggestions? (I have attached our current code). Plswork.pd