<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>hacks on Coffee and Contemplation</title><link>https://coffeeandcontemplation.dev/tags/hacks/</link><description>Recent content in hacks on Coffee and Contemplation</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><managingEditor>dev@gmail.com (dev)</managingEditor><webMaster>dev@gmail.com (dev)</webMaster><lastBuildDate>Mon, 14 Nov 2022 00:00:00 +0000</lastBuildDate><atom:link href="https://coffeeandcontemplation.dev/tags/hacks/index.xml" rel="self" type="application/rss+xml"/><item><title>Temperature logger improvements</title><link>https://coffeeandcontemplation.dev/post/2022-11-14-temp-logger-improvements-for-pi/</link><pubDate>Mon, 14 Nov 2022 00:00:00 +0000</pubDate><author>dev@gmail.com (dev)</author><guid>https://coffeeandcontemplation.dev/post/2022-11-14-temp-logger-improvements-for-pi/</guid><description>Part1
Part2
Using the on-board LED to monitor sensor reads The raspberry pi pico based temperature logger &amp;ldquo;hung&amp;rdquo; at times. It didn&amp;rsquo;t write anything to the file at all. But, it wasn&amp;rsquo;t obvious that it had stopped working. Initially, I had plans to turn on the on-board LED when writing to a file. But, more experienced programmers suggested that sensor_temp.read_u16() is more likely to be the blocking call. So turning on the LED before reading the sensor and turning it off after would give a clear indication.</description></item><item><title>Plotting a timeseries graph with gnuplot</title><link>https://coffeeandcontemplation.dev/post/2022-11-09-plotting-temp-timeseries/</link><pubDate>Wed, 09 Nov 2022 00:00:00 +0000</pubDate><author>dev@gmail.com (dev)</author><guid>https://coffeeandcontemplation.dev/post/2022-11-09-plotting-temp-timeseries/</guid><description>So, there was this raspberry pi contraption to log temperature to a file. The next step is to plot this in a graph. We get a single column file of recorded temperatures from the raspberry pi pico.
It is pretty easy to plot a graph from a two column file using gnuplot. If the filename is temp_log, all you need is:
plot &amp;#39;temp_log&amp;#39; with lines I was too lazy to find how to plot a single column file.</description></item><item><title>Temperature monitoring with raspberry pi</title><link>https://coffeeandcontemplation.dev/post/2022-11-06-temperature-monitoring-with-rp-pico/</link><pubDate>Sun, 06 Nov 2022 00:00:00 +0000</pubDate><author>dev@gmail.com (dev)</author><guid>https://coffeeandcontemplation.dev/post/2022-11-06-temperature-monitoring-with-rp-pico/</guid><description>We bought a new Air conditioner for the house. It doesn&amp;rsquo;t feel like the AC is able to regulate the temperature to what we set. But, humans are often wrong about these kind of things. A simple thermometer would have done the trick - but we need time-series temperature data to verify the AC function.
Enter - the Raspberry pi pico. It has a built-in ambient temperature sensor and supports micropython.</description></item></channel></rss>