Commit 9e23e710 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

more clean-up, added help files for raspberry pi K12 objects

parent d0311652
#N canvas 289 30 507 597 10;
#X obj 375 -29 preset_hub k12 %hidden% %node% 2 5 5 %node% 2 6 7 %node%
2 6 7 %node% 2 7 5 %node% 2 7 4 %node% 2 7 14 %node% 2 8 7;
#X obj 134 38 cnv 15 478 292 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 123 -7 cnv 3 501 3 empty empty empty 5 14 0 20 -260097 -191407
0;
#X obj 123 -35 cnv 15 501 28 empty empty RaspberryPi/AnalogIn 5 14
0 20 -139274 -262144 0;
#X obj 594 -4 ggee/image @pd_extra/K12/icons/l2ork.png 0;
#N canvas 398 289 382 201 META 0;
#X text 6 71 OUTLET_0 Receive data (0-1023) from a desired Raspberry
Pi analog channel (0-7).;
#X text 7 5 DESCRIPTION This is used to get the analog data from the
Modern Device's Raspberry Pi Lots of Pots shield using MCP3008 analog-to-digital
converter. Specify channel (0-7) to connect. Use channel -1 to disconnect.
;
#X restore 571 535 pd META;
#X obj 143 353 K12/math_number;
#X obj 144 47 K12/raspberrypi_analog_in;
#X text 240 44 The Raspberry Pi Analog Input object allows for receiving
analog data. It achieves this by leveraging Modern Device Lots of Pots'
(LOP) onboard MCP3008 digital-to-analog converter. Channel -1 is reserved
for "off" position. The remaining 8 channels (0-7) correspond to analog
inputs (in order found on Modern Device's Lots-of-Pots shield). To
change channel \, click on the channel number and enter new one (between
0 and 7) or click on the number and while holding the mouse button
down \, drag it up and down. If the object has successfuly connected
to the desired analog channel \, the logo will light up. Once connected
\, the object will output captured analog sensor data up to one hundred
times per second with values ranging between 0 and 1023 (a total range
of 1024). NB: Modern Device LOP board comes in two flavors \, equipped
with 8 pan pots (one assigned to each analog channel) \, or as a "naked"
(NOP) board that allows for easier access to pins.;
#X obj 370 421 ggee/image @pd_extra/K12/images/lop_board.png 0;
#X obj 149 497 pddplink http://moderndevice.com/product/lots-of-pots-lop-board-for-raspberry-pi/
;
#X connect 7 0 6 0;
#N canvas 289 30 507 641 10;
#X obj 375 -39 preset_hub k12 %hidden% %node% 2 5 5 %node% 2 6 7 %node%
2 6 7 %node% 2 7 5 %node% 2 7 4 %node% 2 7 14 %node% 2 8 7 %node% 2
7 3;
#X obj 134 98 cnv 15 479 265 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 123 -17 cnv 3 501 3 empty empty empty 5 14 0 20 -260097 -191407
0;
#X obj 123 -45 cnv 15 501 28 empty empty RaspberryPi/AnalogOut 5 14
0 20 -139274 -262144 0;
#X obj 594 -14 ggee/image @pd_extra/K12/icons/l2ork.png 0;
#N canvas 395 435 382 201 META 0;
#X text 7 5 DESCRIPTION This is used to get the analog data to Raspberry
Pi's GPIO outputs using PWM algorithm. Specify channel (1-10) to connect.
Use channel 0 to disconnect.;
#X text 6 71 INLET_0 Send data (0-1023) to a desired Raspberry Pi analog
channel (1-10).;
#X restore 571 568 pd META;
#X obj 144 22 K12/math_number;
#X obj 144 107 K12/raspberrypi_analog_out;
#X obj 370 451 ggee/image @pd_extra/K12/images/lop_board.png 0;
#X obj 149 527 pddplink http://moderndevice.com/product/lots-of-pots-lop-board-for-raspberry-pi/
;
#X text 240 104 The Raspberry Pi Analog Output object allows for sending
analog data using GPIOs in combination with Pulse Width Modulation
(PWM) algorithm. PWM produces values between on and off states by quickly
switching on and off up to 1000 times a second. This is particularly
effective when using the object in combination with an LED. Channel
0 is reserved for "off" position. The remaining 10 channels (1-10)
correspond to GPIO pins (in order found on Modern Device's Lots of
Pots shield). To change channel \, click on the channel number and
enter new one (between 0 and 10) or click on the number and while holding
the mouse button down \, drag it up and down. If the object has successfuly
connected to the desired analog channel \, the logo will light up. Once
connected \, the object will be capable of sendin voltage to its output
up to a thousand times per second with values ranging between 0 and
1023 (a total range of 1024).;
#X connect 6 0 7 0;
#N canvas 283 24 507 634 10;
#X obj 375 -29 preset_hub k12 %hidden% %node% 2 5 5 %node% 2 6 7 %node%
2 6 7 %node% 2 7 5 %node% 2 7 4 %node% 2 7 14 %node% 2 8 7;
#X obj 139 109 cnv 15 469 262 empty empty empty 20 12 0 14 -233017
-66577 0;
#X obj 123 -7 cnv 3 501 3 empty empty empty 5 14 0 20 -260097 -191407
0;
#X obj 123 -35 cnv 15 501 28 empty empty RaspberryPi/Digital 5 14 0
20 -139274 -262144 0;
#X obj 594 -4 ggee/image @pd_extra/K12/icons/l2ork.png 0;
#N canvas 372 215 409 223 META 0;
#X text 6 5 DESCRIPTION This is used to get the digital data to and
from the Rasbperry Pi GPIOs (ideally using Lots of Pots shield).;
#X text 8 38 INLET_0 Send data (0 or 1) to desired Raspberry Pi GPIO
pin.;
#X text 7 58 OUTLET_0 Receive data (0 or 1) from a desired Raspberry
Pi GPIO pin.;
#X restore 568 570 pd META;
#X obj 146 393 K12/math_number;
#X obj 147 117 K12/raspberrypi_digital;
#X obj 147 26 K12/math_number;
#X text 240 114 The Raspberry Pi Digital object allows for both sending
and receiving digital data. The object can do either one or the other
but not both at the same time. To set the input/output preference
\, click on the "i" or "o" box. The highlighted box will be the one
currently active. Channel 0 is reserved for "off" position. The remaining
10 channels have corresponding GPIO pins (in order found on Modern
Device's Lots of Pots shield). To change channel \, click on the channel
number and enter new one (between 1 and 10) or click on the number
and while holding the mouse button down \, drag it up and down. If
the object has successfuly connected to the desired GPIO pin \, the
logo will light up. Depending on the direction \, the object will
either await user input (0 or a 1) or will output 0 or a 1 up to one
hundred times per second.;
#X obj 370 460 ggee/image @pd_extra/K12/images/lop_board.png 0;
#X obj 149 536 pddplink http://moderndevice.com/product/lots-of-pots-lop-board-for-raspberry-pi/
;
#X connect 7 0 6 0;
#X connect 8 0 7 0;
#N canvas 257 133 436 499 10;
#X obj 292 314 outlet;
#N canvas 257 133 436 523 10;
#X obj 292 333 outlet;
#X obj 228 45 ggee/image @pd_extra/K12/objects/raspberrypi_gpio_digital_off.png
1;
#X obj 221 -161 loadbang;
......@@ -38,12 +38,14 @@
#X msg 407 164 unexport;
#X text 231 75 i;
#X text 246 75 o;
#X obj 527 247 change;
#X obj 292 309 change;
#X connect 3 0 4 0;
#X connect 3 0 27 0;
#X connect 4 0 3 0;
#X connect 5 0 20 0;
#X connect 5 0 28 0;
#X connect 6 0 0 0;
#X connect 6 0 33 0;
#X connect 6 1 26 0;
#X connect 7 0 10 0;
#X connect 7 0 11 0;
......@@ -55,7 +57,7 @@
#X connect 12 0 13 0;
#X connect 13 0 6 0;
#X connect 14 0 7 0;
#X connect 15 0 6 0;
#X connect 15 0 32 0;
#X connect 16 0 24 0;
#X connect 16 1 25 0;
#X connect 17 0 6 0;
......@@ -71,4 +73,6 @@
#X connect 28 0 29 0;
#X connect 28 1 18 0;
#X connect 29 0 6 0;
#X connect 32 0 6 0;
#X connect 33 0 0 0;
#X coords 0 -1 1 1 89 89 2 183 13;
#N canvas 289 30 502 438 10;
#N canvas 289 30 508 443 10;
#X obj 375 -29 preset_hub k12 %hidden% %node% 2 5 5 %node% 2 6 7 %node%
2 6 7 %node% 2 7 5;
#X obj 139 149 cnv 15 468 104 empty empty empty 20 12 0 14 -233017
......@@ -7,13 +7,13 @@
0;
#X obj 123 -35 cnv 15 501 28 empty empty Sarcduino/Digital 5 14 0 20
-139274 -262144 0;
#X obj 594 -4 ggee/image @pd_extra/K12/icons/l2ork.png;
#N canvas 456 27 450 514 META 0;
#X obj 594 -4 ggee/image @pd_extra/K12/icons/l2ork.png 0;
#N canvas 387 214 385 225 META 0;
#X text 8 38 INLET_0 Connect the Sarcudino Connect object to this inlet.
;
#X text 7 58 OUTLET_0 Connect this to any math or instrument objects.
;
#X text 6 5 DESCRIPTION This is used to get the Digital data from the
#X text 6 5 DESCRIPTION This is used to get the digital data from the
Arduino.;
#X restore 571 379 pd META;
#X obj 147 277 K12/math_number;
......
......@@ -26,6 +26,6 @@ selected axis' acceleration and direction. Its output can be used in
data calculations or to drive an instrument (e.g. control how loud
it is based on wiimote motion. Click on one of the three buttons to
select x \, y \, or z axis as your source. ;
#X obj 282 409 image @pd_extra/K12/icons/wiimote_axes.png 0;
#X obj 282 409 image @pd_extra/K12/images/wiimote_axes.png 0;
#X connect 2 0 8 0;
#X connect 8 0 4 0;
......@@ -27,6 +27,6 @@ direction. Its output can be used in data calculations or to drive
an instrument (e.g. control how loud it is based on wiimote motion. Click
on one of the three buttons to select x \, y \, or z axis as your source.
;
#X obj 278 409 image @pd_extra/K12/icons/wiimote_axes.png 0;
#X obj 278 409 image @pd_extra/K12/images/wiimote_axes.png 0;
#X connect 2 0 8 0;
#X connect 8 0 4 0;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment