{"id":104,"date":"2010-08-10T17:23:56","date_gmt":"2010-08-10T17:23:56","guid":{"rendered":"http:\/\/mitat.tuu.fi\/?p=104"},"modified":"2010-08-10T17:25:05","modified_gmt":"2010-08-10T17:25:05","slug":"433-mhz-receiver-and-newsoftserial","status":"publish","type":"post","link":"http:\/\/mitat.tuu.fi\/?p=104","title":{"rendered":"433 MHz receiver and NewSoftSerial"},"content":{"rendered":"<p>If you&#8217;re having problem with NewSoftSerial versus SoftwareSerial when using 434 MHz (433.92MHz) &#8211; receiver, it&#8217;s because the receiver cannot pull down the RX pin on your arduino. The library changes the input pin to be pull-up when non-inversion is used.<\/p>\n<p>Change the library in following manner:<\/p>\n<p>NewSoftSerial.cpp:<\/p>\n<p>void NewSoftSerial::setRX(uint8_t rx)<br \/>\n{<br \/>\n  pinMode(rx, INPUT);<br \/>\n  \/*<br \/>\n  if (!_inverse_logic)<br \/>\n    digitalWrite(rx, HIGH);  \/\/ pullup for normal logic!<br \/>\n    *\/<br \/>\n  _receivePin = rx;<br \/>\n  _receiveBitMask = digitalPinToBitMask(rx);<br \/>\n  uint8_t port = digitalPinToPort(rx);<br \/>\n  _receivePortRegister = portInputRegister(port);<br \/>\n}<\/p>\n<p>More info : <\/p>\n<p><a href=\"http:\/\/arduiniana.org\/libraries\/newsoftserial\/\">http:\/\/arduiniana.org\/libraries\/newsoftserial\/<\/a><br \/>\n<a href=\"http:\/\/www.sparkfun.com\/commerce\/product_info.php?products_id=8950\">http:\/\/www.sparkfun.com\/commerce\/product_info.php?products_id=8950<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re having problem with NewSoftSerial versus SoftwareSerial when using 434 MHz (433.92MHz) &#8211; receiver, it&#8217;s because the receiver cannot pull down the RX pin on your arduino. The library changes the input pin to be pull-up when non-inversion is used. Change the library in following manner: NewSoftSerial.cpp: void NewSoftSerial::setRX(uint8_t rx) { pinMode(rx, INPUT); \/* [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,9],"tags":[],"class_list":["post-104","post","type-post","status-publish","format-standard","hentry","category-electronics","category-oscilloscoped"],"_links":{"self":[{"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/posts\/104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=104"}],"version-history":[{"count":2,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/posts\/104\/revisions"}],"predecessor-version":[{"id":106,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/posts\/104\/revisions\/106"}],"wp:attachment":[{"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=104"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}