<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: Arduino Guru capacitive sensing</title>
		<atom:link href="http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/feed</link>
		<description></description>
		<pubDate>Mon, 17 Jun 2013 22:00:35 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-58395</guid>
					<title><![CDATA[Arduino Guru capacitive sensing]]></title>
					<link>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-58395</link>
					<pubDate>Thu, 11 Aug 2011 14:34:43 +0000</pubDate>
					<dc:creator>freeka</dc:creator>

					<description>
						<![CDATA[
						<p>Hello,<br />
is there an arduino master who could help me to adapt one of these code to send his values to max/msp (maxuino)<br />
i tried to mix firmata code with them but no luck&#8230;</p>
<p><a href="http://www.arduino.cc/playground/Code/CapacitiveSensor" rel="nofollow">http://www.arduino.cc/playground/Code/CapacitiveSensor</a></p>
<p><a href="http://www.arduino.cc/playground/Main/CapSense" rel="nofollow">http://www.arduino.cc/playground/Main/CapSense</a></p>
<p>thank you</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209852</guid>
					<title><![CDATA[Re: Arduino Guru capacitive sensing]]></title>
					<link>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209852</link>
					<pubDate>Fri, 12 Aug 2011 14:22:18 +0000</pubDate>
					<dc:creator>Simon</dc:creator>

					<description>
						<![CDATA[
						<p>Please could you describe your problem in more detail, in particular the circuit you have made.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209853</guid>
					<title><![CDATA[Re: Arduino Guru capacitive sensing]]></title>
					<link>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209853</link>
					<pubDate>Fri, 12 Aug 2011 14:47:14 +0000</pubDate>
					<dc:creator>freeka</dc:creator>

					<description>
						<![CDATA[
						<p><a href="http://vimeo.com/27300276" rel="nofollow">http://vimeo.com/27300276</a><br />
I basically need 5 contacts ( each finger) to be a capacitive sensor,<br />
in the two links i previously gave, i do think the capsense method would be better as it sounds to have a more bigger and flexible range.</p>
<p>so the circuit is 5 metal pieces doing capacitive sensing and then 5 digital output turning on 5 different LEds linked to each 5 sensors.<br />
contact on sensor 1 turn on LED 1 , etc etc </p>
<p>but i still need the capacitive sensor values to go into max/msp as i need to control some instrument and samplers with it&#8230;</p>
<p>not sure i make sense, let me know :)</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209854</guid>
					<title><![CDATA[Re: Arduino Guru capacitive sensing]]></title>
					<link>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209854</link>
					<pubDate>Fri, 12 Aug 2011 14:49:31 +0000</pubDate>
					<dc:creator>freeka</dc:creator>

					<description>
						<![CDATA[
						<p>would me be nicer to be able to control the led from max/msp as well.</p>
<p>cap sensor value ===> firmata in ===> max/msp (instruments) =====> Firmata out ====>LEDs</p>
<p>sort of..</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209855</guid>
					<title><![CDATA[Re: Arduino Guru capacitive sensing]]></title>
					<link>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209855</link>
					<pubDate>Fri, 12 Aug 2011 15:40:10 +0000</pubDate>
					<dc:creator>n00b_meister</dc:creator>

					<description>
						<![CDATA[
						<p>Hello freeka</p>
<p>If you don&#8217;t require Max GUI control of the LEDs, can I suggest a simpler algorithm?</p>
<p>capSensor &#8212;> Arduino &#8212;> Max</p>
<p>and just light the LEDs using Arduino code conditions:</p>
<p>if (capSense1 > &#8220;some-minimum-value&#8221;)<br />
{<br />
digitalWrite (LedPin1, HIGH);<br />
}<br />
else<br />
{<br />
digitalWrite (LedPin1, LOW);<br />
}</p>
<p>I think your first task should be to ensure you&#8217;re getting clean signals from your circuit; use the serial monitor window in Arduino to check what your circuit and sensors are up to. You should have something like:</p>
<p>Serial.print (mySensor1);<br />
Serial.print (&#8220;/t&#8221;);<br />
Serial.print (mySensor2);<br />
Serial.print (&#8220;/t&#8221;);<br />
.<br />
.<br />
.<br />
.<br />
Serial.println (mySensor5);<br />
}</p>
<p>at the end of your void loop() function.</p>
<p>Brendan<br />
ps I shouldn&#8217;t be replying, as I don&#8217;t meet the OP criteria :p</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209856</guid>
					<title><![CDATA[Re: Arduino Guru capacitive sensing]]></title>
					<link>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209856</link>
					<pubDate>Fri, 12 Aug 2011 20:22:24 +0000</pubDate>
					<dc:creator>freeka</dc:creator>

					<description>
						<![CDATA[
						<p>OP Op!</p>
<p>i would have prefer to deal with the light from max, then i can change the behavior of them (differents presets , blinking, intensity linked with the sound i trig, etc&#8230;)</p>
<p>but if its easier to do it straight from the arduino then i can go the easy way !</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209857</guid>
					<title><![CDATA[Re: Arduino Guru capacitive sensing]]></title>
					<link>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209857</link>
					<pubDate>Fri, 12 Aug 2011 20:31:25 +0000</pubDate>
					<dc:creator>n00b_meister</dc:creator>

					<description>
						<![CDATA[
						<p>Hi<br />
if you want various behaviours from your LEDs, then of course the easier solution would be Max &#8212;> Arduino, especially if, like me, the programming chops aren&#8217;t too hot!</p>
<p>Brendan</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209858</guid>
					<title><![CDATA[Re: Arduino Guru capacitive sensing]]></title>
					<link>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209858</link>
					<pubDate>Fri, 12 Aug 2011 20:42:58 +0000</pubDate>
					<dc:creator>freeka</dc:creator>

					<description>
						<![CDATA[
						<p>True M(ei)ster!</p>
<p>then what would be the best way to mix firmata and the above codes?<br />
this is the thing i don&#8217;t really figure out&#8230;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209859</guid>
					<title><![CDATA[Re: Arduino Guru capacitive sensing]]></title>
					<link>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209859</link>
					<pubDate>Fri, 12 Aug 2011 21:27:07 +0000</pubDate>
					<dc:creator>Simon</dc:creator>

					<description>
						<![CDATA[
						<p>errm, maybe I&#8217;m missing something here,but if you have serial data flowing though to Max from your sensors which suggests that your circuit is ok &#038; you are then turning on LEDs from Max where is the problem?<br />
Use those inputs on your other stuff too.<br />
Surely that is the beauty of Firmata, using (familiar) Max to handle i/o<br />
Maybe post appropriate part of your patch </p>
<p>looks like an interesting project</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209860</guid>
					<title><![CDATA[Re: Arduino Guru capacitive sensing]]></title>
					<link>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209860</link>
					<pubDate>Fri, 12 Aug 2011 21:39:56 +0000</pubDate>
					<dc:creator>freeka</dc:creator>

					<description>
						<![CDATA[
						<p>ok, i will try to explain my problem better,</p>
<p>-the only way i found to communicate between arduino and max is firmata<br />
- then the only way i got to do capacitive sensing with the arduino is using the capsense code or the other one above but then the values i got are only into the arduino monitor , so i do need to add code to send these values to max&#8230;<br />
this is the part i am stuck with&#8230; and then of course i still need to turn on/off the leds</p>
<p>To be more precise, when i started the project i was using resistance sensing technique which possible to do directly with firmata only (basicaly if someone was touching one of the finger and my skin in same time it was triggering sounds and turning on light) but now the project did change a bit and i need to do the same but with people touching just the monster hand finger and without touching my skin in same . i know i could use pressure sensor instead or even put had a &#8220;ground&#8221; metal piece on each finger to still use the resistance sensing technique but i still would love to arrive to do it thru capacitive sensing method.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209861</guid>
					<title><![CDATA[Re: Arduino Guru capacitive sensing]]></title>
					<link>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209861</link>
					<pubDate>Fri, 12 Aug 2011 21:58:19 +0000</pubDate>
					<dc:creator>Simon</dc:creator>

					<description>
						<![CDATA[
						<p>>but then the values i got are only into the arduino monitor </p>
<p>Are you running the Arduino app at the same time as Max? Because that is not a good idea, only one running application on a serial port at a time it seems. </p>
<p>From reading your second paragraph I think you may need to play with resistor and capacitor values to achieve the distance sensitivity you desire. Plus get some good earthing in your system.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209862</guid>
					<title><![CDATA[Re: Arduino Guru capacitive sensing]]></title>
					<link>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209862</link>
					<pubDate>Sat, 13 Aug 2011 18:16:58 +0000</pubDate>
					<dc:creator>freeka</dc:creator>

					<description>
						<![CDATA[
						<p>ok i restart from the begining, as a totally newbie, i think i understood today that the code i linked was already sending values to serial&#8230; :)<br />
so if i finally understand, having the value in the arduino monitor means i can already have the value in max without changing the code ( and yes without opening the arduino monitoring in same time), am i right? :D</p>
<p>if its the case, does someone can help me to deal with the serial object into max and convert the value in something i can use? </p>
<p>toujours merci</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209863</guid>
					<title><![CDATA[Re: Arduino Guru capacitive sensing]]></title>
					<link>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209863</link>
					<pubDate>Sat, 13 Aug 2011 18:32:27 +0000</pubDate>
					<dc:creator>freeka</dc:creator>

					<description>
						<![CDATA[
						<p>ok i got it working with the serial object and that code</p>
<p><a href="http://www.arduino.cc/playground/Code/CapacitiveSensor" rel="nofollow">http://www.arduino.cc/playground/Code/CapacitiveSensor</a></p>
<p>but for some reason i got only 2 pins working (13,12) but i have to plug them in pin 12,11&#8230;<br />
pin 12 on board send message on pin 13 and pin 11 send message as pin 12&#8230;<br />
i&#8217;m using an arduino mega 2560.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209864</guid>
					<title><![CDATA[Re: Arduino Guru capacitive sensing]]></title>
					<link>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209864</link>
					<pubDate>Sat, 13 Aug 2011 19:49:15 +0000</pubDate>
					<dc:creator>n00b_meister</dc:creator>

					<description>
						<![CDATA[
						<p>Hi again freeka</p>
<p>With MaxMSP not running, ie closed, can you send me a screenshot of what the readout of your Arduino serial monitor window is doing? If I&#8217;m happy that the above code is running fine then I&#8217;ll show you how to adapt it, and get your data parsed in Max.</p>
<p>Use the email address contained on my blog here</p>
<p><a href="http://brendan-admi.blogspot.com/" rel="nofollow">http://brendan-admi.blogspot.com/</a></p>
<p>Brendan</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209865</guid>
					<title><![CDATA[Re: Arduino Guru capacitive sensing]]></title>
					<link>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209865</link>
					<pubDate>Sun, 14 Aug 2011 15:41:02 +0000</pubDate>
					<dc:creator>Simon</dc:creator>

					<description>
						<![CDATA[
						<p>if data is flowing in to your computer as you have validated with the Arduino monitor.<br />
Shut that down,then run Max &#038; the Firmata max patch, you should be then able to copy the bits you need from the Firmata patch to your project Max patch.</p>
<p>edit: did I read somewhere about pin weirdness with the Mega? I forget.<br />
If you have some pin swapping &#038; thats all thats wrong, do you need to care?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209866</guid>
					<title><![CDATA[Re: Arduino Guru capacitive sensing]]></title>
					<link>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209866</link>
					<pubDate>Mon, 15 Aug 2011 15:53:34 +0000</pubDate>
					<dc:creator>n00b_meister</dc:creator>

					<description>
						<![CDATA[
						<p>Hi freeka<br />
I responded to your email, but my reply appears to have bounced; the email text is below, and posted here as it may help others:</p>
<p>Hi</p>
<p>the second example is a complete mystery to me I&#8217;m afraid, so I&#8217;ll suggest some changes for the 1st one.</p>
<p>If you are getting changing values for each of your capacitive sensors on pins 8 &#8211; 13 then getting them into Max is easy.</p>
<p>Change the following code snippet:</p>
<p>for(char i = 0; i < 6; i++)<br />
  {<br />
    capval[i] = getcap(pinval[i]);<br />
    Serial.print(&#8220;digital &#8220;);  REMOVE THIS LINE<br />
    Serial.print(i+8, DEC);   REMOVE +8; CHANGE DEC TO BYTE<br />
    Serial.print(&#8220;: &#8220;);            REMOVE THIS LINE<br />
    Serial.println(capval[i], DEC);  CHANGE println TO print; CHANGE DEC TO BYTE<br />
  }<br />
  Serial.println(&#8220;&#8221;);  REMOVE THIS LINE<br />
}</p>
<p>so that it reads</p>
<p>for(char i = 0; i < 6; i++)<br />
  {<br />
    capval[i] = getcap(pinval[i]);<br />
    Serial.print(i, BYTE);  //each time round the for loop, send the value of i<br />
    Serial.print(capval[i], BYTE);//followed by that pins value<br />
  }<br />
}</p>
<p>in Max, you then need a [serial 9600], a [zl group 2] and a [route 58 49 50 51 52 53]; the arguments given here for [route] should be the ascii code numbers for 0, 1, 2, 3, 4, 5 &#8211; I&#8217;m not 100% sure I&#8217;ve got them right; if you don&#8217;t know, use the [key] object to check what the correct ascii codes for keys 0 &#8211; 5 are.</p>
<p>This SHOULD work, if everything else (remaining code, circuits etc) is fine. And this is as far as my skills go; I am by no means an Arduino guru &#8211; sorry.</p>
<p>Brendan</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209867</guid>
					<title><![CDATA[Re: Arduino Guru capacitive sensing]]></title>
					<link>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209867</link>
					<pubDate>Mon, 15 Aug 2011 20:45:52 +0000</pubDate>
					<dc:creator>n00b_meister</dc:creator>

					<description>
						<![CDATA[
						<p>edit&#8230;.</p>
<p>Serial.print(i, BYTE);</p>
<p>The BYTE argument negates the need for ascii conversion, doh! Therefore [route 0, 1, 2, 3, 4, 5) works fine. Without the BYTE suffix [route] WILL need ascii conversion.</p>
<p>Brendan</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209868</guid>
					<title><![CDATA[Re: Arduino Guru capacitive sensing]]></title>
					<link>http://cycling74.com/forums/topic/arduino-guru-capacitive-sensing/#post-209868</link>
					<pubDate>Thu, 18 Aug 2011 11:00:57 +0000</pubDate>
					<dc:creator>freeka</dc:creator>

					<description>
						<![CDATA[
						<p>thanks for your help and time!</p>
<p>Brendan, your code worked perfect for me! </p>
<p>i finally kept the resistance sensing for my work, as the capsense code is not a happy latency solution and the capacitive sensing on digital pin don&#8217;t have a big range&#8230;</p>
<p>here is the result:</p>
<p><iframe src="http://player.vimeo.com/video/27840568" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe></p>
<p>have a gooday</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

