-
plankton3.14
Hello everybody,
I'm running a pd patch on a headless raspberry pi. All my patches work fine except this one as it is controlled with keyboard via [key]. Maelstorm explained in another post that this was due to the fact keyboard is taken in consideration only on the GUI App. I've tried is suggestion to use the [hid] command and still have the same problem. Also the [hid] command seems to bug the raspberry.
Any sugestion ? Did someone was able to control a patch with keyboard on a headless raspberry ?
Many thanks for your help.
Best.
-
plankton3.14
Hi All,
I am working on a project which need multiple .wav samples to be played at the same time.
They are activated via buttons, hundred of them.At the moment I'm working on a solution using Raspberry pi, pduino, arduino and multiplexer, but was wondering if anyone would have a better solution.
Maybe midi would work, but seems quite complicated to setup.
At the moment, I've connected everything without multiplexer and it's working, but I'm a bit afraid of the complexity with multiplexer.
Any advice would be more than welcome.
Best,
Pi.
-
plankton3.14
Hello,
If I understood your problem well, I would advice you to check PDuino. By connecting an arduino to your raspberry pi, you can interact easily with physical stuff. Arduino is connected to the raspberry via an SPI interface oyu can managed in Pure data using the PDuino patch.
Best,
Plankton
-
plankton3.14
I found a solution which is working perfectly, using Pduino to interact with the raspberry. Instead of using the keyboard, I built my own one connected to arduino, and then using pduino to interact with my patch. Patch autostart perfectly, as well as Pin mode of the arduino which is setup using a loadbang and message to choose the value.
-
-
plankton3.14
Are you using motor or servo motor ? If you want to control speed of a motor, it seems that you are talking about a simple motor. The servo motor has 3 pins : on for 5V, one for Ground, and one to output pin (signal to control the angle). On your motor, the 2 pins are V+ and ground. how much voltage your engine could take ?
If you run a 5V motor, I think you can connect it straight to a PWM input pin. From there, you should be able to control the pin with Pduino.
Please send a pic of your motor if you want more help.
Otherwise, check links below:
https://sites.google.com/site/arduinosoapy29/motor-speed-controller
http://www.instructables.com/id/Simple-2-way-motor-control-for-the-arduino/
-
plankton3.14
Thanks for your answer. To check how much CPU is being used will be very useful.
Regarding execution of triggers, the thing is they could be activated randomly as well, from one at a time to 100.
Ok , I thnik I am not clear enough , sorry for that : imagine 100 tilt sensors running all at the same time. Depending on how many sensors are hit, similar quantity of samples is activated, one for each sensor.
I will seach on my side and keep you updated. Many thanks for your help.
-
plankton3.14
Hi Alexandros, I was thinking to use you patch instead of pduino, as it seems to work quite well.
By buttons, i was simply saying activator. In reality, it's not button activated by hand, but moving objects which could simultaneously activate 100 samples.I am just wondering if pure data on a raspberry pi will handle 100 signals at the same time.
-
plankton3.14
By the way, When I'm saying everything is connected at the moment, I'm speaking of 4 buttons, an arduino, a raspberry pi. 4 samples are well played.
Now , need to connect 100 buttons ...
-
plankton3.14
Great post Alexandros ! Tks. If you have any advice could you please have a look to my post dated today. Many thanks in advance.