<?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: raspberrypi]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?action=weblog_display;category=raspberrypi</link>
<description></description>
<pubDate>Wed, 18 Nov 2020 10:41:33 -0000</pubDate>
<webMaster>root@saturn.ffzg.hr</webMaster>
<generator>Socialtext Workspace v2.19.0.2</generator>

<item>
<title><![CDATA[raspios]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?raspios</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: RaspberryPi</div><hr/><div class="wiki">
<h1 id="headless_setup">headless setup</h1>
<pre>
dpavlin@nuc:~/Downloads$ unzip 2020-08-20-raspios-buster-armhf-lite.zip

dpavlin@nuc:~/Downloads$ dd iflag=fullblock oflag=direct conv=fsync status=progress bs=1M if=2020-08-20-raspios-buster-armhf-lite.img of=/dev/sdb

dpavlin@nuc:~/Downloads$ sudo mount /dev/sdb1 /mnt/sdb1/

# enable ssh
dpavlin@nuc:~/Downloads$ sudo touch /mnt/sdb1/ssh

# configure wifi
dpavlin@nuc:~/Downloads$ sudo cp /tmp/rpi4-backup/wpa_supplicant.conf /mnt/sdb1/

dpavlin@nuc:~/Downloads$ cat /mnt/sdb1/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=HR

network={
	ssid=&quot;wifi_ssid&quot;
	psk=&quot;wifi_password&quot;
	key_mgmt=WPA-PSK
}

dpavlin@nuc:~/Downloads$ sudo umount /mnt/sdb1
dpavlin@nuc:~/Downloads$ sudo eject /dev/sdb



</pre>
</div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>RaspberryPi</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?raspios</guid>
<pubDate>Wed, 18 Nov 2020 10:41:33 -0000</pubDate>
</item>
<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>
<item>
<title><![CDATA[OV7670]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?ov7670</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: FPGA, hardware, RaspberryPi</div><hr/><div class="wiki">
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#references">Dobrica Pavlinušić's random unstructured stuff (References)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] References} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#raspberrypi">Dobrica Pavlinušić's random unstructured stuff (RaspberryPi)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] RaspberryPi} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#fpga">Dobrica Pavlinušić's random unstructured stuff (FPGA)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] FPGA} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#stereo_vision">Dobrica Pavlinušić's random unstructured stuff (Stereo vision)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Stereo vision} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="references">References</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://embeddedprogrammer.blogspot.com/2012/07/hacking-ov7670-camera-module-sccb-cheat.html">http://embeddedprogrammer.blogspot.com/2012/07/hacking-ov7670-camera-module-sccb-cheat.html</a></li>
</ul>
<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>
<ul>
<li><a target="_blank" title="(external link)" href="http://nicolasfley.fast-page.org/?page_id=35">http://nicolasfley.fast-page.org/?page_id=35</a></li>
</ul>
<h1 id="fpga">FPGA</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://hamsterworks.co.nz/mediawiki/index.php/OV7670_camera">http://hamsterworks.co.nz/mediawiki/index.php/OV7670_camera</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/ahmadabbas55/miniOV7670">https://github.com/ahmadabbas55/miniOV7670</a></li>
</ul>
<h1 id="stereo_vision">Stereo vision</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://danstrother.com/2011/06/10/fpga-stereo-vision-core-released/">http://danstrother.com/2011/06/10/fpga-stereo-vision-core-released/</a></li>

<ul>
<li><a target="_blank" title="(external link)" href="http://code.danstrother.com/dls_cores/">http://code.danstrother.com/dls_cores/</a></li>
</ul></ul>
</div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>FPGA, hardware, RaspberryPi</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?ov7670</guid>
<pubDate>Tue, 17 Feb 2015 14:47:14 -0000</pubDate>
</item>
</channel>
</rss>