<?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?raspberrypi</link>
<description></description>
<pubDate>Tue, 04 Sep 2018 06:30:29 -0000</pubDate>
<webMaster>root@saturn.ffzg.hr</webMaster>
<generator>Socialtext Workspace v2.19.0.2</generator>

<item>
<title><![CDATA[RaspberryPi]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?raspberrypi</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: howto</div><hr/><div class="wiki">
<span class="nlw_phrase"><a href="https://saturn.ffzg.hr/rot13/index.cgi/mount-rpi-image.sh?action=attachments_download;page_name=raspberrypi;id=20151206192857-0-4730">mount-rpi-image.sh</a><!-- wiki: {file: mount-=rpi-=image.sh} --></span><br /><br /><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#interestring_projects">Dobrica Pavlinušić's random unstructured stuff (Interestring projects)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Interestring projects} --></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#development">Dobrica Pavlinušić's random unstructured stuff (development)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] development} --></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#ov7670">Dobrica Pavlinušić's random unstructured stuff (OV7670)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] OV7670} --></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#dht11_dht22">Dobrica Pavlinušić's random unstructured stuff (DHT11/DHT22)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] DHT11/DHT22} --></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#blinkm_i2c">Dobrica Pavlinušić's random unstructured stuff (BlinkM + i2c)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] BlinkM + i2c} --></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#cec_control_your_tv">Dobrica Pavlinušić's random unstructured stuff (CEC - control your TV)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] CEC -= control your TV} --></span></li>

<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#tv_on">Dobrica Pavlinušić's random unstructured stuff (TV on)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] TV on} --></span></li>
</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#hints_from_forum">Dobrica Pavlinušić's random unstructured stuff (Hints from forum)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Hints from forum} --></span></li>

<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#screen_saver">Dobrica Pavlinušić's random unstructured stuff (screen saver)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] screen saver} --></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#youtube_transcoding_in_vlc">Dobrica Pavlinušić's random unstructured stuff (YouTube transcoding in VLC)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] YouTube transcoding in VLC} --></span></li>
</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#education_materials">Dobrica Pavlinušić's random unstructured stuff (Education materials)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Education materials} --></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#raspberry_pi_accessories_starter_kit">Dobrica Pavlinušić's random unstructured stuff (Raspberry Pi Accessories Starter Kit)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Raspberry Pi Accessories Starter Kit} --></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#gpu">Dobrica Pavlinušić's random unstructured stuff (GPU)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] GPU} --></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#arduino">Dobrica Pavlinušić's random unstructured stuff (Arduino)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Arduino} --></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#jtag">Dobrica Pavlinušić's random unstructured stuff (JTAG)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] JTAG} --></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#arduino_promini_3_3v_8mhz">Dobrica Pavlinušić's random unstructured stuff (Arduino ProMini 3.3V 8MHz)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Arduino ProMini 3.3V 8MHz} --></span></li>

<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#disable_serial_port_console">Dobrica Pavlinušić's random unstructured stuff (Disable serial port console)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Disable serial port console} --></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#connect_arduino_serial">Dobrica Pavlinušić's random unstructured stuff (connect Arduino serial)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] connect Arduino serial} --></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#flasing">Dobrica Pavlinušić's random unstructured stuff (flasing)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] flasing} --></span></li>
</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#ds1307_tiny_rtc">Dobrica Pavlinušić's random unstructured stuff (DS1307 Tiny RTC)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] DS1307 Tiny RTC} --></span></li>

<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#ds18b20">Dobrica Pavlinušić's random unstructured stuff (DS18B20)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] DS18B20} --></span></li>
</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#avrdude">Dobrica Pavlinušić's random unstructured stuff (avrdude)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] avrdude} --></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#logic_analyzer">Dobrica Pavlinušić's random unstructured stuff (logic analyzer)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] logic analyzer} --></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#rotary_encoder">Dobrica Pavlinušić's random unstructured stuff (rotary encoder)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] rotary encoder} --></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#swd">Dobrica Pavlinušić's random unstructured stuff (SWD)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] SWD} --></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#pic">Dobrica Pavlinušić's random unstructured stuff (PIC)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] PIC} --></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#esp8089">Dobrica Pavlinušić's random unstructured stuff (esp8089)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] esp8089} --></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#ps_2_gpio">Dobrica Pavlinušić's random unstructured stuff (PS/2 GPIO)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] PS/2 GPIO} --></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#gpio_header_annotations">Dobrica Pavlinušić's random unstructured stuff (GPIO header annotations)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] GPIO header annotations} --></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#signal_generator">Dobrica Pavlinušić's random unstructured stuff (Signal generator)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Signal generator} --></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#lcd_panels">Dobrica Pavlinušić's random unstructured stuff (LCD panels)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] LCD panels} --></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#pi_zero_usb_otg">Dobrica Pavlinušić's random unstructured stuff (Pi Zero USB OTG)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Pi Zero USB OTG} --></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#pata_ide_emulation">Dobrica Pavlinušić's random unstructured stuff (PATA IDE emulation)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] PATA IDE emulation} --></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#dpi_lcd_screen">Dobrica Pavlinušić's random unstructured stuff (DPI LCD screen)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] DPI LCD screen} --></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#i2c_clock_stretching">Dobrica Pavlinušić's random unstructured stuff (i2c clock stretching)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] i2c clock stretching} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                <a href="/rot13/index.cgi?action=weblog_display;category=raspberrypi">Recent Changes in Tag raspberrypi</a>
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<br /><ul>
<li><span class="nlw_phrase"><a title="inter-workspace link: rot13" href="https://saturn.ffzg.hr/rot13/index.cgi?raspios">raspios</a><!-- wiki: {link: [raspios]} --></span></li>
<li><span class="nlw_phrase"><a title="inter-workspace link: rot13" href="https://saturn.ffzg.hr/rot13/index.cgi?pcf8591">PCF8591</a><!-- wiki: {link: [PCF8591]} --></span></li>
<li><span class="nlw_phrase"><a title="inter-workspace link: rot13" href="https://saturn.ffzg.hr/rot13/index.cgi?ov7670">OV7670</a><!-- wiki: {link: [OV7670]} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {tag_list: raspberrypi}
--></div><br /><br /><h1 id="interestring_projects">Interestring projects</h1>
<p>
TODO: test them out and write full description on this wiki :-)</p>
<ul>
<li>FreeLSS is a laser scanning program for the Raspberry Pi. It allows a Raspberry Pi to function as the core to a complete turn table laser scanning system.</li>

<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/hairu/freelss">https://github.com/hairu/freelss</a></li>
</ul>
<li>PWM on the Raspberry pi - done properly (in hardware, stable)</li>

<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/sarfata/pi-blaster">https://github.com/sarfata/pi-blaster</a></li>
</ul>
<li><a target="_blank" title="(external link)" href="https://github.com/ali1234/raspi-teletext">https://github.com/ali1234/raspi-teletext</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/jgarff/rpi_ws281x">https://github.com/jgarff/rpi_ws281x</a></li>
</ul>
<ul>
<li>u-boot on sdcard for nfs boot: <a target="_blank" title="(external link)" href="http://elinux.org/RPi_U-Boot">http://elinux.org/RPi_U-Boot</a></li>
</ul>
<ul>
<li>RF transmitter for Raspberry Pi <a target="_blank" title="(external link)" href="https://github.com/F5OEO/rpitx">https://github.com/F5OEO/rpitx</a></li>
</ul>
<h1 id="development">development</h1>
<ul>
<li>distcc setup <a target="_blank" title="(external link)" href="http://openframeworks.cc/setup/raspberrypi/Raspberry-Pi-DISTCC-guide.html">http://openframeworks.cc/setup/raspberrypi/Raspberry-Pi-DISTCC-guide.html</a></li>
<li>RPi (Raspbian arm) chroot on x86 Linux <a target="_blank" title="(external link)" href="http://dev.xff.lt/b/archives/2015/01/11/rpi_raspbian_arm_chroot_on_x86_linux/">http://dev.xff.lt/b/archives/2015/01/11/rpi_raspbian_arm_chroot_on_x86_linux/</a></li>

<ul>
<li><a target="_blank" title="(external link)" href="https://wiki.debian.org/QemuUserEmulation">https://wiki.debian.org/QemuUserEmulation</a> <a target="_blank" title="(external link)" href="https://wiki.debian.org/RaspberryPi/qemu-user-static">https://wiki.debian.org/RaspberryPi/qemu-user-static</a></li>
</ul></ul>
<h1 id="ov7670"><a href="https://saturn.ffzg.hr/rot13/index.cgi?ov7670" title="(137 months)  toc References http embeddedprogrammer.blogspot.com 2012 07 hacking-ov7670-camera-module-sccb-cheat...">OV7670</a></h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.raspberrypi.org/phpBB3/viewtopic.php?uid=25856&amp;f=44&amp;t=11839&amp;start=0">http://www.raspberrypi.org/phpBB3/viewtopic.php?uid=25856&amp;f=44&amp;t=11839&amp;start=0</a></li>
</ul>
<h1 id="dht11_dht22">DHT11/DHT22</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.tortosaforum.com/raspberrypi/dht11driver.htm">http://www.tortosaforum.com/raspberrypi/dht11driver.htm</a></li>
<li><a target="_blank" title="(external link)" href="http://learn.adafruit.com/dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging/overview">http://learn.adafruit.com/dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging/overview</a></li>
</ul>
<h1 id="blinkm_i2c"><a href="https://saturn.ffzg.hr/rot13/index.cgi?BlinkM" title="[click to create page]" class="incipient">BlinkM</a> + i2c</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.raspberrypi.org/forums/viewtopic.php?t=11969">http://www.raspberrypi.org/forums/viewtopic.php?t=11969</a></li>
</ul>
<h1 id="cec_control_your_tv">CEC - control your TV</h1>
<p>
<a target="_blank" title="(external link)" href="http://www.raspberrypi.org/forum/viewtopic.php?f=35&amp;t=15749">http://www.raspberrypi.org/forum/viewtopic.php?f=35&amp;t=15749</a></p>
<pre>
root@raspberrypi:/home/pi# git clone https://github.com/Pulse-Eight/libcec.git
root@raspberrypi:/home/pi# cd libcec/
root@raspberrypi:/home/pi/libcec# apt-get install autoconf automake libtool liblockdev1-dev libudev-dev libraspberrypi-dev
root@raspberrypi:/home/pi/libcec# sh -x bootstrap
root@raspberrypi:/home/pi/libcec# ./configure --with-rpi-include-path=/opt/vc/include/ --with-rpi-lib-path=/opt/vc/lib/

##############################################################################

libCEC version 2:1:0 configured

Compilation flags:
  CXXFLAGS :       -g -O2 -fPIC -Wall -Wextra -Wno-missing-field-initializers  -Wno-psabi
  libCEC LDFLAGS : -lbcm_host -llockdev -lrt -ldl -lpthread  -L/opt/vc/lib/ -lvcos -lvchiq_arm -ludev  
  client LDFLAGS : -lrt -ldl -lpthread 

Configured features:
  Pulse-Eight CEC Adapter :             yes
  Pulse-Eight CEC Adapter detection :   yes
  Raspberry Pi support :                yes
  TDA995x support :                     no

You can now build libCEC by running:
  make

##############################################################################

make install
</pre>
<br /><h2 id="tv_on">TV on</h2>
<pre>
pi@raspberrypi ~ $ echo &quot;on 0&quot; | cec-client -s
</pre>
<br /><h1 id="hints_from_forum">Hints from forum</h1>
<h2 id="screen_saver">screen saver</h2>
<p>
<a target="_blank" title="(external link)" href="http://www.raspberrypi.org/phpBB3/viewtopic.php?p=84831#p84831">http://www.raspberrypi.org/phpBB3/viewtopic.php?p=84831#p84831</a></p>
<pre>
# prevent screensaver from powering down display
setterm -blank 0 -powerdown 0 &gt; /dev/tty0

# clear the display and turn off the flashing cursor
clear &gt; /dev/tty0
setterm -cursor 0 &gt; /dev/tty0

# turn the cursor back on when done with omxplayer
setterm -cursor 1 &gt; /dev/tty0
</pre>
<br /><h2 id="youtube_transcoding_in_vlc">YouTube transcoding in VLC</h2>
<p>
<a target="_blank" title="(external link)" href="http://www.raspberrypi.org/phpBB3/viewtopic.php?p=163658#p163658">http://www.raspberrypi.org/phpBB3/viewtopic.php?p=163658#p163658</a></p>
<pre>
cvlc 'youtube.com/watch?v=XXXXXXXXXX' :sout='#transcode{vcodec=h264,vb=0,fps=0,scale=0,height=720,acodec=mp4a,ab=128,channels=2,samplerate=44100}:http{mux=ffmpeg{mux=flv},dst=:8080/youtube}' :sout-keep
</pre>
<br /><h1 id="education_materials">Education materials</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://pi.cs.man.ac.uk/download/Raspberry_Pi_Education_Manual.pdf">http://pi.cs.man.ac.uk/download/Raspberry_Pi_Education_Manual.pdf</a></li>
<li><a target="_blank" title="(external link)" href="http://www.ocr.org.uk/qualifications/by-subject/computing/raspberry-pi/">http://www.ocr.org.uk/qualifications/by-subject/computing/raspberry-pi/</a></li>
<li><a target="_blank" title="(external link)" href="http://www.cl.cam.ac.uk/projects/raspberrypi/">http://www.cl.cam.ac.uk/projects/raspberrypi/</a></li>
</ul>
<h1 id="raspberry_pi_accessories_starter_kit">Raspberry Pi Accessories Starter Kit</h1>
<p>
<a target="_blank" title="(external link)" href="http://www.conrad.com/ce/en/product/409208/Raspberry-Pi-Accessories-Starter-Kit?ref=searchDetail">http://www.conrad.com/ce/en/product/409208/Raspberry-Pi-Accessories-Starter-Kit?ref=searchDetail</a></p>
<ul>
<li>1x Rapberry sticker</li>
</ul>
<ul>
<li>Power supply for the Raspberry</li>
<li>Sturdy acrylic housing, which includes all possible connections for this Raspberry and perfectly protects</li>
<li>4 GB SD card to store your programs</li>

<ul>
<li><a target="_blank" title="(external link)" href="https://learn.adafruit.com/adafruit-raspberry-pi-lesson-1-preparing-and-sd-card-for-your-raspberry-pi">https://learn.adafruit.com/adafruit-raspberry-pi-lesson-1-preparing-and-sd-card-for-your-raspberry-pi</a></li>
</ul>
<li>USB Micro Card Reader</li>
<li>USB cable (for power supply or the power supply of a PC)</li>
<li>3 m Ethernet cable</li>

<ul>
<li><a target="_blank" title="(external link)" href="https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh">https://learn.adafruit.com/adafruits-raspberry-pi-lesson-6-using-ssh</a></li>
<li><a target="_blank" title="(external link)" href="https://learn.adafruit.com/adafruit-raspberry-pi-lesson-7-remote-control-with-vnc">https://learn.adafruit.com/adafruit-raspberry-pi-lesson-7-remote-control-with-vnc</a></li>
</ul>
<li>TTL USB cable</li>

<ul>
<li><a target="_blank" title="(external link)" href="https://learn.adafruit.com/adafruits-raspberry-pi-lesson-5-using-a-console-cable/test-and-configure">https://learn.adafruit.com/adafruits-raspberry-pi-lesson-5-using-a-console-cable/test-and-configure</a></li>
</ul>
<li>PI Cobbler (KIT hereby connect the RP with other circuit boards)</li>
<li>Large breadboard circuit</li>
<li>Colored board cable connector</li>
</ul>
<ul>
<li>5x 560 ohm resistors (for LEDS)</li>
<li>3x LED's (red, green, blue)</li>

<ul>
<li><a target="_blank" title="(external link)" href="https://learn.adafruit.com/raspberry-pi-e-mail-notifier-using-leds">https://learn.adafruit.com/raspberry-pi-e-mail-notifier-using-leds</a></li>
<li><a target="_blank" title="(external link)" href="https://learn.adafruit.com/debugging-with-the-raspberry-pi-webide/debug-a-blinking-led">https://learn.adafruit.com/debugging-with-the-raspberry-pi-webide/debug-a-blinking-led</a></li>
</ul>
<li>5x 10K resistors (for buttons)</li>
<li>3x pushbutton</li>

<ul>
<li><a target="_blank" title="(external link)" href="https://learn.adafruit.com/playing-sounds-and-using-buttons-with-raspberry-pi/bread-board-setup-for-input-buttons">https://learn.adafruit.com/playing-sounds-and-using-buttons-with-raspberry-pi/bread-board-setup-for-input-buttons</a></li>
</ul>
<li>1x photocell</li>

<ul>
<li><a target="_blank" title="(external link)" href="https://learn.adafruit.com/basic-resistor-sensor-reading-on-raspberry-pi/basic-photocell-reading">https://learn.adafruit.com/basic-resistor-sensor-reading-on-raspberry-pi/basic-photocell-reading</a></li>
</ul>
<li>1x 1uf capacitor (for photocell)</li>
</ul>
<h1 id="gpu">GPU</h1>
<ul>
<li>FFT</li>

<ul>
<li><a target="_blank" title="(external link)" href="http://www.raspberrypi.org/accelerating-fourier-transforms-using-the-gpu/">http://www.raspberrypi.org/accelerating-fourier-transforms-using-the-gpu/</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/raspberrypi/userland/tree/master/host_applications/linux/apps/hello_pi/hello_fft/qasm">https://github.com/raspberrypi/userland/tree/master/host_applications/linux/apps/hello_pi/hello_fft/qasm</a></li>
</ul>
<li>SHA-256</li>

<ul>
<li><a target="_blank" title="(external link)" href="http://rpiplayground.wordpress.com/">http://rpiplayground.wordpress.com/</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/elorimer/rpi-playground/tree/master/QPU">https://github.com/elorimer/rpi-playground/tree/master/QPU</a></li>
</ul>
<li>Machine learning - the Deep Belief image recognition SDK</li>

<ul>
<li><a target="_blank" title="(external link)" href="http://petewarden.com/2014/06/09/deep-learning-on-the-raspberry-pi/">http://petewarden.com/2014/06/09/deep-learning-on-the-raspberry-pi/</a></li>
<li><a target="_blank" title="(external link)" href="http://scientistnobee.wordpress.com/2014/06/20/machine-learning-with-raspberry-pi/">http://scientistnobee.wordpress.com/2014/06/20/machine-learning-with-raspberry-pi/</a></li>
</ul></ul>
<h1 id="arduino">Arduino</h1>
<ul>
<li>Connect using I2C <a target="_blank" title="(external link)" href="http://www.pihomeserver.fr/en/2013/08/13/raspberry-pi-home-server-arduino-lier-les-deux-via-bus-i2c/">http://www.pihomeserver.fr/en/2013/08/13/raspberry-pi-home-server-arduino-lier-les-deux-via-bus-i2c/</a></li>
</ul>
<h1 id="jtag">JTAG</h1>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/synthetos/PiOCD/wiki/Using-a-Raspberry-Pi-as-a-JTAG-Dongle">https://github.com/synthetos/PiOCD/wiki/Using-a-Raspberry-Pi-as-a-JTAG-Dongle</a></li>
</ul>
<h1 id="arduino_promini_3_3v_8mhz">Arduino ProMini 3.3V 8MHz</h1>
<h2 id="disable_serial_port_console">Disable serial port console</h2>
<p>
edit <tt>/boot/cmdline.txt</tt> and remove all ttyAMA0 leaving:</p>
<pre>
pi@raspberrypi ~ $ cat /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait bcm2708.w1_gpio_pin=4
</pre>
<br /><p>
also, comment out ttyAMA0 in <tt>/etc/inittab</tt></p>
<h2 id="connect_arduino_serial">connect Arduino serial</h2>
<p>
RX-&gt;TX<br />
TX-&gt;RX</p>
<p>
<a target="_blank" title="(external link)" href="https://github.com/dpavlin/avrdude-rpi/tree/fix_channel_in_use">https://github.com/dpavlin/avrdude-rpi/tree/fix_channel_in_use</a></p>
<p>
pin definitions in GPIO.RPi are physical pins on board <strong>not</strong> BCM or wiring ip!</p>
<span class="nlw_phrase"><img alt="gpio1.png" src="https://saturn.ffzg.hr/rot13/index.cgi/gpio1.png?action=attachments_download;page_name=raspberrypi;id=20141123131834-0-10839" /><!-- wiki: {image: gpio1.png} --></span><br /><br /><h2 id="flasing">flasing</h2>
<pre>
dpavlin@blue:~/Arduino/RF433_Sockets$ scp /tmp/build*.tmp/*.hex pi@rpi.tv:/tmp/
RF433_Sockets.cpp.hex                                        100%   19KB  18.6KB/s   00:00

pi@raspberrypi ~ $ cat avrdude.sh 
#!/bin/sh
hex=`ls -t /tmp/*.hex | head -1`
echo &quot;flash hex: $hex&quot;
sudo /home/pi/avrdude-rpi/avrdude-autoreset -C /home/pi/avrdude.conf -v -v -patmega328p -carduino -P/dev/ttyAMA0 -b57600 -D -Uflash:w:$hex:i 

pi@raspberrypi ~ $ ./avrdude.sh
flash hex: /tmp/RF433_Sockets.cpp.hex

avrdude: Version 6.1, compiled on Sep 17 2014 at 05:41:35
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is &quot;/home/pi/avrdude.conf&quot;
         User configuration file is &quot;/root/.avrduderc&quot;
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyAMA0
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
done with autoreset
strace: |/home/pi/avrdude-rpi/autoreset: Broken pipe
strace: |/home/pi/avrdude-rpi/autoreset: Broken pipe
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino
         Hardware Version: 2
         Firmware Version: 1.16
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e950f
avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: reading input file &quot;/tmp/RF433_Sockets.cpp.hex&quot;
avrdude: writing flash (6770 bytes):

Writing | ################################################## | 100% 1.98s

avrdude: 6770 bytes of flash written
avrdude: verifying flash memory against /tmp/RF433_Sockets.cpp.hex:
avrdude: load data flash data from input file /tmp/RF433_Sockets.cpp.hex:
avrdude: input file /tmp/RF433_Sockets.cpp.hex contains 6770 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 1.49s

avrdude: verifying ...
avrdude: 6770 bytes of flash verified

avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: safemode: Fuses OK (E:00, H:00, L:00)
strace: |/home/pi/avrdude-rpi/autoreset: Broken pipe
strace: |/home/pi/avrdude-rpi/autoreset: Broken pipe
strace: |/home/pi/avrdude-rpi/autoreset: Broken pipe
strace: |/home/pi/avrdude-rpi/autoreset: Broken pipe
strace: |/home/pi/avrdude-rpi/autoreset: Broken pipe

avrdude done.  Thank you.

strace: |/home/pi/avrdude-rpi/autoreset: Broken pipe
</pre>
<br /><h1 id="ds1307_tiny_rtc">DS1307 Tiny RTC</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.instructables.com/id/Set-up-Real-Time-Clock-RTC-on-Raspberry-Pi/">http://www.instructables.com/id/Set-up-Real-Time-Clock-RTC-on-Raspberry-Pi/</a></li>
<li><a target="_blank" title="(external link)" href="http://electronics.stackexchange.com/questions/98361/how-to-modify-ds1307-rtc-to-use-3-3v-for-raspberry-pi">http://electronics.stackexchange.com/questions/98361/how-to-modify-ds1307-rtc-to-use-3-3v-for-raspberry-pi</a></li>
</ul>
<p>
Check if module has 5V pull-up I2C resistors! If it does (like Tiny RTC has R2 and R3) you will have to remove them.</p>
<span class="nlw_phrase"><img alt="tiny-rtc-3.3v-remote-r2-r3.jpg" src="https://saturn.ffzg.hr/rot13/index.cgi/tiny-rtc-3.3v-remote-r2-r3.jpg?action=attachments_download;page_name=raspberrypi;id=20150424100102-0-26740" /><!-- wiki: {image: tiny-=rtc-=3.3v-=remote-=r2-=r3.jpg} --></span><br /><br /><pre>
root@raspberrypi:/home/pi# apt-get install i2c-tools

root@raspberrypi:/home/pi# modprobe i2c-dev

root@raspberrypi:/home/pi# i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         

root@raspberrypi:/home/pi# modprobe rtc-ds1307

root@raspberrypi:/home/pi# echo ds1307 0x68 &gt; /sys/class/i2c-adapter/i2c-1/new_device

root@raspberrypi:/home/pi# hwclock --systohc -D --noadjfile --utc
hwclock from util-linux 2.20.1
Using /dev interface to clock.
Assuming hardware clock is kept in UTC time.
Time elapsed since reference time has been 0.722720 seconds.
Delaying further to reach the new time.
Setting Hardware Clock to 11:53:41 = 1429876421 seconds since 1969
ioctl(RTC_SET_TIME) was successful.
</pre>
<br /><h2 id="ds18b20">DS18B20</h2>
<pre>
root@raspberrypi:/home/pi# grep w1 /boot/config.txt 
dtoverlay=w1-gpio

# reboot

root@raspberrypi:/home/pi# cat /sys/bus/w1/devices/28-0000043c5507/w1_slave 
50 05 4b 46 7f ff 0c 10 1c : crc=1c YES
50 05 4b 46 7f ff 0c 10 1c t=85000
</pre>
<br /><p>
Hmm, you will also want to remove R1 pullup to make it work?</p>
<h1 id="avrdude">avrdude</h1>
<p>
Using Raspberry Pi as Arduino ISP programmer</p>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/onandoffables/avrdude-linuxgpio">https://github.com/onandoffables/avrdude-linuxgpio</a></li>
</ul>
<pre>
root@raspberrypi:/home/pi# avrdude -c linuxgpio -p atmega328p

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f

avrdude: safemode: Fuses OK (E:05, H:DA, L:FF)

avrdude done.  Thank you.
</pre>
<br /><h1 id="logic_analyzer">logic analyzer</h1>
<ul>
<li>bare metal: <a target="_blank" title="(external link)" href="https://github.com/tuxyme/metal-pi">https://github.com/tuxyme/metal-pi</a></li>
<li>Panalyzer - a RaspberryPi based Logic Analyzer <a target="_blank" title="(external link)" href="https://github.com/richardghirst/Panalyzer">https://github.com/richardghirst/Panalyzer</a></li>
</ul>
<h1 id="rotary_encoder">rotary encoder</h1>
<p>
<a target="_blank" title="(external link)" href="http://www.bobrathbone.com/raspberrypi_rotary.htm">http://www.bobrathbone.com/raspberrypi_rotary.htm</a></p>
<h1 id="swd">SWD</h1>
<p>
<a target="_blank" title="(external link)" href="http://www.disk91.com/2015/technology/programming/swd-programming-using-a-raspberrypi/">http://www.disk91.com/2015/technology/programming/swd-programming-using-a-raspberrypi/</a><br />
<a target="_blank" title="(external link)" href="https://github.com/disk91/PySWD">https://github.com/disk91/PySWD</a></p>
<pre>
pi@raspberrypi ~ $ git clone https://github.com/disk91/PySWD
pi@raspberrypi ~ $ cd PySWD/

</pre>
<br /><h1 id="pic">PIC</h1>
<ul>
<li>rpp - PIC Programmer using GPIO <a target="_blank" title="(external link)" href="http://holdenc.altervista.org/rpp/">http://holdenc.altervista.org/rpp/</a></li>
<li><a target="_blank" title="(external link)" href="http://mujweb.cz/tlc/rpp/">http://mujweb.cz/tlc/rpp/</a></li>
<li><a target="_blank" title="(external link)" href="https://www.raspberrypi.org/forums/viewtopic.php?f=44&amp;t=14689&amp;start=75">https://www.raspberrypi.org/forums/viewtopic.php?f=44&amp;t=14689&amp;start=75</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/oh7bf/PiPIC">https://github.com/oh7bf/PiPIC</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/WallaceIT/picberry">https://github.com/WallaceIT/picberry</a></li>
</ul>
<h1 id="esp8089">esp8089</h1>
<ul>
<li><a target="_blank" title="(external link)" href="https://hackaday.io/project/8678-rpi-wifi-hat">https://hackaday.io/project/8678-rpi-wifi-hat</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/al177/esp8089">https://github.com/al177/esp8089</a></li>
</ul>
<h1 id="ps_2_gpio">PS/2 GPIO</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.deater.net/weave/vmwprod/hardware/pi-ps2/">http://www.deater.net/weave/vmwprod/hardware/pi-ps2/</a></li>

<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/deater/vmw-meter/blob/master/pi-ps2/linux-kernel/pi-ps2gpio.c">https://github.com/deater/vmw-meter/blob/master/pi-ps2/linux-kernel/pi-ps2gpio.c</a></li>
</ul></ul>
<h1 id="gpio_header_annotations">GPIO header annotations</h1>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/splitbrain/rpibplusleaf/tree/master">https://github.com/splitbrain/rpibplusleaf/tree/master</a></li>
</ul>
<h1 id="signal_generator">Signal generator</h1>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/JamesP6000/WsprryPi">https://github.com/JamesP6000/WsprryPi</a></li>
</ul>
<pre>
pi@rpi2 ~/WsprryPi $ sudo ./wspr --test-tone 1000000
A test tone will be generated at frequency 1.000000 MHz

Using local mbox device file with major 249.
Transmitting test tone on frequency 1.000000 MHz
Press CTRL-C to exit!
</pre>
<br /><ul>
<li><a target="_blank" title="(external link)" href="http://github.com/gryrmln/RPi_Wobbulator">http://github.com/gryrmln/RPi_Wobbulator</a></li>
</ul>
<h1 id="lcd_panels">LCD panels</h1>
<p>
<a target="_blank" title="(external link)" href="http://blog.reasonablycorrect.com/raw-dpi-raspberry-pi/">http://blog.reasonablycorrect.com/raw-dpi-raspberry-pi/</a></p>
<h1 id="pi_zero_usb_otg">Pi Zero USB OTG</h1>
<p>
libcomposite</p>
<ul>
<li><a target="_blank" title="(external link)" href="http://isticktoit.net/?p=1383">http://isticktoit.net/?p=1383</a></li>
</ul>
<h1 id="pata_ide_emulation">PATA IDE emulation</h1>
<ul>
<li><a target="_blank" title="(external link)" href="https://www.retrotronics.org/home-page/netpi-ide/">https://www.retrotronics.org/home-page/netpi-ide/</a></li>
</ul>
<h1 id="dpi_lcd_screen">DPI LCD screen</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://blog.reasonablycorrect.com/raw-dpi-raspberry-pi/">http://blog.reasonablycorrect.com/raw-dpi-raspberry-pi/</a></li>
<li><a target="_blank" title="(external link)" href="https://www.raspberrypi.org/forums/viewtopic.php?p=1023780#p1023780">https://www.raspberrypi.org/forums/viewtopic.php?p=1023780#p1023780</a></li>
</ul>
<h1 id="i2c_clock_stretching">i2c clock stretching</h1>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/raspberrypi/linux/issues/254#issuecomment-217047171">https://github.com/raspberrypi/linux/issues/254#issuecomment-217047171</a></li>
</ul>
</div>
<hr/><div>Attachments: gpio1.png, mount-rpi-image.sh, tiny-rtc-3.3v-remote-r2-r3.jpg</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>howto</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?raspberrypi</guid>
<pubDate>Tue, 04 Sep 2018 06:30:29 -0000</pubDate>
</item>
</channel>
</rss>