Revision history for RaspberryPiInCarProject


Revision [3121]

Last edited on 2018-05-17 08:39:35 by ZorrUno [Denkovi Relay Manager (DRM)]
Additions:
Software for Linux & Windows that controls these relay modules visually
Denkovi Relay Manager (DRM)
http://denkovi.com/drm-software


Revision [2649]

Edited on 2016-12-17 11:02:31 by ZorrUno [street name from google]
Additions:
Getting a json of the current street location
http://stackoverflow.com/questions/6582479/finding-nearest-street-given-a-lat-long-location
http://maps.googleapis.com/maps/api/geocode/json?latlng=-36.91537505,174.927379794&sensor=true_or_false


Revision [2648]

Edited on 2016-12-14 09:08:26 by ZorrUno [volume control?]
Additions:
Maybe need this?
https://support.hifiberry.com/hc/en-us/articles/205377202-Adding-software-volume-control


Revision [2647]

Edited on 2016-12-14 09:02:05 by ZorrUno [updated timeline with more links etc]
Additions:
- Found [[https://goo.gl/photos/Vkxzb1F7429FF5YAA|box from neighbour's electrical junk]]
- RPi 1B and Powerboard Board, battery [[https://goo.gl/photos/557hZXdP5od1e4TA7|mounted in the box]]
- Basic i/o [[https://goo.gl/photos/EBsePoqLMcXUVTai9 connected and tested]]
- Ordered a [[https://nicegear.co.nz/raspberry-pi/high-precision-real-time-clock-for-raspberry-pi/|RTC]] and [[https://nicegear.co.nz/electronics-gear/adafruit-i2s-3w-class-d-amplifier-breakout-max98357a/|i2S]] amplifier module
- Decided on [[https://goo.gl/photos/yKk6YVA8tEDinBCm8|circuitry for triggers and overrides]]
- Obtained additional components, found some swiches, diodes etc
- Received RTC and Amp module
- Moved the GPIO pins that were planned as the interfered with placing the RTC
- played with a [[http://www.ebay.com/itm/For-Smart-Home-5V-USB-Relay-2-Channel-Programmable-Computer-Control-/190950124351|USB relay]] (Mobius camera switching?)
- wired the box up with switches for ACC and Trigger inputs etc (ref [[https://goo.gl/photos/NFBVQ3dewDmL2xA17|wiring diagram]])
- Installed sox, flite etc and KMWs IVR script, tester IVR
Deletions:
- Found box from neighbour's electrical junk
- Boards etc Mounted in box https://goo.gl/photos/557hZXdP5od1e4TA7
- i/o Connected and tested https://goo.gl/photos/EBsePoqLMcXUVTai9
- Ordered RTC and Amp modules
- Decided on circuitry for triggers and overrides https://goo.gl/photos/yKk6YVA8tEDinBCm8
- Obtained additional components, decided on switch types
- Got i/o pins working for hold and ACC active
- Moved GPIO pins as interfered with placing the RTC
- played with a USB relay (Mobius camera switching?)
- wired the box up with switches for ACC and Trigger inputs etc (ref wiring diagram)
- Installed sox, flite etc and KMWs IVR script... so this working


Revision [2646]

Edited on 2016-12-14 08:51:09 by ZorrUno [spelling]
Additions:
- Looks [[https://goo.gl/photos/2JmdqgAG8XYC6X2s5|like this now]]
Deletions:
- Looks [[https://goo.gl/photos/2JmdqgAG8XYC6X2s5|list this now]]


Revision [2645]

Edited on 2016-12-14 08:50:43 by ZorrUno [photo of setup]
Additions:
- Looks [[https://goo.gl/photos/2JmdqgAG8XYC6X2s5|list this now]]


Revision [2644]

Edited on 2016-12-14 00:08:09 by ZorrUno [wiring done, sound and IVR working]
Additions:
- wired the box up with switches for ACC and Trigger inputs etc (ref wiring diagram)
- Got the i2s sound module working
- Installed sox, flite etc and KMWs IVR script... so this working


Revision [2643]

Edited on 2016-12-13 23:05:50 by ZorrUno [pinouts]
Additions:
Pi Pinouts http://pinout.xyz/


Revision [2642]

Edited on 2016-12-13 14:57:21 by ZorrUno [reverse ssh tunnel]
Additions:
reverse ssh and other useful stuff
http://k3a.me/how-to-make-raspberrypi-truly-read-only-reliable-and-trouble-free/


Revision [2641]

Edited on 2016-12-13 14:49:38 by ZorrUno [wifi check script]
Additions:
=====Other Useful Scripts & Links=====
Maybe a check for wifi and restarting if needed
https://paste.k3a.me/view/449a6f1c


Revision [2640]

Edited on 2016-12-13 14:29:13 by ZorrUno [more union fs info]
Additions:
At Paul's, 192.168.1.205
http://kurokesu.com/main/2015/12/30/raspberry-pi-setup-for-power-safe-operation/


Revision [2639]

Edited on 2016-12-13 14:27:45 by ZorrUno [unionfs]
Additions:
=====File system read/write=====
Need a read only fole system os some sort to allow power off at any stage, and improve lifetime of SD car etc in car environment
http://blog.pi3g.com/2014/04/make-raspbian-system-read-only/
Set up UnionFS


Revision [2638]

Edited on 2016-12-13 12:13:34 by ZorrUno [more rtc stuff... get it to get board time on boot]
Additions:
https://thepihut.com/blogs/raspberry-pi-tutorials/17209332-adding-a-real-time-clock-to-your-raspberry-pi
i2c device so when plugged in - run this to see if it is there
sudo i2cdetect -y 1
set up ntp to set the RTC (I did that with network and GPS time)
Run ##sudo hwclock -w## to write the system time to the RTC board.
then will need to add the RTC kernel module to the file /etc/modules so it is loaded when the Pi boots.
##sudo nano /etc/modules##
add rtc-ds1307 at the end


Revision [2637]

Edited on 2016-12-13 00:09:13 by ZorrUno [ldconfig needed]
Additions:
Used one of these with a USBA cable
http://www.ebay.com/itm/For-Smart-Home-5V-USB-Relay-2-Channel-Programmable-Computer-Control-/190950124351
No HID drivers in raspberry pi so need to build them
##If you've installed your own libraries in /usr/local/lib have you run sudo ldconfig after doing that.##


Revision [2636]

Edited on 2016-12-12 23:55:15 by ZorrUno [usb relay]
Additions:
- played with a USB relay (Mobius camera switching?)
=====USB Relay=====
https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=77538
http://matthewcmcmillan.blogspot.co.nz/2013/03/compiling-libhid-for-raspbian-linux-on.html
http://www.signal11.us/oss/hidapi/
sudo ./usbrelay 2>/dev/null
OUGOH_1=1
OUGOH_2=1
$ sudo ./usbrelay PSUIS_2=0
$ sudo ./usbrelay PSUIS_2=1 PSUIS_1=0
$ sudo ./usbrelay PSUIS_2=0 PSUIS_1=1 0U70M_1=0 0U70M_2=1


Revision [2635]

Edited on 2016-12-12 22:37:43 by ZorrUno [usb relay]
Additions:
- Put script in /etc/rc.local
- got gpspipe to dump a logfile continually
- got gpspipe to start logging on boot up with /etc/rc.local


Revision [2634]

Edited on 2016-12-12 22:32:02 by ZorrUno [usb relay]
Additions:
**Possible fix needed?**
##Note if you're using the Raspbian Jessie or later release
you'll need to disable a systemd (system management daemons) service that gpsd installs. This service has systemd listen on a local socket and run gpsd when clients connect to it, however it will also interfere with other gpsd instances that are manually run (like in this guide). You will need to disable the gpsd systemd service by running the following commands:
sudo systemctl stop gpsd.socket
sudo systemctl disable gpsd.socket
Should you ever want to enable the default gpsd systemd service you can run these commands to restore it (but remember the rest of the steps in this guide won't work):##


Revision [2633]

Edited on 2016-12-12 22:14:40 by ZorrUno [gps and gps ntp time]
Additions:
- Plugged in the GPS mouse
- spent ages getting gpsd to work
- installed ntp and got time set with GPS


Revision [2632]

Edited on 2016-12-12 22:13:18 by ZorrUno [gps and gps ntp time]
Additions:
Next you need to edit the file: /etc/ntp.conf and add a few lines to it defining the GPS. This can be either before or after the existing lines beginning with server:
# gps ntp
server 127.127.28.0 minpoll 4
fudge 127.127.28.0 time1 0.183 refid NMEA
server 127.127.28.1 minpoll 4 prefer
fudge 127.127.28.1 refid PPS
then restart ntp
##pi@raspberrypi:~$ sudo service ntp restart##


Revision [2631]

Edited on 2016-12-12 22:09:11 by ZorrUno [ntp time with gps]
Additions:
then modify ntp to set system time based on ntp
https://blog.retep.org/2012/06/18/getting-gps-to-work-on-a-raspberry-pi/


Revision [2630]

Edited on 2016-12-12 21:59:55 by ZorrUno [Edit /etc/default/gpsd]
Additions:
Edit /etc/default/gpsd
# Default settings for the gpsd init script and the hotplug wrapper.
# Start the gpsd daemon automatically at boot time
START_DAEMON="true"
# Use USB hotplugging to add new USB devices automatically to the daemon
USBAUTO="true"
# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
DEVICES="/dev/ttyUSB0"
# Other options you want to pass to gpsd
GPSD_OPTIONS="-F /var/run/gpsd.socket"


Revision [2629]

Edited on 2016-12-12 21:58:42 by ZorrUno [gps stuff]
Additions:
http://raspberrypi.stackexchange.com/questions/28483/cgps-gps-timeout
##
sudo killall gpsd
sudo systemctl enable gpsd.socket
sudo systemctl start gpsd.socket
sudo cgps -s
##


Revision [2628]

Edited on 2016-12-12 21:57:02 by ZorrUno [gps stuff]

No Differences

Revision [2627]

Edited on 2016-12-12 19:29:12 by ZorrUno [gps stuff]
Additions:
Just needed to install gpsd and a bunch of stuff that comes with it
##sudo apt-get install gpsd gpsd-clients python-gps##
Deletions:
Just needed to
##sudo apt-get install gpsd gpsd-clients python-gps"" which installs a bunch of stuff


Revision [2626]

Edited on 2016-12-12 19:28:13 by ZorrUno [gps stuff]
Additions:
Just needed to
##sudo apt-get install gpsd gpsd-clients python-gps"" which installs a bunch of stuff
test status with ##cgps -s##


Revision [2625]

Edited on 2016-12-12 19:25:44 by ZorrUno [GPS Setup]
Additions:
=====i/o Setup=====
=====GPS Setup=====
http://raspberrypi.stackexchange.com/questions/547/how-do-i-attach-a-gps-receiver
Deletions:
=====i/o for this project=====


Revision [2624]

Edited on 2016-12-12 19:22:58 by ZorrUno [GPS Setup]
Additions:
- Got i/o pins working for hold and ACC active
- Moved GPIO pins as interfered with placing the RTC
- Got the RTC working
- Scripted the first part of bootup to set the GPIO
++Used a 4 pin floppy disk connector on physical pins 7,9,11,13 which equates to IO4,GND,IO17,IO27.
The connector has fly leads of yellow (io4), black (gnd), black (IO17), red (IO27). The black was useful as a gnd for first testing IO but both black lead was then snipped.++
Changed to individual pins - GPIO 27 and 17
**GPIO Port 17 for HOLD** (setting as 1 sets GPIO 17 to 3.3v)
echo 17 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio17/direction
echo 1 > /sys/class/gpio/gpio17/value##
notes, this is obviously volatile... on reboot GPIO17 ++is high++ appears high, but is actually floating. It appears to drop low when direction is set to 'out'
Deletions:
Used a 4 pin floppy disk connector on physical pins 7,9,11,13 which equates to IO4,GND,IO17,IO27.
The connector has fly leads of yellow (io4), black (gnd), black (IO17), red (IO27). The black was useful as a gnd for first testing IO but both black lead was then snipped.
**GPIO Port 4 for HOLD** (setting as 1 sets GPIO 4 to 3.3v)
echo 4 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio4/direction
echo 1 > /sys/class/gpio/gpio4/value##
notes, this is obviously volatile... on reboot GPIO4 ++is high++ appears high, but is actually floating. It appears to drop low when direction is set to 'out'


Revision [2623]

Edited on 2016-12-12 18:48:10 by ZorrUno [using the rtc]
Additions:
Need to check pinouts - doesn't piggyback so need to make sure we don't need the same i/o pins.
Info on how to use https://nicegear.co.nz/blog/using-a-ds3231-i2c-real-time-clock-rtc-with-a-raspberry-pi-updated-for-jessie/
Deletions:
Need to check pinouts - doesn't piggyback so need to make sire we don't need the same i/o pins.


Revision [2610]

Edited on 2016-12-05 08:40:32 by ZorrUno [original notes page]
Additions:
Original concept notes: MiniCarComputer


Revision [2608]

Edited on 2016-12-03 20:52:38 by ZorrUno [i2s]
Additions:
Notes on this unit https://learn.adafruit.com/adafruit-max98357-i2s-class-d-mono-amp/raspberry-pi-usage


Revision [2607]

Edited on 2016-12-02 14:18:52 by ZorrUno [layout tweaks]
Additions:
- Tested Pi power board functionality...
- Decided on circuitry for triggers and overrides https://goo.gl/photos/yKk6YVA8tEDinBCm8
Deletions:
- Decided on circuitry to ensure triggers work, and can override them https://goo.gl/photos/yKk6YVA8tEDinBCm8


Revision [2606]

Edited on 2016-12-02 14:17:26 by ZorrUno [timeline started and updated]
Additions:
=====Progress/Timeline =====
- Found box from neighbour's electrical junk
- Found spare USB Hub and pulled cover off
- Got to play with my dremel...
- Boards etc Mounted in box https://goo.gl/photos/557hZXdP5od1e4TA7
- decided to use my RPi3 instead of pi1.
- got a spare USB memory stick to use
- booted up raspbian console via HDMI and set up networking & OS updates
- i/o Connected and tested https://goo.gl/photos/EBsePoqLMcXUVTai9
- Ordered RTC and Amp modules
- Decided on circuitry to ensure triggers work, and can override them https://goo.gl/photos/yKk6YVA8tEDinBCm8
- Obtained additional components, decided on switch types
Deletions:
=====Photo Progress=====
Boards etc Mounted in box (Before changing to RPi3)
https://goo.gl/photos/557hZXdP5od1e4TA7
i/o Connected and tested
https://goo.gl/photos/EBsePoqLMcXUVTai9


Revision [2605]

Edited on 2016-12-02 14:11:46 by ZorrUno [real time clock]
Additions:
=====Time and Date=====
Decided to get a RTC as may not always have GPS and/or network. Wrong log times are annoying.
https://nicegear.co.nz/raspberry-pi/high-precision-real-time-clock-for-raspberry-pi/
Can get similar for <$2 from china but this will do
Need to check pinouts - doesn't piggyback so need to make sire we don't need the same i/o pins.


Revision [2604]

Edited on 2016-12-02 14:08:43 by ZorrUno [i2S amp board]
Additions:
Ordered one of these... can get cheaper/similar but this should do
https://nicegear.co.nz/electronics-gear/adafruit-i2s-3w-class-d-amplifier-breakout-max98357a/
...need i2S pinouts for Pi3


Revision [2602]

Edited on 2016-11-29 22:51:58 by ZorrUno [photo links added]
Additions:
=====Photo Progress=====
Boards etc Mounted in box (Before changing to RPi3)
https://goo.gl/photos/557hZXdP5od1e4TA7
i/o Connected and tested
https://goo.gl/photos/EBsePoqLMcXUVTai9


Revision [2601]

Edited on 2016-11-29 22:45:42 by ZorrUno [network notes]
Additions:
=====Network Notes=====
On home network, Static DHCP assigned, hostname koala.foxlan 192.168.1.105


Revision [2600]

Edited on 2016-11-29 22:07:43 by ZorrUno [spelling]
Additions:
**GPIO Port 27 for ACC IN** (Set as 3.3V when power is plugged in to the ACC+12V)
Deletions:
**GPIO Port 27 for ACC IN** (Set as 3.3V when power is pludded in to the ACC+12V)


Revision [2599]

Edited on 2016-11-29 22:05:55 by ZorrUno [gpio in and out testing fine - notes on connector]
Additions:
Used a 4 pin floppy disk connector on physical pins 7,9,11,13 which equates to IO4,GND,IO17,IO27.
The connector has fly leads of yellow (io4), black (gnd), black (IO17), red (IO27). The black was useful as a gnd for first testing IO but both black lead was then snipped.
**GPIO Port 4 for HOLD** (setting as 1 sets GPIO 4 to 3.3v)
**GPIO Port 27 for ACC IN** (Set as 3.3V when power is pludded in to the ACC+12V)
echo 27 > /sys/class/gpio/export
echo in > /sys/class/gpio/gpio27/direction
cat /sys/class/gpio/gpio27/value##
Deletions:
GPIO Port 4 for HOLD (setting as 1 sets GPIO 4 to 3.2v)


Revision [2598]

Edited on 2016-11-29 21:48:23 by ZorrUno [more bash scripts for i/o]
Additions:
inputs and outputs, file method https://www.element14.com/community/docs/DOC-78315/l/raspberry-pi-gpio-explained


Revision [2597]

Edited on 2016-11-29 21:44:42 by ZorrUno [status when pi starts up]
Additions:
notes, this is obviously volatile... on reboot GPIO4 ++is high++ appears high, but is actually floating. It appears to drop low when direction is set to 'out'
Deletions:
notes, this is obviously volatile... on reboot GPIO4 is high. It drops low when direction is set to 'out'


Revision [2596]

Edited on 2016-11-29 21:35:28 by ZorrUno [state on reboot]
Additions:
and https://sites.google.com/site/semilleroadt/raspberry-pi-tutorials/gpio
notes, this is obviously volatile... on reboot GPIO4 is high. It drops low when direction is set to 'out'


Revision [2595]

Edited on 2016-11-29 21:30:06 by ZorrUno [i/o for hold is now working]
Additions:
=====i/o for this project=====
Deletions:
=====i/o for this project====


Revision [2594]

Edited on 2016-11-29 21:29:03 by ZorrUno [i/o for hold is now working]
Additions:
=====i/o for this project====
Using this reference https://www.raspberrypi.org/documentation/usage/gpio-plus-and-raspi2/README.md
GPIO Port 4 for HOLD (setting as 1 sets GPIO 4 to 3.2v)
##sudo su
echo 4 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio4/direction
echo 1 > /sys/class/gpio/gpio4/value##


Revision [2564]

Edited on 2016-11-25 12:24:53 by ZorrUno [added page link to start discussing gps logging]
Additions:
DiscussionsOnGPSLoggingInCar


Revision [2563]

Edited on 2016-11-25 10:40:32 by ZorrUno [gpio info]
Additions:
GPIO Info http://raspberry.io/projects/view/reading-and-writing-from-gpio-ports-from-python/


Revision [2562]

Edited on 2016-11-25 10:29:55 by ZorrUno [python and pi cam]
Additions:
More Pi Camera & Python info http://www.makeuseof.com/tag/raspberry-pi-camera-module/


Revision [2561]

Edited on 2016-11-25 10:00:45 by ZorrUno [no wifi module needed with pi3]
Additions:
++WIFI usb module++ (Not needed with Pi3)
Deletions:
WIFI usb module


Revision [2560]

Edited on 2016-11-25 10:00:00 by ZorrUno [fewer devices needed with pi3]
Additions:
++USB HUB: Wifi Dongle++ (Not needed with Pi3)
++USB HUB: Bluetooth Dongle++ (Not needed with Pi3)
Deletions:
USB HUB: Wifi Dongle
USB HUB: Bluetooth Dongle


Revision [2559]

Edited on 2016-11-25 09:58:05 by ZorrUno [pi cam info and more gpio links]
Additions:
GPIO Benchmarks http://codeandlife.com/2012/07/03/benchmarking-raspberry-pi-gpio-speed/
=====Pi Camera Snapshots and Video=====
Pi Cam getting started https://www.raspberrypi.org/learning/getting-started-with-picamera/
Pi Cam basics https://thepihut.com/blogs/raspberry-pi-tutorials/16021420-how-to-install-use-the-raspberry-pi-camera


Revision [2558]

Edited on 2016-11-25 09:31:12 by ZorrUno [Categories Added, GPIO Info added]
Additions:
=====Raspberry Pi GPIO general info and scripts=====
File System GPIO activation https://sites.google.com/site/semilleroadt/raspberry-pi-tutorials/gpio
WiringPi c Lib http://wiringpi.com/
GPIO info from raspberry pi org https://www.raspberrypi.org/documentation/usage/gpio/
CategoryHowTos
CategoryRaspberryPi
CategoryVehicles
CategoryLinux


Revision [2557]

Edited on 2016-11-24 16:13:37 by ZorrUno [power board link]
Additions:
Raspberry Pi (v3)
PMB Power Board http://rcbeacon.com/blog/?page_id=3946
Deletions:
Raspberry Pi (Bodel B)
PMB Power Board


Revision [2556]

Edited on 2016-11-22 22:15:02 by ZorrUno [keyboards]
Additions:
USB HUB: Keyboard (then numeric keyboard... or maybe bluetooth?)


Revision [2555]

Edited on 2016-11-22 20:56:44 by ZorrUno [bash ivr link]
Additions:
https://github.com/KarlMW/bash-ivr


Revision [2554]

Edited on 2016-11-22 10:05:30 by ZorrUno [Attached devices for planning purposes]
Additions:
====Attached Devices====
Direct USB: USB Memory Stick
Direct USB: USB Hub
USB HUB: Wifi Dongle
USB HUB: GPS Device
USB HUB: Bluetooth Dongle
USB HUB: Mobuis Dashcam
USB HUB: USB Hard Drive?
Pi Cam
NFC Shield


Revision [2553]

Edited on 2016-11-22 09:29:06 by ZorrUno [lastedit added]
Additions:
{{lastedit show="3"}}
--


Revision [2552]

Edited on 2016-11-21 14:58:37 by ZorrUno [other gps apps for linux]
Additions:
Other GPS apps: http://tuxmobil.org/linux_gps_navigation_applications.html


Revision [2551]

Edited on 2016-11-21 14:52:08 by ZorrUno [GPS Drive option]
Additions:
http://www.gpsdrive.de/features.shtml


Revision [2550]

Edited on 2016-11-21 14:47:16 by ZorrUno [Navigation option]
Additions:
=====Audio Output=====
HF: Sound output of some sort to a small speaker (I2S?), also 3.5mm audio to car audio input. Hardware switch to turn small speaker off (for music play etc)
=====Navigation=====
Some sort of audio only navigation... i.e. select preset from menu, audio navigation?


Revision [2549]

Edited on 2016-11-21 14:43:25 by ZorrUno [Dashcam store option, Music Server Option]
Additions:
WIFI usb module
=====Dashcam Video Store=====
- Connect dashcam via usb to pi, remove files from dashcam when stationary... upload to server when in wifi range
=====Music Server=====
- MPD server
- sync of music when in wifi range
Deletions:
WIFI


Revision [2548]

The oldest known version of this page was created on 2016-11-21 14:39:09 by ZorrUno [Dashcam store option, Music Server Option]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki