<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml">
  <title xmlns="http://www.w3.org/2005/Atom">Dobrica Pavlinušić's random unstructured stuff: PCF8591</title>
  <id xmlns="http://www.w3.org/2005/Atom">https://saturn.ffzg.hr/rot13/</id>
  <link xmlns="http://www.w3.org/2005/Atom" type="text/html" rel="alternate" href="https://saturn.ffzg.hr/rot13/index.cgi?pcf8591"/>
  <link xmlns="http://www.w3.org/2005/Atom" type="application/atom+xml" rel="self" href="https://saturn.ffzg.hr%2C%20saturn.ffzg.hr:443/feed/workspace/rot13?page=pcf8591;type=Atom"/>
  <updated xmlns="http://www.w3.org/2005/Atom">2016-02-01T19:36:45Z</updated>
  <entry xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml">
    <title xmlns="http://www.w3.org/2005/Atom">PCF8591</title>
    <link xmlns="http://www.w3.org/2005/Atom" type="text/html" rel="alternate" href="https://saturn.ffzg.hr/rot13/index.cgi?pcf8591"/>
    <content xmlns="http://www.w3.org/2005/Atom" xmlns:default="http://www.w3.org/1999/xhtml" type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><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></div>
    </content>
    <id xmlns="http://www.w3.org/2005/Atom">https://saturn.ffzg.hr/rot13/index.cgi?pcf8591</id>
    <author xmlns="http://www.w3.org/2005/Atom">
      <name xmlns="http://www.w3.org/2005/Atom">Dobrica Pavlinušić</name>
    </author>
    <updated xmlns="http://www.w3.org/2005/Atom">2016-02-01T19:36:45Z</updated>
    <category xmlns="http://www.w3.org/2005/Atom" term="RaspberryPi" label="RaspberryPi"/>
  </entry>
</feed>
