<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title><![CDATA[Dobrica Pavlinušić's random unstructured stuff: PCF8591]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?pcf8591</link>
<description></description>
<pubDate>Mon, 01 Feb 2016 19:36:45 -0000</pubDate>
<webMaster>root@saturn.ffzg.hr</webMaster>
<generator>Socialtext Workspace v2.19.0.2</generator>

<item>
<title><![CDATA[PCF8591]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?pcf8591</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: RaspberryPi</div><hr/><div class="wiki">
<span class="nlw_phrase"><a href="https://saturn.ffzg.hr/rot13/index.cgi/PCF8591_YL-40_schema.pdf?action=attachments_download;page_name=pcf8591;id=20160118143749-0-21980">PCF8591_YL-40_schema.pdf</a><!-- wiki: {file: PCF8591_YL-=40_schema.pdf} --></span><br /><br /><span class="nlw_phrase"><img alt="PCF8591_YL-40_schema.jpg" src="https://saturn.ffzg.hr/rot13/index.cgi/PCF8591_YL-40_schema.jpg?action=attachments_download;page_name=pcf8591;id=20160118143739-0-5803" /><!-- wiki: {image: PCF8591_YL-=40_schema.jpg} --></span><br /><br /><span class="nlw_phrase"><img alt="sku_150190_1.jpg" src="https://saturn.ffzg.hr/rot13/index.cgi/sku_150190_1.jpg?action=attachments_download;page_name=pcf8591;id=20150509180405-0-23866" /><!-- wiki: {image: sku_150190_1.jpg} --></span><br /><br /><p>
PCF8591 8-Bit A/D D/A Converter Module</p>
<p>
AIN0 - Jumper P5 - Light Dependent Resistor (LDR)<br />
AIN1 - Jumper P4 - Thermistor<br />
AIN2 - Not connected<br />
AIN3 - Jumper P6 - Potentiometer</p>
<h1 id="raspberrypi"><a href="https://saturn.ffzg.hr/rot13/index.cgi?raspberrypi" title="(93 months)  file mount-rpi-image.sh toc tag_list raspberrypi Interestring projects TODO test them out and write...">RaspberryPi</a></h1>
<pre>
pi@raspberrypi ~ $ grep snd /etc/modprobe.d/raspi-blacklist.conf 
blacklist snd-bcm2708

pi@raspberrypi ~ $ grep i2c /etc/modules
i2c_dev


pi@raspberrypi ~ $ sudo i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- -- 
40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         


pi@raspberrypi ~ $ gpio -x pcf8591:120:0x48 readall
+------+---------+--------+
|  Pin | Digital | Analog |
+------+---------+--------+
|  120 |     0   |   132  |
|  121 |     0   |   224  |
|  122 |     0   |    89  |
|  123 |     0   |   119  |
+------+---------+--------+
pi@raspberrypi ~ $ gpio -x pcf8591:120:0x48 aread 120
132
pi@raspberrypi ~ $ gpio -x pcf8591:120:0x48 aread 121
224
pi@raspberrypi ~ $ gpio -x pcf8591:120:0x48 aread 122
99
pi@raspberrypi ~ $ gpio -x pcf8591:120:0x48 aread 123
118

pi@raspberrypi ~ $ gpio -x pcf8591:120:0x48 awrite 120 128
</pre>
</div>
<hr/><div>Attachments: PCF8591_YL-40_schema.jpg, PCF8591_YL-40_schema.pdf, sku_150190_1.jpg</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>RaspberryPi</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?pcf8591</guid>
<pubDate>Mon, 01 Feb 2016 19:36:45 -0000</pubDate>
</item>
</channel>
</rss>