21

Click here to load reader

Frankencar - Agile is Not Just for Software

Embed Size (px)

Citation preview

Page 1: Frankencar - Agile is Not Just for Software

FrankencarAgile is Not Just for Software

Matt Spradley

Page 2: Frankencar - Agile is Not Just for Software

Outlaws Just Have to Fit

2

Page 3: Frankencar - Agile is Not Just for Software

Typical Dumb Outlaws

• Fan Powered • CO2 Powered

3

Page 4: Frankencar - Agile is Not Just for Software

I Want a MakerBot

4

Page 5: Frankencar - Agile is Not Just for Software

Frankencar

400 Watt Brushless Motor

Infrared Tach Sensor

Digital Readout

Arduino Nano Control Unit 3-Axis

AccelerometerLED “Bling”

60A Electronic Speed Controller (ESC)

1300 mAh 40C 11.1 V LiPo Power Pack

Start Sensor

30A 1-3/8” Extra Sticky Wheels

Robust Steel Chassis

Belt Drive4 Wheel Drive

Page 6: Frankencar - Agile is Not Just for Software

It’s Fun: Arduino is Awesome – Learn about It

• Arduino Nano Specs– Atmel ATmega328– 32 KB Flash RAM– 2 KB SRAM– 1 KB EEPROM– 16 MHz– 14 Digital I/Os (6 PWM)– 8 Analog Inputs– 2 Interrupts– .73” X 1.7”

6

Page 7: Frankencar - Agile is Not Just for Software

Get a Napkin… or Spreadsheet

Pinewood Derby w/ 1.2” Wheels

• 2.6 seconds (50 ft)

• 13 mph average

• 3700 rpm

Outlaw Pipe Dream

• 1 second

• 34 mph average

• 9630 rpm

7

Page 8: Frankencar - Agile is Not Just for Software

Divide and Conquer

• Smart Control– Sensors– Interconnects

• Strong– What to use for structure?

• Fast– What motor?

8

Page 9: Frankencar - Agile is Not Just for Software

Arduino UNO for Control

• Open source• C-Based Dev Platform• ATmega328• 32 KB Flash RAM• 2 KB SRAM• 1 KB EEPROM• 16 MHz• 14 Digital (6 PWM)• 6 Analog• 2 Interrupts• 32 Single-Byte Registers• $18 BUCKS !!!

9

Page 10: Frankencar - Agile is Not Just for Software

Start with the Architecture… I Mean Chassis

• Turnkey or mod would be great. Would R/C cars work?

10

Seed of an Idea for later!

Page 11: Frankencar - Agile is Not Just for Software

VEX Robotics Design System to the Rescue

11

Hardware and Metal Kit ($80)

No BDUF!

Page 12: Frankencar - Agile is Not Just for Software

Brushless Outrunner = Awesome + Tons of Torque

12

http://www.youtube.com/watch?v=gT6noEibnpgVideo:

Page 13: Frankencar - Agile is Not Just for Software

Time to Build V1

• Major blocks validated • Refine• Now just software

13

Page 14: Frankencar - Agile is Not Just for Software

Block Diagram

14

Changed these

Page 15: Frankencar - Agile is Not Just for Software

FlowchartTach Interrupt

Calculate:Distance

SpeedAcceleration

Store global telemetry

data

End

Start

AccelerationMotor +2% Motor -1%

Update readout and LED display

Any limits reached

End

< Target > Target

= Target

15

Leaky Abstraction

Page 16: Frankencar - Agile is Not Just for Software

Back to That 4X Reduction

_g2R102 = (WHEEL_CIRCUMFERENCE_FT

/ (_lastRevMicrosBuffer[0] - _lastRevMicrosBuffer[1]) - WHEEL_CIRCUMFERENCE_FT

/ (_lastRevMicrosBuffer[2] - _lastRevMicrosBuffer[3]))

/ (_lastRevMicrosBuffer[0] - _lastRevMicrosBuffer[2]) * SF_G_102;

Use long instead of float and scale as needed per operation

16

Page 17: Frankencar - Agile is Not Just for Software

A Matter of Torque

17

Fix that part… easy

Motor

Rotation

Car Chassis

Lift

Page 18: Frankencar - Agile is Not Just for Software

• Validate and iterate• Big Design up Front (BDUF) a Waste of Time• Divide and Conquer• Modular is Good and Bad• Experience Counts• You Will Make Mistakes• On to V2

18

What Did We Learn?

Page 19: Frankencar - Agile is Not Just for Software

19

Cost

• $20 Arduino Nano

• $80 VEX Hardware and Metal Kit

• $60 Various sensors and displays

• $20 400 watt brushless motor

• $50 60 amp ESC

• $75 Misc. electronic parts

• $100 Misc. mechanical parts

Total Cost: ~ $405

Page 20: Frankencar - Agile is Not Just for Software

http://mattspradley.com/outlaw

Page 21: Frankencar - Agile is Not Just for Software

http://www.arduino.cchttp://www.vexrobotics.comhttp://www.robotmarketplace.comhttp://www.hobbypartz.comhttps://www.epictinker.comhttps://www.sparkfun.comhttp://www.sainsmart.comhttp://www.seeedstudio.com

Specific Parts:Wheels - http://www.robotmarketplace.com/products/0-T40P-143BG-HS4.htmlShafts - http://www.robotmarketplace.com/products/0-70105.htmlBearings - http://www.fingertechrobotics.com/proddetail.php?prod=ft-bearing-blockMotor - http://www.hobbypartz.com/86ma07-2215-1950kv.html

21

Links