violet heart beat project

purpose: match my heart beat to my dogs

how: animal worn bio metric monitor

Configure your SD card with Pi OS

====================
=== Win32 Disk Imager
====================
— for .img files
— be save – always eject device
https://win32diskimager.download/
https://sourceforge.net/projects/win32diskimager/ 

====================
=== RASPBERRY PI IMAGER
====================
— for .xz files
https://www.raspberrypi.org/blog/raspberry-pi-imager-imaging-utility/
— be safe – always eject device

========================================
======================================== PI SETUP!
========================================
https://www.raspberrypi.org/blog/buster-the-new-version-of-raspbian/
====================
=== PREREQUISITE
====================
— Update Pi

sudo nano /etc/apt/sources.list

sudo apt-get update
sudo apt-get upgrade

Setup headless configuration

# configure realVNC

sudo apt-get update

sudo apt-get install realvnc-vnc-server

sudo raspi-config, navigate to Interfacing Options > VNC and select Yes

https://help.realvnc.com/hc/en-us/articles/360002249917-VNC-Connect-and-Raspberry-Pi#getting-connected-to-your-raspberry-pi-0-1

Setup wireless access point

# setup wireless access point

sudo apt-get update

sudo reboot

#
sudo apt-get install hostapd

sudo systemctl unmask hostapd

sudo systemctl enable hostapd

sudo apt-get install dnsmasq

#
sudo DEBIAN_FRONTEND=noninteractive apt install -y netfilter-persistent iptables-persistent

#conf dhcp is static ip v4
sudo nano /etc/dhcpcd.conf
#seting up static ip for headless config
interface wlan0
static ip_address=192.168.0.10/24
nohook wpa_supplicant
##ctrl O > ctrl X

sudo nano /etc/sysctl.d/routed-ap.conf
net.ipv4.ip_forward=1
##ctrl O > ctrl X

sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

sudo netfilter-persistent save

#conf dns
sudo mv /etc/dnsmasq.conf /etc/dnsmasq.conf.orig
sudo nano /etc/dnsmasq.conf
interface=wlan0
dhcp-range=192.168.0.11,192.168.0.30,255.255.255.0,24h
domain=wlan
address=/gw.wlan/192.168.0.1
##ctrl O > ctrl X

#conf host
sudo nano /etc/hostapd/hostapd.conf
interface=wlan0
ssid=NetworkName
wpa_passphrase=PassphrasePassphrase
hw_mode=g
channel=7
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
##ctrl O > ctrl X

sudo reboot

https://thepi.io/how-to-use-your-raspberry-pi-as-a-wireless-access-point/-

https://www.maketecheasier.com/how-to-turn-raspberry-pi-into-wireless-access-point/-

Load Audacity

Start the recording

arecord --device=hw:1,0 --format S16_LE --rate 44100 -c1 test.wav Will record signed 16-bit (S16_LE) audio at 44100 Hz (--rate 44100) mono (-c1) audio to test.wav. We’ve noted that any audio input will be echoed out the speakers as well You can have a little VU meter show up if you add to the-V mono command line. Press control-C to quit
raspberry_pi_arecord.png
Once you’re done recording you can play back with aplay --device=plughw:1,0 test.wav https://learn.adafruit.com/usb-audio-cards-with-a-raspberry-pi/recording-audio

GPS Configuration

========================================
========================================
====================
==== GPS (Adafruit Ultimate GPS)
====================
https://learn.adafruit.com/adafruit-ultimate-gps-on-the-raspberry-pi/introduction
https://learn.adafruit.com/adafruit-ultimate-gps-on-the-raspberry-pi/further-resources
https://gpsd.gitlab.io/gpsd/client-howto.html#_what_gpsd_does_and_what_it_cannot_do
https://gpsd.gitlab.io/gpsd/client-howto.html#_the_sockets_interface
https://github.com/adafruit/Adafruit_CircuitPython_GPS
–Installing a GPS Daemon (gpsd)
sudo apt-get install gpsd gpsd-clients
–disable a systemd service that gpsd installs and that messes with manual interaction (our routines)
sudo systemctl stop gpsd.socket
sudo systemctl disable gpsd.socket
–Run gpsd manually
sudo gpsd /dev/ttyUSB0 -F /var/run/gpsd.sock
cgps -s
–Kill it
sudo killall gpsd
–To programmatically access gpsd
pip3 install gps

http://aprs.gids.nl/nmea/
https://www.gpsworld.com/what-exactly-is-gps-nmea-data/
https://learn.adafruit.com/adafruit-ultimate-gps-on-the-raspberry-pi?view=all
https://learn.adafruit.com/adafruit-ultimate-gps-on-the-raspberry-pi/further-resources
https://learn.adafruit.com/adafruit-ultimate-gps/direct-computer-wiring
https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/installing-circuitpython-on-raspberry-pi
https://github.com/adafruit/circuitpython/releases
https://github.com/adafruit/Adafruit_CircuitPython_Bundle
https://www.bing.com/search?q=hciconfig+linux&qs=AS&pq=hciconfig&sk=AS5&sc=8-9&cvid=45D5462DAF824CC78F35E27130A18D4D&FORM=QBRE&sp=6
https://thispointer.com/how-to-append-text-or-lines-to-a-file-in-python/
https://www.instructables.com/id/Get-Started-With-Raspberry-PI-GUI/
https://projects.raspberrypi.org/en/projects/getting-started-with-guis/3
https://www.instructables.com/id/How-to-connect-the-DeLorme-Earthmate-GPS-LT-20-to-/
https://technogog.com/review/delorme-earthmate-gps-lt-20-usb-gps-receiver-wstreet-atlas-usa-2008-software/
https://gordonlesti.com/use-tkinter-without-mainloop/

https://gpsd.gitlab.io/gpsd/index.html
https://docs.fileformat.com/gis/gpx/
https://www.google.com/earth/outreach/learn/importing-global-positioning-systems-gps-data-in-google-earth/
https://pythonpedia.com/en/tutorial/5744/python-serial-communication-pyserial-
https://opensource.com/article/20/5/usb-port-raspberry-pi-python
https://github.com/adafruit/Adafruit_CircuitPython_GPS
https://www.filedesc.com/en/file/nmea
https://www.linux-magazine.com/Issues/2018/210/Tutorial-gpsd

====

hciconfig
hcitool scan

bluetoothctl
scan on/off
info xx:–

Pi Camera Configuration

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

3.5 Screen

========================================
========================================
====================
==== USING 3.5″, 5″, 7″ or HDMI screens
====================
— MAKE SURE that SPI interface is turned on
— then try
git clone https://github.com/waveshare/LCD-show.git
cd LCD-show/
chmod +x LCD35-show
— if that doesn’t work rename the LCD-show directory and try
sudo rm -rf LCD-show
git clone https://github.com/goodtft/LCD-show.git
chmod -R 755 LCD-show

— switch screen output to 3.5 and rotate sceen 180
cd LCD-show/
./LCD35-show 180
— switch screen output to hdmi
cd ./LCD-show
./LCD-hdmi

https://www.waveshare.com/wiki/3.5inch_RPi_LCD_(A)#Driver — try first
http://www.lcdwiki.com/3.5inch_RPi_Display
https://darwindelacruz.wordpress.com/2017/06/06/how-to-install-a-3-5-lcd-display-on-raspberry-pi/
https://osoyoo.com/2020/03/18/3-5inch-raspberry-pi-touch-screen-lcd-display/
https://circuitdigest.com/microcontroller-projects/interfacing-3.5-inch-touchscreen-tft-lcd-with-raspberry-pi
https://trickiknow.com/how-to-install-waveshare-3-5-inch-lcd-on-raspberry-pi-4/
https://github.com/Elecrow-RD/Elecrow-LCD35

https://www.ebay.com/itm/3-5-5-7-Touch-Screen-Display-HDMI-LCD-Module-Case-Kit-Fr-Raspberry-Pi-3B-2B/142831776807?ssPageName=STRK%3AMEBIDX%3AIT&var=441833245440&_trksid=p2057872.m2749.l2649