{"id":581,"date":"2020-12-03T23:31:41","date_gmt":"2020-12-03T13:31:41","guid":{"rendered":"https:\/\/www.tinkerdesign.org\/?page_id=581"},"modified":"2021-01-20T17:18:27","modified_gmt":"2021-01-20T07:18:27","slug":"mobile-wireless-sd-backup-and-browsing-solution","status":"publish","type":"page","link":"https:\/\/www.tinkerdesign.org\/?page_id=581","title":{"rendered":"Mobile Wireless SD backup and browsing solution"},"content":{"rendered":"<p>Well I have been considering this for awhile now, as a part time photo nut, I would love to copy my photo&#8217;s from my SD cards without lugging a laptop around.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-583\" src=\"https:\/\/www.tinkerdesign.org\/wp-content\/uploads\/2020\/12\/raspberry_pi_4.jpg\" alt=\"\" width=\"293\" height=\"172\" \/><\/p>\n<p>So the following attributes is what I would like in the solution<\/p>\n<ol>\n<li>runs off battery<\/li>\n<li>display to indicate what is happening<\/li>\n<li>some way to interact with the system (buttons, touch screen, something)<\/li>\n<li>SD card reader<\/li>\n<li>large storage space (disk drive for storage)<\/li>\n<li>web server to allow viewing files saved<\/li>\n<li>Wi-Fi access (run as AP and able to join an existing network)<\/li>\n<li>SAMBA access to getting file off and saving others<\/li>\n<li>SFTP for secure file transfer<\/li>\n<li>simple trigger for SD backups<\/li>\n<li>backups wont over right existing files<\/li>\n<li>single image copy to save space (would be nice)<\/li>\n<\/ol>\n<p>As a lover of the Raspberry Pi platform, this will be the core of the project, it also makes some aspects easy as they can have Wi-Fi, 4 USB ports, Ethernet, displays that just plug in and runs Linux to make life plug and play.<\/p>\n<p>So my plan has the following parts currently<\/p>\n<ol>\n<li>Raspberry Pi 4 (4Gb RAM, 2 x USB3, 2 x USB2, Ethernet, 2.4\/5Ghz Wi-Fi and Bluetooth)<\/li>\n<li>Touchscreen 3.5 inch 480&#215;320 mounted in a case from <a title=\"\" href=\"https:\/\/www.ebay.com.au\/itm\/3-5-inch-480x320-Resolution-Monitor-TFT-LCD-Display-for-Raspberry-Pi-4B-TE1266\/233768487711?ssPageName=STRK%3AMEBIDX%3AIT&amp;_trksid=p2057872.m2749.l2649\">Ebay<\/a><\/li>\n<li>USB Multi card reader like this from <a title=\"\" href=\"https:\/\/www.ebay.com.au\/itm\/NEW-USB-2-0-All-in-One-Multi-Memory-Card-Reader-TF-MS-M2-CF-XD-Micro-SD-HC-WHITE\/200740195007?epid=1191514600&amp;hash=item2ebd0c4abf:g:z3sAAOSwOuBbmNUy\">Ebay<\/a><\/li>\n<li>USB to SATA adapter like this from <a href=\"https:\/\/www.ebay.com.au\/itm\/USB-3-0-to-SATA-2-5-Hard-Drive-HDD-SSD-Adapter-Converter-Cable-22Pin-UASP-AU\/163206555555?ssPageName=STRK%3AMEBIDX%3AIT&amp;_trksid=p2057872.m2749.l2649\">Ebay<\/a><\/li>\n<li>Laptop hard drive like this from <a href=\"https:\/\/www.umart.com.au\/Western-Digital-WD10SPZX-Blue-1TB-SATA-6-Gb-s-5400-RPM-2-5_39503G.html\">Umart<\/a><\/li>\n<li>USB rechargeable battery pack with 2 amp output (prefer to have 5.1V) or <a title=\"\" href=\"https:\/\/www.ebay.com.au\/itm\/52Pi-Original-18650-UPS-for-Raspberry-Pi-4B-3B-3B\/284051283595?hash=item4222c69e8b:g:kNsAAOSwSqJfokZn\">UPS Raspberry Pi Hat<\/a><\/li>\n<li><\/li>\n<\/ol>\n<p>I will be using the following technology<\/p>\n<ul>\n<li>Python 3<\/li>\n<li>Raspbian<\/li>\n<li>to be added to<\/li>\n<\/ul>\n<p>So this is the start and I will update as I go.<\/p>\n<p>&nbsp;<\/p>\n<p>https:\/\/learn.adafruit.com\/raspberry-pi-pygame-ui-basics<\/p>\n<p>https:\/\/learn.adafruit.com\/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi\/pitft-pygame-tips<\/p>\n<p>&nbsp;<\/p>\n<h4>Raspberry Pi setup<\/h4>\n<p>Create new SD card<\/p>\n<pre>sudo raspi-config<\/pre>\n<p>Enable SSH, I2C, SPI<br \/>\nSet Hostname, auto logon and location<\/p>\n<pre>sudo reboot<\/pre>\n<p>used this site http:\/\/www.lcdwiki.com\/3.5inch_RPi_Display to setup the LCD screen as follows<\/p>\n<pre>sudo apt-get install -y git<\/pre>\n<pre>sudo rm -rf LCD-show<\/pre>\n<pre>git clone <a class=\"external free\" href=\"https:\/\/github.com\/goodtft\/LCD-show.git\" target=\"_blank\" rel=\"nofollow noreferrer noopener\">https:\/\/github.com\/goodtft\/LCD-show.git<\/a><\/pre>\n<pre>chmod -R 755 LCD-show\r\ncd LCD-show\/\r\nsudo .\/LCD35-show\r\nreboot<\/pre>\n<pre>cd LCD-show\/\r\nsudo .\/rotate.sh 180\r\nreboot\r\nsudo apt-get update\r\nsudo apt --fix-broken install -y\r\nsudo apt-get upgrade -y\r\nsudo reboot<\/pre>\n<pre>#sudo apt install python3-pip -y<\/pre>\n<pre>#python3 -m pip install -U pygame --user\r\n\r\nsudo apt install python-pip -y\r\n\r\n#python -m pip install -U pygame --user\r\n\r\nsudo apt-get install python-pygame -y<\/pre>\n<p>&nbsp;<\/p>\n<p>python3 failed to work with pygame on the Raspberry Pi, reverting to python 2<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>https:\/\/wiki.52pi.com\/index.php\/UPS_for_Raspberry_Pi_4B\/3B%2B\/3B_SKU:_EP-0114<\/p>\n<p>https:\/\/wiki.52pi.com\/index.php\/UPS_(With_RTC_%26_Coulometer)_For_Raspberry_Pi_SKU:_EP-0118<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>sudo apt-get install -y git<br \/>\nsudo rm -rf LCD-show<br \/>\ngit clone https:\/\/github.com\/goodtft\/LCD-show.git<br \/>\nchmod -R 755 LCD-show<br \/>\ncd LCD-show\/<br \/>\nsudo .\/LCD35-show<\/p>\n<p>cd LCD-show\/<br \/>\nsudo .\/rotate.sh 180<br \/>\nreboot<\/p>\n<p>sudo apt-get update<br \/>\nsudo apt &#8211;fix-broken install -y<br \/>\nsudo apt-get upgrade -y<\/p>\n<p>sudo apt install python-pip -y<\/p>\n<p>sudo apt-get install python-pygame -y<\/p>\n<p>sudo pip3 install pi-ina219<\/p>\n<p>sudo modprobe i2c-bcm2835<br \/>\nsudo modprobe rtc-ds1307<br \/>\nsudo su<br \/>\necho ds1307 0x68 &gt; \/sys\/class\/i2c-adapter\/i2c-1\/new_device<\/p>\n<p># nano \/boot\/config.txt<br \/>\n#uncomment the following lines<br \/>\n#dtoverlay=i2c-rtc,ds1307<br \/>\n#dtparam=i2c_arm=on<\/p>\n<p>sudo apt-get -y remove fake-hwclock<br \/>\nsudo update-rc.d -f fake-hwclock remove<\/p>\n<p>#nano \/lib\/udev\/hwclock-set<br \/>\n#comment out the following lines<br \/>\n#if [ -e \/run\/systemd\/system ] ; then<br \/>\n# exit 0<br \/>\n#fi<\/p>\n<p>dmesg |grep rtc<br \/>\ndate &amp;&amp; sudo hwclock -r<\/p>\n<p>sudo apt-get install exfat-fuse -y<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<table id=\"wizard-listing\" class=\"table-outer form-table all-table-listing\">\n<tbody>\n<tr id=\"wizard_row_1\">\n<td><\/td>\n<td><div class=\"page_counter_label\"><span class=\"page_counter_text\" style=\"color:#000000;background:#FFFFFF;\">Total Page Visits: 2495<\/span><\/div><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n ","protected":false},"excerpt":{"rendered":"<p>Well I have been considering this for awhile now, as a part time photo nut, I would love to copy my photo&#8217;s from my SD cards without lugging a laptop&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.tinkerdesign.org\/index.php?rest_route=\/wp\/v2\/pages\/581"}],"collection":[{"href":"https:\/\/www.tinkerdesign.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.tinkerdesign.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.tinkerdesign.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tinkerdesign.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=581"}],"version-history":[{"count":8,"href":"https:\/\/www.tinkerdesign.org\/index.php?rest_route=\/wp\/v2\/pages\/581\/revisions"}],"predecessor-version":[{"id":592,"href":"https:\/\/www.tinkerdesign.org\/index.php?rest_route=\/wp\/v2\/pages\/581\/revisions\/592"}],"wp:attachment":[{"href":"https:\/\/www.tinkerdesign.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}