used Hardwre:

- Intel Edison + Arduino breakout

- Grove GPS

- Grove Accelerometer

- Grove Temperaturesensor

Step 1: Get Started With Intel Edison

1. Unpack your Intel Edison + connect to it for the first time:

Plug in both usb cables and connect via serial console (e.g. putty / minicom/...) (user: root, no password)

2. copy newest Image onto edison flash drive

3. flash Edison with "reboot ota"

Now your Edison is up to date and you can start.

Step 2: Embedded Code

1. Install Intel XDK

2. connect to your edison (connect button bottom left)

3. Insert appended example-project-Code (main.js) (use Node.js) + insert all the text in your empty Node.js template

4. Build and transfer project to Edison.

Step 3: Install Additional Hardware

1. Plug the Seed Grove Studio base into the arduino breakout for edison.

2. Plug in Grove GPS-Module

3. Plug in Grove Accelerometer-Module

4. Plug in Grove temperature sensor

Start the code

and take a look into /home/root/gps_data/new/**

where a new file with gps, temperature and accelerometer data will be written as soon as gps is connected.

Step 4: Backend Code

download the appended zip with the backend code.

unzip it and call the html page. You will see a webpage displaying gps data.

In addition you have to setup right database to get updated data.

<p>Hi Celehner, what do you have in your package.json file? I'm having difficulty getting the main.js to run as it throws this error:</p><p><em>ERROR: module.js:340 </em></p><p><em>ERROR: throw err; </em></p><p><em> ^ </em></p><p><em>ERROR: Error: Cannot find module 'serialport' </em></p><p><em> at Function.Module._resolveFilename (module.js:338:15) </em></p><p><em> at Function.Module._load (module.js:280:25) </em></p><p><em> at Module.require (module.js:364:17) </em></p><p><em> at require (module.js:380:17) </em></p><p><em> at Object.&lt;anonymous&gt; (/home/root/.node_app_slot/main.js:12:18) </em></p><p><em> at Module._compile (module.js:456:26) </em></p><p><em> at Object.Module._extensions..js (module.js:474:10) </em></p><p><em> at Module.load (module.js:356:32) </em></p><p><em> at Function.Module._load (module.js:312:12) </em></p><p><em> at Function.Module.runMain (module.js:497:10) </em></p><p>I'm using npm@2.14.7 and node@v4.2.1</p><p>I tried to npm i -g serialport, but that one is also having errors:</p><p><em>npm ERR! serialport@2.0.2 install: `node-pre-gyp install --fallback-to-build`</em></p><p><em>npm ERR! Exit status 1</em></p><p><em>npm ERR!</em></p><p><em>npm ERR! Failed at the serialport@2.0.2 install script 'node-pre-gyp install --fallback-to-build'.</em></p><p><em>npm ERR! This is most likely a problem with the serialport package,</em></p><p><em>npm ERR! not with npm itself.</em></p><p><em>npm ERR! Tell the author that this fails on your system:</em></p><p><em>npm ERR! node-pre-gyp install --fallback-to-build</em></p><p><em>npm ERR! You can get their info via:</em></p><p><em>npm ERR! npm owner ls serialport</em></p><p><em>npm ERR! There is likely additional logging output above.</em></p><p>Do you know what could be done here?</p>
<p>I love being able to track things and movement is something that's quite fun to track. </p>

About This Instructable




More by celehner:autolog - autonomous GPS-tracker (Intel Edison + Grove GPS) 
Add instructable to: