Mobile Wireless SD backup and browsing solution

Well I have been considering this for awhile now, as a part time photo nut, I would love to copy my photo’s from my SD cards without lugging a laptop around.

So the following attributes is what I would like in the solution

  1. runs off battery
  2. display to indicate what is happening
  3. some way to interact with the system (buttons, touch screen, something)
  4. SD card reader
  5. large storage space (disk drive for storage)
  6. web server to allow viewing files saved
  7. Wi-Fi access (run as AP and able to join an existing network)
  8. SAMBA access to getting file off and saving others
  9. SFTP for secure file transfer
  10. simple trigger for SD backups
  11. backups wont over right existing files
  12. single image copy to save space (would be nice)

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.

So my plan has the following parts currently

  1. Raspberry Pi 4 (4Gb RAM, 2 x USB3, 2 x USB2, Ethernet, 2.4/5Ghz Wi-Fi and Bluetooth)
  2. Touchscreen 3.5 inch 480×320 mounted in a case from Ebay
  3. USB Multi card reader like this from Ebay
  4. USB to SATA adapter like this from Ebay
  5. Laptop hard drive like this from Umart
  6. USB rechargeable battery pack with 2 amp output (prefer to have 5.1V) or UPS Raspberry Pi Hat

I will be using the following technology

  • Python 3
  • Raspbian
  • to be added to

So this is the start and I will update as I go.

 

https://learn.adafruit.com/raspberry-pi-pygame-ui-basics

https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi/pitft-pygame-tips

 

Raspberry Pi setup

Create new SD card

sudo raspi-config

Enable SSH, I2C, SPI
Set Hostname, auto logon and location

sudo reboot

used this site http://www.lcdwiki.com/3.5inch_RPi_Display to setup the LCD screen as follows

sudo apt-get install -y git
sudo rm -rf LCD-show
git clone https://github.com/goodtft/LCD-show.git
chmod -R 755 LCD-show
cd LCD-show/
sudo ./LCD35-show
reboot
cd LCD-show/
sudo ./rotate.sh 180
reboot
sudo apt-get update
sudo apt --fix-broken install -y
sudo apt-get upgrade -y
sudo reboot
#sudo apt install python3-pip -y
#python3 -m pip install -U pygame --user

sudo apt install python-pip -y

#python -m pip install -U pygame --user

sudo apt-get install python-pygame -y

 

python3 failed to work with pygame on the Raspberry Pi, reverting to python 2

 

 

https://wiki.52pi.com/index.php/UPS_for_Raspberry_Pi_4B/3B%2B/3B_SKU:_EP-0114

https://wiki.52pi.com/index.php/UPS_(With_RTC_%26_Coulometer)_For_Raspberry_Pi_SKU:_EP-0118

 

 

sudo apt-get install -y git
sudo rm -rf LCD-show
git clone https://github.com/goodtft/LCD-show.git
chmod -R 755 LCD-show
cd LCD-show/
sudo ./LCD35-show

cd LCD-show/
sudo ./rotate.sh 180
reboot

sudo apt-get update
sudo apt –fix-broken install -y
sudo apt-get upgrade -y

sudo apt install python-pip -y

sudo apt-get install python-pygame -y

sudo pip3 install pi-ina219

sudo modprobe i2c-bcm2835
sudo modprobe rtc-ds1307
sudo su
echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device

# nano /boot/config.txt
#uncomment the following lines
#dtoverlay=i2c-rtc,ds1307
#dtparam=i2c_arm=on

sudo apt-get -y remove fake-hwclock
sudo update-rc.d -f fake-hwclock remove

#nano /lib/udev/hwclock-set
#comment out the following lines
#if [ -e /run/systemd/system ] ; then
# exit 0
#fi

dmesg |grep rtc
date && sudo hwclock -r

sudo apt-get install exfat-fuse -y

 

 

 

Total Page Visits: 1763