<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>hackster &#8211; About Things | A Hans Scharler Blog</title>
	<atom:link href="https://nothans.com/tag/hackster/feed" rel="self" type="application/rss+xml" />
	<link>https://nothans.com</link>
	<description>Life, Comedy, Games, Tech, Marketing, and Community</description>
	<lastBuildDate>Mon, 17 Jan 2022 16:59:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://i0.wp.com/nothans.com/wp-content/uploads/2023/02/cropped-settings.png?fit=32%2C32&#038;ssl=1</url>
	<title>hackster &#8211; About Things | A Hans Scharler Blog</title>
	<link>https://nothans.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">114568856</site>	<item>
		<title>ThingSpeak + Particle Photon using Webhooks</title>
		<link>https://nothans.com/particle-webhooks-and-thingspeak</link>
					<comments>https://nothans.com/particle-webhooks-and-thingspeak#respond</comments>
		
		<dc:creator><![CDATA[Hans Scharler]]></dc:creator>
		<pubDate>Fri, 18 Mar 2016 03:07:13 +0000</pubDate>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[ThingSpeak]]></category>
		<category><![CDATA[hackster]]></category>
		<category><![CDATA[internet of things]]></category>
		<category><![CDATA[iot]]></category>
		<category><![CDATA[iot-debugger]]></category>
		<category><![CDATA[matlab]]></category>
		<category><![CDATA[particle]]></category>
		<category><![CDATA[thingspeak]]></category>
		<guid isPermaLink="false">http://nothans.com/particle-webhooks-and-thingspeak</guid>

					<description><![CDATA[]]></description>
										<content:encoded><![CDATA[
<p>I got the Particle Photon and Electron working nicely with <a href="https://thingspeak.com/channels/93156" target="_blank" rel="noopener">ThingSpeak</a>. I took the time to document how to connect the&nbsp;<a href="http://particle.io">Particle.io</a>&nbsp;cloud and ThingSpeak together securely. The tutorial is available now at <a href="https://www.hackster.io/15223/thingspeak-particle-photon-using-webhooks-dbd96c" target="_blank" rel="noopener">Hackster.io</a>&nbsp;and the project uses the Particle Photon, ThingSpeak, <a href="https://github.com/nothans/iot-debugger" target="_blank" rel="noopener">IoT Debugger</a>, and MATLAB!</p>



<figure class="wp-block-image size-large"><a href="https://www.hackster.io/sentient-things/thingspeak-particle-photon-using-webhooks-dbd96c"><img data-recalc-dims="1" fetchpriority="high" decoding="async" width="750" height="464" data-attachment-id="2120" data-permalink="https://nothans.com/particle-webhooks-and-thingspeak/particle_thingpeak" data-orig-file="https://i0.wp.com/nothans.com/wp-content/uploads/2021/03/particle_thingpeak.png?fit=1036%2C641&amp;ssl=1" data-orig-size="1036,641" data-comments-opened="0" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Particle ThingSpeak" data-image-description="" data-image-caption="" data-medium-file="https://i0.wp.com/nothans.com/wp-content/uploads/2021/03/particle_thingpeak.png?fit=300%2C186&amp;ssl=1" data-large-file="https://i0.wp.com/nothans.com/wp-content/uploads/2021/03/particle_thingpeak.png?fit=750%2C464&amp;ssl=1" src="https://i0.wp.com/nothans.com/wp-content/uploads/2021/03/particle_thingpeak.png?resize=750%2C464&#038;ssl=1" alt="" class="wp-image-2120" srcset="https://i0.wp.com/nothans.com/wp-content/uploads/2021/03/particle_thingpeak.png?resize=1024%2C634&amp;ssl=1 1024w, https://i0.wp.com/nothans.com/wp-content/uploads/2021/03/particle_thingpeak.png?resize=300%2C186&amp;ssl=1 300w, https://i0.wp.com/nothans.com/wp-content/uploads/2021/03/particle_thingpeak.png?resize=768%2C475&amp;ssl=1 768w, https://i0.wp.com/nothans.com/wp-content/uploads/2021/03/particle_thingpeak.png?w=1036&amp;ssl=1 1036w" sizes="(max-width: 750px) 100vw, 750px" /></a><figcaption>Particle and ThingSpeak</figcaption></figure>



<p>Particle creates really powerful devices that are cloud-connected to&nbsp;<a href="https://www.particle.io/">Particle.io</a>. They have the Photon and the Electron and the same code works with both. In my project, I use the Wi-Fi powered Photon, but the same steps would work with the Electron that uses 3G cellular data. I will be connecting the Particle devices to&nbsp;<a href="https://thingspeak.com/">ThingSpeak</a>&nbsp;&#8211; a data collection services with built in analytics and visualizations tools using MATLAB. The connection will happen securely from cloud-to-cloud.</p>


<h3 class="wp-block-heading" id="toc-requirements-0">Requirements</h3>


<ul class="wp-block-list"><li>Wi-Fi connected Particle Photon (or activated Particle Electron)</li><li><a href="https://build.particle.io/">Particle.io Build Account</a></li><li><a href="https://thingspeak.com/login">ThingSpeak User Account</a></li></ul>


<h3 class="wp-block-heading" id="toc-credentials-1">Credentials</h3>


<p>We need to gather some credential information before we can build out the rest of the project.</p>



<p><strong>ThingSpeak</strong></p>



<p>Go to <a href="https://thingspeak.com/login">ThingSpeak.com</a> and Sign In. Select Channels and then My Channels. Create a new channel. Click on API Keys and note the <strong>Write API Key</strong> and <strong>Channel ID</strong>.</p>



<p><strong>Particle</strong></p>



<p>Go to <a href="https://build.particle.io/">Particle.io</a> and Sign into Build. Click the gear icon in the bottom left corner of the IDE. This will open the Settings panel. Make a note of the <strong>Access Token</strong>. This will be used to create the webhook in a later step.</p>


<h3 class="wp-block-heading" id="toc-setup-the-webhook-on-particle-io-2">Setup the Webhook on Particle.io</h3>


<p>In order to connect Particle and ThingSpeak together, we need to setup a webhook on Particle. This will make a secure connection from Particle.io to ThingSpeak so that data can be passed back and forth.</p>



<p>You have two options for settings up the webhook. You can use the&nbsp;<a href="https://docs.particle.io/guide/tools-and-features/webhooks/">Particle CLI Tools</a>&nbsp;or&nbsp;<a href="https://github.com/nothans/iot-debugger">IoT Debugger</a>. I will document the steps for the IoT Debugger.</p>



<p><strong>IoT Debugger</strong></p>



<ul class="wp-block-list"><li>Download a copy of&nbsp;<a href="https://github.com/nothans/iot-debugger">IoT Debugger</a></li><li>Open the&nbsp;<a href="http://htmlpreview.github.io/?https://github.com/nothans/iot-debugger/blob/master/app/index.html">index.html</a>&nbsp;file in a web browser tab</li><li>Select&nbsp;<a href="https://htmlpreview.github.io/?https://raw.githubusercontent.com/nothans/iot-debugger/master/app/particle.html">Particle</a></li><li>Enter your Particle&nbsp;<strong>Access Token</strong>&nbsp;into the Access Token field</li><li>Click on &#8220;Create Webhook&#8221;</li></ul>



<p>In the Content (JSON) field, enter the following file:</p>



<pre class="wp-block-code"><code>{
    "event": "thingSpeakWrite_",
    "url": "https://api.thingspeak.com/update",
    "requestType": "POST",
    "form": {
        "api_key": "{{k}}",
        "field1": "{{1}}",
        "field2": "{{2}}",
        "field3": "{{3}}",
        "field4": "{{4}}",
        "field5": "{{5}}",
        "field6": "{{6}}",
        "field7": "{{7}}",
        "field8": "{{8}}",
        "lat": "{{a}}",
        "long": "{{o}}",
        "elevation": "{{e}}",
        "status": "{{s}}"
    },
    "mydevices": true,
    "noDefaults": true
}
</code></pre>



<p>Click &#8220;Save&#8221; to upload the webhook to your Particle account.</p>


<h3 class="wp-block-heading" id="toc-program-particle-photon-3">Program Particle Photon</h3>


<p>Go back to Particle.io and select the device that you want to program.&nbsp;This example will send the value of the analog pin (A0) to ThingSpeak every 16 seconds.</p>



<pre class="wp-block-code"><code>#define publish_delay 16000
unsigned int lastPublish = 0;

void setup() {
}

void loop() {
    unsigned long now = millis();
    if ((now - lastPublish) &lt; publish_delay) {
        return;
    }

    int value = analogRead(A0);
    Particle.publish("thingSpeakWrite_A0", "{ \"1\": \"" + String(value) + "\", \"k\": \"XXXXXXXXXXXXXXXX\" }", 60, PRIVATE);
    lastPublish = now;
}
</code></pre>


<h3 class="wp-block-heading" id="verify-connections">Verify Connections</h3>


<p>Go over to the new ThingSpeak <a href="https://thingspeak.com/channels/93156">channel</a> that you created and see if data is being collected and displayed on one of your charts. You should see a new data point being added every 16 seconds.</p>


<h3 class="wp-block-heading" id="toc-matlab-visualization-4">MATLAB Visualization</h3>


<p>Now that your data is on&nbsp;<a href="https://thingspeak.com/channels/93156">ThingSpeak</a>&nbsp;you can see this data on ThingSpeak using the MATLAB Visualizations app. On ThingSpeak, select Apps and then MATLAB Visualizations. Click &#8220;New&#8221;, select &#8220;Custom (no starter code), and click &#8220;Create&#8221;.</p>



<p>Enter the following MATLAB code and click&nbsp;<strong>Run and Save</strong>:</p>



<pre class="wp-block-code"><code>readChannelID = 93156;
fieldID1 = 1;

readAPIKey = 'MCI6XM81ZFOY8UCE';

%% Read Data %%
&#91;data, time] = thingSpeakRead(readChannelID, 'Field', fieldID1, 'NumPoints', 10, 'ReadKey', <em>readAPIKey</em>);

%% Visualize Data %%
thingSpeakPlot(time, data);
</code></pre>



<p>Make sure to customize the MATLAB code with your <strong>readChannelID</strong> and <strong>readAPIKey</strong>.</p>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><img data-recalc-dims="1" decoding="async" data-attachment-id="2119" data-permalink="https://nothans.com/particle-webhooks-and-thingspeak/matlab_visualization" data-orig-file="https://i0.wp.com/nothans.com/wp-content/uploads/2021/03/matlab_visualization.png?fit=663%2C455&amp;ssl=1" data-orig-size="663,455" data-comments-opened="0" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="matlab_visualization" data-image-description="" data-image-caption="" data-medium-file="https://i0.wp.com/nothans.com/wp-content/uploads/2021/03/matlab_visualization.png?fit=300%2C206&amp;ssl=1" data-large-file="https://i0.wp.com/nothans.com/wp-content/uploads/2021/03/matlab_visualization.png?fit=663%2C455&amp;ssl=1" src="https://i0.wp.com/nothans.com/wp-content/uploads/2021/03/matlab_visualization.png?resize=663%2C455&#038;ssl=1" alt="" class="wp-image-2119" width="663" height="455" srcset="https://i0.wp.com/nothans.com/wp-content/uploads/2021/03/matlab_visualization.png?w=663&amp;ssl=1 663w, https://i0.wp.com/nothans.com/wp-content/uploads/2021/03/matlab_visualization.png?resize=300%2C206&amp;ssl=1 300w" sizes="(max-width: 663px) 100vw, 663px" /><figcaption>MATLAB Plot of ThingSpeak Data</figcaption></figure></div>
]]></content:encoded>
					
					<wfw:commentRss>https://nothans.com/particle-webhooks-and-thingspeak/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">586</post-id>	</item>
		<item>
		<title>Your Physical Interface with Uber!</title>
		<link>https://nothans.com/uber-with-aws-iot</link>
					<comments>https://nothans.com/uber-with-aws-iot#respond</comments>
		
		<dc:creator><![CDATA[Hans Scharler]]></dc:creator>
		<pubDate>Mon, 01 Feb 2016 17:19:11 +0000</pubDate>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[aws iot]]></category>
		<category><![CDATA[hackster]]></category>
		<category><![CDATA[seeedstudio]]></category>
		<category><![CDATA[seeeduino]]></category>
		<category><![CDATA[uber]]></category>
		<guid isPermaLink="false">http://nothans.com/uber-with-aws-iot</guid>

					<description><![CDATA[]]></description>
										<content:encoded><![CDATA[<p><a href="https://nothans.com/uber-with-aws-iot#gallery-593-1-slideshow">Click to view slideshow.</a></p>
<p>Want to see/hear how far the closest Uber is from you? All you have to do is press a button on an AWS IoT connected device. I created this project to allow anyone to have access to Uber even without a smartphone and for those with different capabilities.</p>
<p><iframe class="youtube-player" width="750" height="422" src="https://www.youtube.com/embed/qWmSSu1o9ys?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en-US&#038;autohide=2&#038;wmode=transparent" allowfullscreen="true" style="border:0;" sandbox="allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox"></iframe></p>
<p>I used the Arduino Yun and the <a href="http://www.amazon.com/gp/product/B01669BB60/nothans" target="_blank">Grove Starter Kit for Arduino</a> to build a physical interface with Uber services. The full project details are available on <a href="https://www.hackster.io/nothans/use-uber-with-aws-iot-lambda-arduino-starter-kit-f71c50" target="_blank">Hackster.io</a> and <a href="https://github.com/nothans/Uber-AWS-IoT" target="_blank">GitHub</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nothans.com/uber-with-aws-iot/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">593</post-id>	</item>
	</channel>
</rss>
