Complicated Clock Car Computer / AKA 06/03/2019 20190128-carpi.html?print-pdf#/slide- orge963a6a...

Preview:

Citation preview

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 1/55

Car Computer / AKACar Computer / AKAComplicated ClockComplicated Clock

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 2/55

New CarNew Car

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 3/55

Problem: Broken ClockProblem: Broken Clock

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 4/55

IdeaIdeaCreate a car computer to act as a clock!

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 5/55

Other featuresOther featuresOther features of my Complicated Clock could be

Dash CamReverse CamBluetooth Audio streamingODB2 diagnostics and readoutTemperature readings inside/out

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 6/55

ChallengesChallengesPowerMounting screen & computer

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 7/55

HardwareHardwareComputer Raspberry PI 3B+

UPS PiJuice

Screen 5in PI Screen

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 8/55

PiJuicePiJuice

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 9/55

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 10/55

IncludesIncludesRTCBattery for up to 5hrs running time (LiPo 1820mAh)Shutdown scripts3 x Programmable buttonsStackable GPIO

https://core-electronics.com.au/pijuice-hat.html

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 11/55

Power adapterPower adapter5Volt 3Amp Adapter (not included)

https://www.altronics.com.au/p/m8630-powertran-qc3-4.8a-5v-dc-car-dual-usb-adaptor/

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 12/55

5" Screen5" Screen

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 13/55

Z6513Z65135 inch screen$80 on special800x480Touch supportHDMI input

https://www.altronics.com.au/p/z6513-5-inches-800x480-lcd-touchscreen-for-raspberry-pi/

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 14/55

IssuesIssuesFoggy looking in direct sun due to overlay & brightnessNo hardware brightness controlHDMI cable is in the way

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 15/55

Raspberry PI 7inchRaspberry PI 7inch

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 16/55

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 17/55

7inch features7inch featuresRibbon cable inputBetter touchscreen (Capacitive touch)Wider viewing angle 70 degreesLarger

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 18/55

Measure & PlanMeasure & Plan

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 19/55

Dash holeDash hole

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 20/55

Measure: Dash holeMeasure: Dash hole

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 21/55

First thoughtsFirst thoughts

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 22/55

Final planFinal plan

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 23/55

Front viewFront view

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 24/55

Side viewSide view

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 25/55

Mocking PrepMocking Prepcardboardstrap brace (0.5mm galv)double sided tape

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 26/55

StructureStructureUsing cardboard I could quickly create the structure using a pair of

scissors and double sided tape on brackets.

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 27/55

End result lookEnd result look

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 28/55

Bracket makingBracket making

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 29/55

ProcessProcessUsing strap brace I could easily:

bend (using a vice and hands)cut (with tin snips)mount (small screws in pre-drilled holes)

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 30/55

TestTest

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 31/55

Make longerMake longer

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 32/55

BendBend

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 33/55

CablingCablingNeeded to extend the ribbon cable.

Ribbon cable (40pin)40 pin female header26 pin male header surface mountexperimenters boardlots of coloured cable

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 34/55

ProblemProblemCouldn't �nd the correct headers

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 35/55

PreparePrepare

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 36/55

Press ribbon headers with vicePress ribbon headers with vice

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 37/55

Solder surface mountSolder surface mount

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 38/55

Solder onto screenSolder onto screen

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 39/55

End of cablingEnd of cabling

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 40/55

RisersRisersTo attach the 5in screen to the front

Parts

1mm Aluminium strap (can cut with tin snips)

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 41/55

Finding a riserFinding a riserToo big, nothing exists.

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 42/55

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 43/55

Making my own risersMaking my own risers

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 44/55

Attaching risers to screenAttaching risers to screen

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 45/55

Problem!Problem!Couldn't screw these small risers on.

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 46/55

SolutionSolutionUse a longer rail riser design

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 47/55

Final attachmentFinal attachment

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 48/55

FM TransmitterFM TransmitterRaspberry PI can act as a FM transmitter with no extra hardwareCould use to transmit music/phone calls/etc to car stereo

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 49/55

InstallationInstallationConnect cable 30cm to GPIO4

Install fmtransmittergit clone https://github.com/markondej/fm_transmitter

cd fm_transmitter

make -j4

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 50/55

RunRunSample wav �le is provided

sudo ./fm_transmitter -f 98.0 acoustic_guitar_duet.wav

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 51/55

Use MP3Use MP3Must convert �rst

sudo apt install sox libsox-fmt-mp3

sox Visigoth\ -\ Final\ Spell\ -\ 01\ Creature\ of\ Desire.mp3 -r 22050 -c 1 -b 16 -t wav create_

sudo ./fm_transmitter -f 98.0 ~/Music/Visigoth/Visigoth\ -\ Final\ Spell/create_of_desire.wav

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 52/55

Future PlansFuture Plans5" touch displayClock (Using RTC & dclock on 5in display)Outside temp readoutInside temp readoutODB2 readouts (for diags)Stream audio (either to a radio station or through a tape deck toaudio plug)Bluetooth streaming (from mobile through to the cars audio)Navigation (Display maps with USB GPS I have somewhere)Dash camReverse cam with a tap of a buttonAdd Data sim and tracking ability

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 53/55

ReferencesReferences

- old but still worth it

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 54/55

BookmarksBookmarks

06/03/2019 20190128-carpi.html?print-pdf#/slide-orge963a6a

file:///home/map7/org/presentations/20190128-carpi.html?print-pdf#/slide-orge963a6a 55/55

QuestionsQuestionsEmail

Twitter

Github

map7777@gmail.com

@map7

github: map7

Recommended