Skip to content

Commit 65a4f59

Browse files
CinnamonXIJim Bennett
and
Jim Bennett
authored
chapter 3(lesson 1) (#102)
* Chapter two(lesson one) commit * Update README.md * Update pi-temp.md * Update virtual-device-temp.md * fixes * fixes * Update README.md * chapter two(lesson 2) * Update README.md * Chapter two (lesson three) * changed images * chapter two (lesson 4) * Update README.md * Update wio-terminal-connect-hub.md * Update wio-terminal-connect-hub.md * Update wio-terminal-connect-hub.md * Update wio-terminal-connect-hub.md * chapter 5 and 6 * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * fixed typos * chapter 3(lesson 1) * Revert "Merge branch 'main' of https://github.com/microsoft/IoT-For-Beginners into main" This reverts commit b2403c2, reversing changes made to 7afed01. * Revert "Revert "Merge branch 'main' of https://github.com/microsoft/IoT-For-Beginners into main"" This reverts commit b3eaedb. * Update README.md * Update README.md * Update wio-terminal-gps-sensor.md * Update pi-gps-sensor.md * Update wio-terminal-gps-sensor.md * Update pi-gps-sensor.md * Update wio-terminal-gps-sensor.md Co-authored-by: Jim Bennett <[email protected]>
1 parent fc7699a commit 65a4f59

7 files changed

+17
-17
lines changed

3-transport/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Transport from farm to factory - using IoT to track food deliveries
22

3-
Many farmers grow food to sell - either they are commercial growers who sell everything they grow, or they are subsistence farmers who sell their excess produce to buy necessities. Somehow the food has to get from the farm to the consumer, and this usually relies on bulk transport from farms, to hubs or processing plants, then on to stores. For example, a tomato farmer will harvest tomatoes, pack them into boxes, load the boxes into a truck then deliver to a processing plant. The tomatoes will then be sorted, and from there delivered to the consumers in the form of retail, food processing, or restaurants.
3+
Many farmers grow food to sell - either they are commercial farmers who sell everything they grow, or they are subsistence farmers who sell their excess produce to buy necessities. Somehow the food has to get from the farm to the consumer, and this usually relies on bulk transport from farms, to hubs or processing plants, then to stores. For example, a tomato farmer will harvest tomatoes, pack them into boxes, load the boxes into a truck then deliver to a processing plant. The tomatoes will then be sorted, and from there delivered to the consumers in the form of processed food, retail sales, or consumed at restaurants.
44

5-
IoT can help with this supply chain by tracking the food in transit - ensuring drivers are going where they should, monitoring vehicle locations, and getting alerts when vehicles arrive so that food can be unloaded, ready for processing as soon as possible.
5+
IoT can help with this supply chain by tracking the food in transit - ensuring drivers are going where they should, monitoring vehicle locations, and getting alerts when vehicles arrive so that food can be unloaded, and be ready for processing as soon as possible.
66

7-
> 🎓 A *supply chain* is the sequence of activities to make and deliver something. For example, in tomato farming it covers seed, soil, fertilizer and water supply, growing tomatoes, delivering tomatoes to a central hub, transporting them to a supermarkets local hub, transporting to the individual supermarket, being put out on display, then sold to a consumer and taken home to eat. Each step is like the links in a chain.
7+
> 🎓 A *supply chain* is the sequence of activities to make and deliver something. For example, in tomato farming it covers seed, soil, fertilizer and water supply, growing tomatoes, delivering tomatoes to a central hub, transporting them to a supermarket's local hub, transporting to the individual supermarket, being put out on display, then sold to a consumer and taken home to eat. Each step is like the links in a chain.
88
99
> 🎓 The transportation part of the supply chain is know as *logistics*.
1010
@@ -15,7 +15,7 @@ In these 4 lessons, you'll learn how to apply the Internet of Things to improve
1515
## Topics
1616

1717
1. [Location tracking](lessons/1-location-tracking/README.md)
18-
1. [Store location data](./3-transport/lessons/2-store-location-data/README.md)
18+
1. [Store location data](lessons/2-store-location-data/README.md)
1919
1. [Visualize location data](lessons/3-visualize-location-data/README.md)
2020
1. [Geofences](lessons/4-geofences/README.md)
2121

3-transport/lessons/1-location-tracking/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ Add a sketchnote if possible/appropriate
1010

1111
## Introduction
1212

13-
The main process for getting food from a farmer to a consumer involves loading boxes of produce on to trucks, ships, airplanes, or other commercial transport vehicles, and delivering the food somewhere - either direct to a customer, or to a central hub or warehouse for processing. The whole end-to-end process from farm to consumer is part of a process called the *supply chain*. The video below from Arizona State University's W. P. Carey School of Business talks about the idea of the supply chain and how it is managed in more detail.
13+
The main process for getting food from a farmer to a consumer involves loading boxes of produce on to trucks, ships, airplanes, or other commercial transport vehicles, and delivering the food somewhere - either directly to a customer, or to a central hub or warehouse for processing. The whole end-to-end process from farm to consumer is part of a process called the *supply chain*. The video below from Arizona State University's W. P. Carey School of Business talks about the idea of the supply chain and how it is managed in more detail.
1414

1515
[![What is Supply Chain Management? A video from Arizona State University's W. P. Carey School of Business](https://img.youtube.com/vi/Mi1QBxVjZAw/0.jpg)](https://www.youtube.com/watch?v=Mi1QBxVjZAw)
1616

1717
Adding IoT devices can drastically improve your supply chain, allowing you to manage where items are, plan transport and goods handling better, and respond quicker to problems.
1818

19-
When managing a fleet of vehicles such as trucks, it is helpful to know where each vehicle is at a given time. Vehicles can be fitted with GPS sensors that send their location to IoT systems, allowing the owners to pinpoint their location, see the route they have taken, and know when they will arrive at their destination. Most vehicles operate outside of WiFi coverage, so they use cellular networks to send this kind of data. Sometimes the GPS sensor is built into more complex IoT devices such as electronic log books. These devices track how long a truck has been driven for to ensure drivers are in compliance with local laws on working hours.
19+
When managing a fleet of vehicles such as trucks, it is helpful to know where each vehicle is at a given time. Vehicles can be fitted with GPS sensors that send their location to IoT systems, allowing the owners to pinpoint their location, see the route they have taken, and know when they will arrive at their destination. Most vehicles operate outside of WiFi coverage, so they use cellular networks to send this kind of data. Sometimes the GPS sensor is built into more complex IoT devices such as electronic log books. These devices track how long a truck has been in transit to ensure drivers are in compliance with local laws on working hours.
2020

2121
In this lesson you will learn how to track a vehicles location using a Global Positioning System (GPS) sensor.
2222

@@ -53,11 +53,11 @@ The core component of vehicle tracking is GPS - sensors that can pinpoint their
5353

5454
## Geospatial coordinates
5555

56-
Geospatial coordinates are used to define points on the Earth's surface, similar to how coordinates can be used to draw to a pixel on a computer screen or position stitches in cross stitch. For a single point, you have a pair of coordinates. For example, the Microsoft Campus in Redmond, Washington, USA is located at 47.6423109,-122.1390293.
56+
Geospatial coordinates are used to define points on the Earth's surface, similar to how coordinates can be used to draw to a pixel on a computer screen or position stitches in cross stitch. For a single point, you have a pair of coordinates. For example, the Microsoft Campus in Redmond, Washington, USA is located at 47.6423109, -122.1390293.
5757

5858
### Latitude and longitude
5959

60-
The Earth is a sphere - a three-dimensional circle. Because of this, points are defined is by dividing it into 360 degrees, the same as the geometry of circles. Latitude measures the number of degrees north to south, longitude measures the number of degrees east to west.
60+
The Earth is a sphere - a three-dimensional circle. Because of this, points are defined by dividing it into 360 degrees, the same as the geometry of circles. Latitude measures the number of degrees north to south, longitude measures the number of degrees east to west.
6161

6262
> 💁 No-one really knows the original reason why circles are divided into 360 degrees. The [degree (angle) page on Wikipedia](https://wikipedia.org/wiki/Degree_(angle)) covers some of the possible reasons.
6363
@@ -178,7 +178,7 @@ Rather than use the raw NMEA data, it is better to decode it into a more useful
178178

179179
### Task - decode GPS sensor data
180180

181-
Work through the relevant guide to measure soil moisture using your IoT device:
181+
Work through the relevant guide to decode GPS sensor data using your IoT device:
182182

183183
* [Arduino - Wio Terminal](wio-terminal-gps-decode.md)
184184
* [Single-board computer - Raspberry Pi/Virtual IoT device](single-board-computer-gps-decode.md)

3-transport/lessons/1-location-tracking/assignment.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The NMEA sentences that come from your GPS sensor have other data in addition to
66

77
For example - can you get the current date and time? If you are using a microcontroller, can you set the clock using GPS data in the same way you set is using NTP signals in the previous project? Can you get elevation (your height above sea level), or your current speed?
88

9-
If you are using a virtual IoT device, then you can get some of this data by sending MENA sentences generated using tools [nmeagen.org](https://www.nmeagen.org).
9+
If you are using a virtual IoT device, then you can get some of this data by sending NMEA sentences generated using tools [nmeagen.org](https://www.nmeagen.org).
1010

1111
## Rubric
1212

3-transport/lessons/1-location-tracking/pi-gps-sensor.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Connect the GPS sensor.
2424

2525
1. With the Raspberry Pi powered off, connect the other end of the Grove cable to the UART socket marked **UART** on the Grove Base hat attached to the Pi. This socket is on the middle row, on the side nearest the SD Card slot, the other end from the USB ports and ethernet socket.
2626

27-
![The grove GPS sensor connected to the UART socket](../../../images/pi-gps-sensor.png)
27+
![The grove GPS sensor connected to the UART socket](../../../images/pi-gps-sensor.png)
2828

2929
1. Position the GPS sensor so that the attached antenna has visibility to the sky - ideally next to an open window or outside. It's easier to get a clearer signal with nothing in the way of the antenna.
3030

@@ -42,7 +42,7 @@ Program the device.
4242

4343
1. Launch VS Code, either directly on the Pi, or connect via the Remote SSH extension.
4444

45-
> ⚠️ You can refer to [the instructions for setting up and launch VS Code in lesson 1 if needed](../../../1-getting-started/lessons/1-introduction-to-iot/pi.md).
45+
> ⚠️ You can refer to [the instructions for setting up and launching VS Code in lesson 1 if needed](../../../1-getting-started/lessons/1-introduction-to-iot/pi.md).
4646
4747
1. With newer versions of the Raspberry Pi that support Bluetooth, there is a conflict between the serial port used for Bluetooth, and the one used by the Grove UART port. To fix this, do the following:
4848

3-transport/lessons/1-location-tracking/virtual-device-gps-sensor.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Program the GPS sensor app.
9898
9999
1. Run this code, ensuring you are using a different terminal to the one that the CounterFit app is running it, so that the CounterFit app remains running.
100100
101-
1. From the CounterFit app, change the value of the gps sensor. You can do this in one of thess ways:
101+
1. From the CounterFit app, change the value of the gps sensor. You can do this in one of these ways:
102102
103103
* Set the **Source** to `Lat/Lon`, and set an explicit latitude, longitude and number of satellites used to get the GPS fix. This value will be sent only once, so check the **Repeat** box to have the data repeat every second.
104104

3-transport/lessons/1-location-tracking/wio-terminal-gps-decode.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Program the device to decode the GPS data.
3131
TinyGPSPlus gps;
3232
```
3333

34-
1. Change the contents of the `printGPSData` function to be the following:
34+
1. Change the contents of the `printGPSData` function to the following:
3535

3636
```cpp
3737
if (gps.encode(Serial3.read()))

3-transport/lessons/1-location-tracking/wio-terminal-gps-sensor.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ Connect the GPS sensor.
2222

2323
1. Insert one end of a Grove cable into the socket on the GPS sensor. It will only go in one way round.
2424

25-
1. With the Wio Terminal disconnected from your computer or other power supply, connect the other end of the Grove cable to the left-hand side Grove socket on the Wio Terminal as you look at the screen. This is the socket closest to from the power button.
25+
1. With the Wio Terminal disconnected from your computer or other power supply, connect the other end of the Grove cable to the left-hand side Grove socket on the Wio Terminal as you look at the screen. This is the socket closest to the power button.
2626

27-
![The grove GPS sensor connected to the left hand socket](../../../images/wio-gps-sensor.png)
27+
![The grove GPS sensor connected to the left hand socket](../../../images/wio-gps-sensor.png)
2828

2929
1. Position the GPS sensor so that the attached antenna has visibility to the sky - ideally next to an open window or outside. It's easier to get a clearer signal with nothing in the way of the antenna.
3030

3131
1. You can now connect the Wio Terminal to your computer.
3232

33-
1. The GPS sensor has 2 LEDs - a blue LED that flashes when data is transmitted, and a green LED that flashes every second when receiving data from satellites. Ensure the blue LED is flashing when you power up the Pi. After a few minutes the green LED will flash - if not, you may need to reposition the antenna.
33+
1. The GPS sensor has 2 LEDs - a blue LED that flashes when data is transmitted, and a green LED that flashes every second when receiving data from satellites. Ensure the blue LED is flashing when you power up the Wio Terminal. After a few minutes the green LED will flash - if not, you may need to reposition the antenna.
3434

3535
## Program the GPS sensor
3636

0 commit comments

Comments
 (0)