<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Jee Labs Talk &#187; Recent Topics</title>
		<link>http://talk.jeelabs.net/</link>
		<description>Discussion about Jee Labs projects</description>
		<language>en-US</language>
		<pubDate>Sat, 31 Jul 2010 11:14:54 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://talk.jeelabs.net/search.php</link>
		</textInput>
		<atom:link href="http://talk.jeelabs.net/rss/topics" rel="self" type="application/rss+xml" />

		<item>
			<title>yaba on "RFID meets JeeNode"</title>
			<link>http://talk.jeelabs.net/topic/443#post-2420</link>
			<pubDate>Sat, 31 Jul 2010 03:29:47 +0000</pubDate>
			<dc:creator>yaba</dc:creator>
			<guid isPermaLink="false">2420@http://talk.jeelabs.net/</guid>
			<description>&#60;p&#62;Hi all, I wonder if someone could help me, I have the following code, and when I swipe the same card twice, I don't receive anything on JeeLink.&#60;br /&#62;&#60;/p&#62;

&#60;pre&#62;&#60;code&#62;void setup()
{
Serial.begin(57600);
Serial.print(&#34;[Leitor RFID]&#34;);
D_DIR&#38;amp;=~(DATA0+DATA1);
rf12_config();
rf12_initialize(1,RF12_868MHZ,212);
buzzer.mode(OUTPUT);
}

void loop() {
unsigned char recieve_count=0;
unsigned char card_num[4]={0,0,0,0};
unsigned char teste[4] = {0,0,0,0};
for(;;) {
unsigned char data0=0,data1=0;
if(D_IN&#38;amp;DATA0)  //DATA0 incoming signal
{ data0=1; }
if(D_IN&#38;amp;DATA1)  //DATA1 incoming signal
{ data1=1; }
if(data0!=data1)  // card detected
{
recieve_count++;
if(recieve_count==1) //drop even bit
{
}
else if(recieve_count&#38;lt;10)// card data group 1
  {
    if(!data1)
    {
      card_num[0]&#124;=(1&#38;lt;&#38;lt;(9-recieve_count));
    }
  }
  else if(recieve_count&#38;lt;18)// card data group 2
  {
    if(!data1)
    {
      card_num[1]&#124;=(1&#38;lt;&#38;lt;(17-recieve_count));

    }
  }
  if(!data1) // card data group 3
  {     
    card_num[2]&#124;=(1&#38;lt;&#38;lt;(25-recieve_count));
  }
  delayMicroseconds(80);  //Data impulse width delay 80us
}
else    // no card incoming or finish reading card
{
  unsigned char i=0;
  if(recieve_count&#38;gt;= 25)  //output card number

  {
    recieve_count = 0; //reset flag
    for(i=0;i&#38;lt;4;i++)
    {

      Serial.print(card_num[i], DEC);

      teste[i]=card_num[i];
&#60;/code&#62;&#60;/pre&#62;

&#60;p&#62;card_num[i]=0; //reset card_number array
        }&#60;/p&#62;

&#60;pre&#62;&#60;code&#62;    rf12_easySend(&#38;amp;teste,sizeof teste);
    Serial.println();// output debug value
    for (long i = 0; i &#38;lt; 1024 ; i++ )
    {
      // 1 / 2048Hz = 488uS, or 244uS high and 244uS low to create 50% duty cycle
      buzzer.digiWrite(1);
      delayMicroseconds(244);
      buzzer.digiWrite(0);
      delayMicroseconds(220);
    }
  }
  for(int r=0;r&#38;lt;4;r++){
    teste[r]=' ';
  }
  rf12_easyPoll();
}
&#60;/code&#62;&#60;/pre&#62;

&#60;p&#62;}
}
`
&#60;br /&#62;
Example: &#60;br /&#62;
Pass card #1 and it returns the id in JeeLink (JL has RF12demo)&#60;br /&#62;
Pass card #2 and get it again&#60;br /&#62;
Pass card #2 again, and nothing... no packets sent :&#124;&#60;br /&#62;
I think i'm messing up with easyPool()&#60;br /&#62;
enlight me please :)&#60;/p&#62;
</description>
		</item>
		<item>
			<title>lordmundi on "polar heart rate monitor"</title>
			<link>http://talk.jeelabs.net/topic/433#post-2340</link>
			<pubDate>Sat, 24 Jul 2010 22:08:57 +0000</pubDate>
			<dc:creator>lordmundi</dc:creator>
			<guid isPermaLink="false">2340@http://talk.jeelabs.net/</guid>
			<description>&#60;p&#62;we are hooking up the Polar Heart Rate monitor (HRMI) circuit from SparkFun and Dan Julio.  We are trying to talk to it over I2C and have been at it for quite a few days with no success.&#60;/p&#62;

&#60;p&#62;We have unsoldered SJ1 and soldered OP7 as directed to in the manual.  We have also tried with and without external pull up resistors (I don't know if the JeeNode automatically has pull-ups or not).  We have even tried soldeirng OP7 since the default address of 127 seems to be a reserved address in the I2C standard.&#60;/p&#62;

&#60;p&#62;All with no luck.  We get garbage back.&#60;/p&#62;

&#60;p&#62;For wiring, we have:&#60;/p&#62;

&#60;p&#62;HRMI   JeeNode&#60;/p&#62;

&#60;p&#62;+5V    P&#60;/p&#62;

&#60;p&#62;GND    G&#60;/p&#62;

&#60;p&#62;SDA    D&#60;/p&#62;

&#60;p&#62;SCL    A&#60;/p&#62;

&#60;p&#62;Has anyone ever hooked up this circuit to a JeeNode before?  We are trying to use the Ports library and the I2C functions since these are so easy to understand, but we have been trying every possible placement of device.stop() and device.send() and device.receive() calls since we don't quite know where they go for sure.  We've gotten the TMP421 temperature chip working and have based our code off of that.  I can post the code, but was just mainly interested if anyone else has ever done this, or if anyone sees any issue with the way we have the hardware configured.&#60;/p&#62;

&#60;p&#62;thanks for any help!&#60;/p&#62;

&#60;p&#62;FG&#60;/p&#62;
</description>
		</item>
		<item>
			<title>gregor on "Upload to JeeNode v4 fails"</title>
			<link>http://talk.jeelabs.net/topic/440#post-2397</link>
			<pubDate>Wed, 28 Jul 2010 11:21:19 +0000</pubDate>
			<dc:creator>gregor</dc:creator>
			<guid isPermaLink="false">2397@http://talk.jeelabs.net/</guid>
			<description>&#60;p&#62;I built the JeeNode v4 from the wireless starter pack. 
It appears to work: Upon connecting it via the USB-BUB the expected messages (&#34;Available commands: etc...&#34;) are appearing. I can use the preloaded RF12demo and send and receive to/from the JeeNode.&#60;/p&#62;

&#60;p&#62;However, I cannot upload a new sketch to the JeeNode v4: I uploaded the &#34;JeeNodeIoCommander&#34; sketch to the JeeLink and the JeeNodeUSB without problems, but not to the JeeNode v4.&#60;/p&#62;

&#60;p&#62;Additional info:&#60;/p&#62;

&#60;p&#62;I'm trying to upload to the JeeNode v4 via USB-BUB (set to 3.3V), the JeeNode is &#60;em&#62;not&#60;/em&#62; connected to an additional power source (this should work, correct?).&#60;/p&#62;

&#60;p&#62;I'm using Arduino IDE, &#34;Board&#34; is set to &#34;Arduino Duemilanove or Nano w/ Atmega328&#34;&#60;/p&#62;

&#60;p&#62;The upload command is 
&#34;[path]avrdude -C[path]avrdude.conf -v -v -v -v -pm328p -cstk500v1 -P/dev/ttyUSB0 -b57600 -D -Uflash:w:[path]nodeIO.cpp.hex:i &#34;&#60;/p&#62;

&#60;p&#62;Error messages (in the IDE and in a terminal):
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding&#60;/p&#62;

&#60;p&#62;Chances are I messed something up during soldering. Keeping in mind that the JeeNode v4 appears to work, can anybody give me hints to narrow down or localize the reason why an upload fails?
For example, checking certain connections on the board, measuring voltage on specific points?&#60;/p&#62;
</description>
		</item>
		<item>
			<title>tankslappa on "Arduino/ATmega/JeeNode port/pin diagram"</title>
			<link>http://talk.jeelabs.net/topic/442#post-2410</link>
			<pubDate>Thu, 29 Jul 2010 17:34:18 +0000</pubDate>
			<dc:creator>tankslappa</dc:creator>
			<guid isPermaLink="false">2410@http://talk.jeelabs.net/</guid>
			<description>&#60;p&#62;After seeing a few questions and comments about putting non JeeLabs bits onto JeeNodes, and having done it myself a few times, I thought one of these might be useful...&#60;/p&#62;

&#60;p&#62;Basically it's a pin diagram of an ATmega. All the pins are labelled with all their known names. The Arduino names, the JeeNode names, and anything else I could think of whilst I was doing it!&#60;/p&#62;

&#60;p&#62;Thanks to Stef007 for his fantastic link &#60;a href=&#34;http://tinkerlog.com/2009/06/18/microcontroller-cheat-sheet/&#34;&#62;http://tinkerlog.com/2009/06/18/microcontroller-cheat-sheet/&#60;/a&#62;&#60;/p&#62;

&#60;p&#62;I combined this with info from &#60;a href=&#34;http://cafe.jeelabs.net/lab/jn4/JeeNode-v4.pdf&#34;&#62;JC's Jeenode V4 PDF&#60;/a&#62;...&#60;/p&#62;

&#60;p&#62;&#60;a href=&#34;http://farm5.static.flickr.com/4087/4840782367_224bfea12b_o.gif&#34;&#62;http://farm5.static.flickr.com/4087/4840782367_224bfea12b_o.gif&#60;/a&#62;&#60;/p&#62;

&#60;p&#62;The ports are labelled JP followed by the port number, then A for analogue or D for digital. The interrupt pin is shared across all the ports so labelled JPint.
The pins to the ISP are labelled, which are common to all the ATmega based board. The JeeNode then added two extra pins, 8 and 9 which give access to the Arduino digital 8 and 9.&#60;/p&#62;

&#60;p&#62;Hope this is helpful.&#60;/p&#62;
</description>
		</item>
		<item>
			<title>szac on "how to get rf12_recvDone to pause long enough to actually get good data"</title>
			<link>http://talk.jeelabs.net/topic/441#post-2399</link>
			<pubDate>Wed, 28 Jul 2010 16:27:40 +0000</pubDate>
			<dc:creator>szac</dc:creator>
			<guid isPermaLink="false">2399@http://talk.jeelabs.net/</guid>
			<description>&#60;p&#62;If I wrap the rf12_recvDone block at the end in while(1), I'm able to skip through the steps remotely. Seems like it's looping too fast for the rf12_recvDone function to get data. Anyone have any suggestions or improvements? Thanks!&#60;/p&#62;

&#60;p&#62;&#60;code&#62;
totalsteps = 3;
while(step&#38;lt;=totalsteps) {
   switch (step) {
     case 1:
      if (!(cyclecount % 1)) { //only update display each 1000th time thru loop  //TODO increase value when process is running fast (ie checking time properly)&#60;/code&#62;&#60;/p&#62;

&#60;pre&#62;&#60;code&#62;    float currenttemp1F = sensors.getTempC(sensor1);
    float currenttemp2F = sensors.getTempC(sensor2);

    stepData buf;
    buf.rfcurrenttemp1F = currenttemp1F;
    buf.rfcurrenttemp2F = currenttemp2F;

    rf12_recvDone();
    if (rf12_canSend()){
        rf12_sendStart(0, &#38;amp;buf, sizeof buf);
    }
    cyclecount++;
  }
  break;
 case 2:
  if (!(cyclecount % 1)) { //only update display each 1000th time thru loop  //TODO increase value when process is running fast (ie checking time properly)

    float currenttemp1F = sensors.getTempC(sensor1);
    float currenttemp2F = sensors.getTempC(sensor2);

    stepData buf;
    buf.rfcurrenttemp1F = currenttemp1F;
    buf.rfcurrenttemp2F = currenttemp2F;

    rf12_recvDone();
    if (rf12_canSend()){
        rf12_sendStart(0, &#38;amp;buf, sizeof buf);
    }
    cyclecount++;
  }
  break;
 case 3:
  if (!(cyclecount % 1)) { //only update display each 1000th time thru loop  //TODO increase value when process is running fast (ie checking time properly)

    float currenttemp1F = sensors.getTempC(sensor1);
    float currenttemp2F = sensors.getTempC(sensor2);

    stepData buf;
    buf.rfcurrenttemp1F = currenttemp1F;
    buf.rfcurrenttemp2F = currenttemp2F;

    rf12_recvDone();
    if (rf12_canSend()){
        rf12_sendStart(0, &#38;amp;buf, sizeof buf);
    }
    cyclecount++;
  }    
}


  if (rf12_recvDone()) {
    //Serial.print(remoteincoming-&#38;gt;jtChooseMenuItem);
    remoteControl* remoteincoming = (remoteControl*) rf12_data;
    Serial.print(&#34;rf12_recDone&#34;);
    if (rf12_crc == 0) {
      if (remoteincoming-&#38;gt;jtChooseMenuItem == '3')
      {
        if (testmode == 1)  /// in testmode this will allow me to skip to the next step and is configured elsewhere
        {
          digitalWrite(PinElementHlt, LOW);
          digitalWrite(PinPumpHlt, LOW);
          digitalWrite(PinPumpMT, LOW);
          digitalWrite(PinMotorMT, LOW);
          step++;
          msgdisplayed=0;
          timercalculated=0; // next step's timer not yet calculated
        }
      }       
    }
  } 
&#60;/code&#62;&#60;/pre&#62;

&#60;p&#62;} //end loop
&#60;/p&#62;
</description>
		</item>
		<item>
			<title>fishy6969 on "Basic Newb Question - Relays"</title>
			<link>http://talk.jeelabs.net/topic/438#post-2370</link>
			<pubDate>Mon, 26 Jul 2010 21:54:29 +0000</pubDate>
			<dc:creator>fishy6969</dc:creator>
			<guid isPermaLink="false">2370@http://talk.jeelabs.net/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;

&#60;p&#62;I'm really enjoying messing around with the jeenodes. My background is definitely not C and I'm having a bit of a 'brain fail' when it comes to dealing with received packets. What I'm trying to acheive is switching on and off 4 relay devices attached to the 4 ports of a remote jeenode. I seem to be running into a mental block about how I should be interpreting the package sent (ie Port 1 relay off, Port 3 on) into actions on the receiving node. It probably relates to my lack of knowledge re C etc. Any pointers/help/or directions to any suitable guides would be gratefully received!&#60;/p&#62;

&#60;p&#62;Regards
Dan&#60;/p&#62;
</description>
		</item>
		<item>
			<title>raalst on "RF12 range seems OK for me"</title>
			<link>http://talk.jeelabs.net/topic/435#post-2350</link>
			<pubDate>Sun, 25 Jul 2010 14:57:53 +0000</pubDate>
			<dc:creator>raalst</dc:creator>
			<guid isPermaLink="false">2350@http://talk.jeelabs.net/</guid>
			<description>&#60;p&#62;I just got my wireless (model-)Sonar operational. 
It uses the RF12 library with an enlarged packet size.&#60;/p&#62;

&#60;p&#62;I had the sender (i.e. sonar) transmitting the received echo's in the attic, 
and the receiver stuck on my netbook in the living room, showing the signals with Processing. 
It is a modern house with rebar/concrete floors and sides, and the rest filled in with 
sandstone (i think..). the RF12b is 868 Mhz.&#60;/p&#62;

&#60;p&#62;Reception was flawless ! 
Hurray for the JeeNodes.&#60;/p&#62;

&#60;p&#62;I'm confident that the range on open water will be more than sufficient.&#60;/p&#62;

&#60;p&#62;as we say around here : onwards !&#60;/p&#62;
</description>
		</item>
		<item>
			<title>jeroen on "433 mhz AM retransmitter question"</title>
			<link>http://talk.jeelabs.net/topic/439#post-2381</link>
			<pubDate>Tue, 27 Jul 2010 17:43:34 +0000</pubDate>
			<dc:creator>jeroen</dc:creator>
			<guid isPermaLink="false">2381@http://talk.jeelabs.net/</guid>
			<description>&#60;p&#62;In the post &#34;How to verify what my rfm12 is sending? &#34; I found a interesting link to the remoteswitch software. This for sending with the 433 mhz conrad am transmitter. (The retransmitter sketch). &#60;a href=&#34;http://randysimons.com/overige/browsable/433MHz/&#34;&#62;http://randysimons.com/overige/browsable/433MHz/&#60;/a&#62;
I have a question about the Jeenode Pins. According to  the readme file you have to connect the transmitter to arduino digital 11 and the receiver to arduino digital 2. I searched the docs on jeelabs, but could not find the corresponding Jeenode pins. Anyone an idea??
regards Jeroen&#60;/p&#62;
</description>
		</item>
		<item>
			<title>lordmundi on "talk serial over a &#34;Port&#34;"</title>
			<link>http://talk.jeelabs.net/topic/432#post-2339</link>
			<pubDate>Sat, 24 Jul 2010 22:00:30 +0000</pubDate>
			<dc:creator>lordmundi</dc:creator>
			<guid isPermaLink="false">2339@http://talk.jeelabs.net/</guid>
			<description>&#60;p&#62;the jeenode Ports make a great interface... especially with the Ports library!&#60;/p&#62;

&#60;p&#62;but, if you want to use them for something other than I2C... such as serial, is this possible?  We have a serial device we want to talk to and don't want to steal the interface we use to talk to the USB-BUB.  Any examples of this?&#60;/p&#62;

&#60;p&#62;FG&#60;/p&#62;
</description>
		</item>
		<item>
			<title>yaba on "Jee-B-Gone"</title>
			<link>http://talk.jeelabs.net/topic/437#post-2367</link>
			<pubDate>Mon, 26 Jul 2010 16:22:48 +0000</pubDate>
			<dc:creator>yaba</dc:creator>
			<guid isPermaLink="false">2367@http://talk.jeelabs.net/</guid>
			<description>&#60;p&#62;Did anyone tried Jee-B-Gone code?!&#60;br /&#62;
Did it work?&#60;br /&#62;
In the picture (http://www.ka1kjz.com/575/jee-b-gone/) he's using Port 2 right?&#60;br /&#62;
However, in the code and comments, it refers to Port 4. I've been trying and just doesn't work, only the LED flashes :&#124;&#60;br /&#62;
Thanks&#60;/p&#62;
</description>
		</item>

	</channel>
</rss>
