<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="297666" data-post-id="297666">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="fhunleth" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/fhunleth/120/978_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  fhunleth
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Co-author of Nerves</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>That’s odd. Could you check that the cables are all solidly connected? I’d also disconnect the other sensors, connect only the SGP40, and see if it detects reliably. Try swapping the cables just in case you have a sketchy cable.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="297666" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/build-a-weather-station-with-elixir-and-nerves-pragprog/41889/62">Post #61</a>
	                </div>
	            </div>
              <div id="likers-container-297666" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="297666"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #61"></div>
  </section>
</div>
    <div class="postbit" id="297919" data-post-id="297919">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="mensore" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  mensore
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>apologies for the late reply!</p>
<p>Yes, the first things that I’ve tried were to change the wires, unplug/plug back them in, etc. All LED lights were on, but with no avail. Still the same; it would only show the SGP40 a few times.</p>
<p>It is interesting tho, even tho it isn’t detecting my SGP40 (it doesn’t appear in the detect_devices fn), I am able to start_link and get the VOC value. I did read in the datasheet tho that there can/is a downtime for the sensor. Perhaps this is the issue?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="297919" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/build-a-weather-station-with-elixir-and-nerves-pragprog/41889/63">Post #62</a>
	                </div>
	            </div>
              <div id="likers-container-297919" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="297919"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #62"></div>
  </section>
</div>
    <div class="postbit" id="308176" data-post-id="308176">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="whenzei" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/whenzei/120/32602_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  whenzei
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Hey <a class="mention" href="/u/mensore" rel="nofollow">@mensore</a> , I am also trying to get SGP40 to work (could not get hold of SGP30). However I am facing the same issue detecting the device. I was wondering if you managed to get past this?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="308176" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/build-a-weather-station-with-elixir-and-nerves-pragprog/41889/64">Post #63</a>
	                </div>
	            </div>
              <div id="likers-container-308176" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="308176"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #63"></div>
  </section>
</div>
    <div class="postbit" id="308320" data-post-id="308320">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="mnishiguchi" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/mnishiguchi/120/20297_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  mnishiguchi
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Nerves Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Oh I remember I experienced that issue.</p>
<p>When I was working on SGP40 a few years ago, I immediately got stuck because of the I2C device detection with Circuits.I2C.detect_devices/1 not working.</p>
<p>Long story short, it seems like that is a feature of the SGP40 boards . Their circuit does not allow us for the I2C device detection.</p>
<p>I contacted Adafruit and their support representative tried with their Python code and it did not work either. In the meantime, I purchased SGP40 from Sparkfun, but the result was the same. The representative said the I2C specification does not refer to device detection so this type issue can happen to some boards.</p>
<p>Here is what you may experience when detecting I2C devices.<br>
0x59 will eventually get detected before not being detected for a while.<br>
</p><div class="lightbox-wrapper"><a class="lightbox" href="https://forum.elixirforum.com/uploads/default/original/3X/2/6/2634ae33cd55d0c68dea5c934959253cb14b8f01.png" data-download-href="https://forum.elixirforum.com/uploads/default/2634ae33cd55d0c68dea5c934959253cb14b8f01" title="sgp40-detect-devices" rel="nofollow"><img src="https://forum.elixirforum.com/uploads/default/original/3X/2/6/2634ae33cd55d0c68dea5c934959253cb14b8f01.png" alt="sgp40-detect-devices" data-base62-sha1="5rZ0HmsxtsPjzGoSk8fo9RUnaXD" width="683" height="310"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">sgp40-detect-devices</span><span class="informations">683×310 48.4 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><p></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="308320" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/build-a-weather-station-with-elixir-and-nerves-pragprog/41889/65">Post #64</a>
	                </div>
	            </div>
              <div id="likers-container-308320" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="308320"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #64"></div>
  </section>
</div>
    <div class="postbit" id="308321" data-post-id="308321">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="mnishiguchi" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/mnishiguchi/120/20297_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  mnishiguchi
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Nerves Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>With regard to using the SGP40 sensor with <a href="https://hex.pm/packages/sgp40" rel="nofollow">sgp40 package</a> I wrote, while I was able to get measured values, I am not 100% sure those are good because I have zero experience in environment monitoring.</p>
<p>What I did was to</p>
<ul>
<li>
<p>read the manual and existing libraries</p>
</li>
<li>
<p>translate the logic to Elixir</p>
</li>
<li>
<p>verify that at least “some” values are coming in</p>
</li>
<li>
<p>verify that the measurement fluctuates when I put my own breath on to the board</p>
</li>
</ul>
<p>So I am hoping to see what various users find out, then improve the package together when needed.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="308321" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/build-a-weather-station-with-elixir-and-nerves-pragprog/41889/66">Post #65</a>
	                </div>
	            </div>
              <div id="likers-container-308321" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="308321"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #65"></div>
  </section>
</div>
    <div class="postbit" id="308375" data-post-id="308375">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="mensore" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  mensore
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a class="mention" href="/u/whenzei" rel="nofollow">@whenzei</a> did not get managed to really add any updates from my end.<br>
I do use <a class="mention" href="/u/mnishiguchi" rel="nofollow">@mnishiguchi</a> -san’s package. It seems that altho detecting from the bus is ambiguous at best, the package it self does return some values as mnishiguchi-san mentioned.<br>
I, too, have tried different locations in my own home (next to the ac, fridge opened, bathroom, etc) and it does give me different readings.</p>
<p>I’ll have to get back on the project again to give you guys more updates. Thanks to everyone!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="308375" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/build-a-weather-station-with-elixir-and-nerves-pragprog/41889/67">Post #66</a>
	                </div>
	            </div>
              <div id="likers-container-308375" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="308375"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>