Difference between revisions of "Electric Longboard"

From ESE205 Wiki
Jump to navigation Jump to search
Line 18: Line 18:
  
 
==Challenges==
 
==Challenges==
#'''Building Encoders''' Building and programming the encoders so it can reliably tell us how fast the board is traveling, especially at high speeds when the wheel may spin many times a second. Also figuring out how to distinguish which direction the longboard wheel is spinning.
+
#Receiving data from the GPS chip
#'''GPS Chip''' We aren not currently familiar with how to interpret GPS chip data. We will need to familiarize ourselves with GPS chip programming, and calculating distance using coordinates. Also, making a reinforced program that will filter out erroneous data due to environmental factors.
+
<!--##Opening the serial port
#'''Mounting''' Taking all of our components and putting them in a compact container which can be secured to the longboard. We need to maintain as light a design as possible considering the board is being manually powered, while still keeping all the components safe and dry.
+
##Connecting the GPS to it and reading data through it-->
#'''Automation''' Ideally this circuit would be able start and stop on its own based on whether it is being ridden. Because we are using a Raspberry Pi we will be able to extract the data we want later eliminating the need for real time remote display or control. The difficulty will be figuring out how to kick start the circuit.
+
#Interpreting the data
#'''LED Control''' In order to maximize the brightness of the headlights we need to directly hook the LED's up to whatever battery we have. Using an LED driver we hope to be able to keep constant voltage across all LED's while maintaining control of each individually.
+
#*Isolating desired data from the GPS data stream which provided other information that was not useful for our project
 +
<!--##Reading and writing this data in python to a text file-->
 +
#Displaying the data
 +
#*How to get the data off the Raspberry Pi
 +
#*Easily displaying it on a map
 +
#Designing Encoder
 +
#* Ensuring mount would attach to the truck of the Longboard
 +
#*Making sure the mounts were able to house the LED and photocell reliably and safely
 +
<!--#*Using precisely measured spacers to secure the mounts-->
 +
#*Stabilizing results across all lighting conditions and riding surfaces
 +
#Hooking up the Analog to Digital Converter
 +
#*Locating the SPI pins and correctly wiring them to the ADC
 +
#*Building the voltage divider
 +
#*Choosing the resistance to use for more rapid photocell saturation
 +
#Writing code to read the ADC values, filter, and interpret them
 +
#*Creating a properly sized filter to stabilize noise in data
 +
#*Locating a peak in the data and ensuring that only 1 peak was counted
 +
#Environmental effects on GPS accuracy
 +
#*Concrete, heavy clouds and other structures will obscure view to satellites
 +
#*Locating and eliminating unreliable data
 +
#*Substituting encoder data for these instances
 +
#Mounting  
 +
#*Taking all of our components and putting them in a compact container which can be secured to the longboard  
 +
#*Maintaining as light a design as possible considering the board is being manually powered  
 +
#*Keeping all the components safe and dry
  
 
==Budget==
 
==Budget==

Revision as of 22:03, 2 May 2016

Project Overview

Our goal in this project was to modify the Longboard riding experience. In particular, when riding a Longboard for commuting or exercise there is no way to certainly know how far or fast one has ridden. Using a GPS chip and an encoder on the wheel we programmed a Raspberry Pi 2 Model B to collect data from the board. We could then display the data on a map of the area tracing the route taken. This design enhances the Longboard riding experience by making it interactive and goal driven, while also yielding tangible results.

Team Members

  • Max Cetta
  • Jacob Frank
  • Alden Welsch (TA)

Objectives

  1. Use GPS data to track distance and location of rides
    1. Use the serial port to connect to the GPS.
    2. Read data and write it into a text file.
    3. Display data
  2. Have an encoder on the wheel to measure top ground speed and average speed over a ride
    1. Designing and printing the encoder
    2. Wiring the ADC and using SPI pins to communicate with the Raspberry Pi
    3. Writing code to filter and interpret the data to locate peaks

Challenges

  1. Receiving data from the GPS chip
  2. Interpreting the data
    • Isolating desired data from the GPS data stream which provided other information that was not useful for our project
  3. Displaying the data
    • How to get the data off the Raspberry Pi
    • Easily displaying it on a map
  4. Designing Encoder
    • Ensuring mount would attach to the truck of the Longboard
    • Making sure the mounts were able to house the LED and photocell reliably and safely
    • Stabilizing results across all lighting conditions and riding surfaces
  5. Hooking up the Analog to Digital Converter
    • Locating the SPI pins and correctly wiring them to the ADC
    • Building the voltage divider
    • Choosing the resistance to use for more rapid photocell saturation
  6. Writing code to read the ADC values, filter, and interpret them
    • Creating a properly sized filter to stabilize noise in data
    • Locating a peak in the data and ensuring that only 1 peak was counted
  7. Environmental effects on GPS accuracy
    • Concrete, heavy clouds and other structures will obscure view to satellites
    • Locating and eliminating unreliable data
    • Substituting encoder data for these instances
  8. Mounting
    • Taking all of our components and putting them in a compact container which can be secured to the longboard
    • Maintaining as light a design as possible considering the board is being manually powered
    • Keeping all the components safe and dry

Budget

Item Quantity Price Vendor Link
GPS Receiver - GP-20U7 (56 Channel) 1 $15.95 Sparkfun https://www.sparkfun.com/products/13740
Mini Photocell 2 $1.50 Sparkfun https://www.sparkfun.com/products/9088
Analog to Digital Converter - MCP3002 1 $2.30 Sparkfun https://www.sparkfun.com/products/8636
Raspberry Pi 2 - Model B (8GB Bundle) 1 $49.95 Sparkfun https://www.sparkfun.com/products/13724
Resistor Kit - 1/4W (500 total) 1 $7.95 Sparkfun https://www.sparkfun.com/products/10969
LED - Basic Green 5mm 2 $0.35 Sparkfun https://www.sparkfun.com/products/9592
Tontec® Raspberry Pi Case 1 $7.98 Amazon http://www.amazon.com/Tontec%AE-Raspberry-Black-Enclosure-Transparent/dp/B00NUN98UW?ie=UTF8&psc=1&redirect=true&ref_=od_aui_detailpages00
KMASHI 10000mAh Battery 1 $13.99 Amazon http://www.amazon.com/KMASHI-10000mAh-External-Battery-Portable/dp/B00JM59JPG?ie=UTF8&psc=1&redirect=true&ref_=oh_aui_detailpage_o04_s00
Total $101.82


Gantt Chart
Timeline