beginning your adventures in electronics: arduino

33
Beginning your Adventures in Electronics: Arduino Jaroslaw Lupinski NYCResistor Teacher: Beyond Arduino

Upload: daria

Post on 18-Jan-2016

27 views

Category:

Documents


0 download

DESCRIPTION

Beginning your Adventures in Electronics: Arduino. Jaroslaw Lupinski NYCResistor Teacher: Beyond Arduino. The Recent Revolution. Arduino has dominated the market Low-cost, easy to use Less hardware logic, more software Programmed in C++. What is the Arduino. Easy to use platform - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Beginning your Adventures in Electronics: Arduino

Beginning your Adventures in Electronics: Arduino

Jaroslaw LupinskiNYCResistor Teacher: Beyond

Arduino

Page 2: Beginning your Adventures in Electronics: Arduino

The Recent Revolution

• Arduino has dominated the market

• Low-cost, easy to use• Less hardware logic,

more software• Programmed in C++

Page 3: Beginning your Adventures in Electronics: Arduino

What is the Arduino

• Easy to use platform• Ease of programming• Simple USB interface• Modifiable IDE• Many shields available

Page 4: Beginning your Adventures in Electronics: Arduino

Components of the Arduino

• ATMega168/328• 16MHz crystal/filtering

capacitors• Onboard power

regulators• FTDI USB <-> Serial Chip• Hardware

Page 5: Beginning your Adventures in Electronics: Arduino

Schematic

Page 6: Beginning your Adventures in Electronics: Arduino

Necessary parts for any circuit

• ATMega168/328• The ‘brains’ of the

Arduino• Program is loaded onto

the chip• Runs main loop until

power is removed• That’s it! All other parts

are optional!

Page 7: Beginning your Adventures in Electronics: Arduino

Optional parts: Timing• 16Mhz Crystal• The ‘heartbeat’ of the

ATMega chip• Speed of crystal

determines chip speed• Possible to

over/underclock depending on application

• ATMega series has onboard oscillator; less precise

Page 8: Beginning your Adventures in Electronics: Arduino

Power Supply

• 5 Volt and 3.3 Volt Regulators

• Filtering capacitors• Automatic switching

between external and USB Power

• Leave it out if you have a filtered 5 Volt power supply

Page 9: Beginning your Adventures in Electronics: Arduino

FTDI USB Chip

• Allows your Arduino to communicate with your computer over a simple USB link

• Abstraction• Only necessary for

communicating with USB

Page 10: Beginning your Adventures in Electronics: Arduino

Hardware

• Circuit Board• Headers• USB port• Sockets• All optional, use them if you need them

Page 11: Beginning your Adventures in Electronics: Arduino

Two methods of using the Arduino

• Working with the Arduino to solve a problem

• Temporary solution• One time only

• Prototyping with the Arduino to solve a need

• Preparing a product for market

• Mass production

Page 12: Beginning your Adventures in Electronics: Arduino

Phases of Circuit Design

Arduino Approach•Idea•Sketch•Read datasheets•Gather materials•Prototype•Testing•Optional ---------------->

Stand-alone approach•Idea•Sketch•Read datasheets•Gather materials•Prototype•Testing•Refining•Testing•Release to manufacture

Page 13: Beginning your Adventures in Electronics: Arduino

Using the Arduino as a Prototyping Platform

• You can prototype using an Arduino, and skip many steps from the stand-alone approach

• Use the Arduino to develop your product

• When your planned circuit works, skip straight into stand-alone product testing

Page 14: Beginning your Adventures in Electronics: Arduino

Idea

• Problem to be solved• Market need to be filled• “Necessity is the

mother of all invention.”

Page 15: Beginning your Adventures in Electronics: Arduino

Sketch

• Draw out what you need to do to solve your problem

• No need to get technical, rough ideas and abstractions will suffice

• Take constraints into consideration: Size, budget, audience

Page 16: Beginning your Adventures in Electronics: Arduino

Optional step: Present

• If the project requires substantial resources (funding, rare materials/components), you will need to create a presentation

• Venture capitalists• Crowd-sourcing• Material Sourcing

Page 17: Beginning your Adventures in Electronics: Arduino

Read datasheets/Gather materials

• Start turning sketch into reality

• Read about chips/parts that are available

• Examine options for unavailable/non-existent parts

• Order materials

Page 18: Beginning your Adventures in Electronics: Arduino

Prototype

• Using protoshield or long jumper wires, develop your solution

• Attach external chips, sensors, circuits

• Leave breadboarded or solder permanently

• Most hands-on part, usually taught in labs or dedicated classes

Page 19: Beginning your Adventures in Electronics: Arduino

Side-note: How to learn to prototype

• Desire• Choose a project that

appeals to you• Easier to rebuild an

existing circuit, or have an experienced tutor for your first design

• Time-Cost/Experience tradeoff: Premade kits are less expensive, but may teach less technical skills

• Example of good first projects to complete by yourself:– Digital Clock– Basic Robot

• Good projects to complete with a tutor:– Nixie tube clock– Advanced Robot

Page 20: Beginning your Adventures in Electronics: Arduino

Testing

• Does it fulfill it’s purpose?

• Can it be optimized?• Can you add/remove

features? (consider cost)

• Have friends, family, colleagues break it!

• Debugging

Page 21: Beginning your Adventures in Electronics: Arduino

Creating a Stand-alone Product

• Sketch out Arduino circuit

• Eliminate unnecessary/ redundant components• Add broken-down

Arduino circuit back into design

Page 22: Beginning your Adventures in Electronics: Arduino

Side-Note: Making your own shield

• Depending on your audience, you may choose this route

• Best of both worlds approach

• Assurance that it will work with any Arduino: The Mac Approach

• Limited to Arduino-owning market

Page 23: Beginning your Adventures in Electronics: Arduino

That’s the great thing about Arduino

• Programming an identical chip with the same Arduino code will result in identical execution

• No need for complicated IDE, porting code

Page 24: Beginning your Adventures in Electronics: Arduino

Using EAGLE to design your circuit

• Powerful schematic capture tool

• Integrated circuit board design tool• Free version’s

limitations are enough for a shield

Page 25: Beginning your Adventures in Electronics: Arduino

Lay out the circuit board• Position

components using electrical engineering principles

• There aren’t many, but there are a few critical ones

• Power supply splitting, Star Ground, Ground plane, EMI

Page 26: Beginning your Adventures in Electronics: Arduino

Take your time laying out the board

• Most designers spend ~5-10 hours laying out a simple shield!

• Personal preferences, aesthetic appeal, ease of use, ease of manufacturing

Page 27: Beginning your Adventures in Electronics: Arduino

Send circuit board out for production

• Research fabrication houses

• Compare rates, lead times, shipping

• Consider assembly

Page 28: Beginning your Adventures in Electronics: Arduino

Marketing

• Kickstarter!• Word of mouth• Reach out to

hackerspaces/hacker fairs

• Get people talking about it!

Page 29: Beginning your Adventures in Electronics: Arduino

Cost Analysis• Determining costs is usually

done at the idea phase• Spreadsheets!• Excel is your friend• Understand that prices rise

and fall, stock is depleted and replenished, and suppliers may fail to deliver

• The longer it takes to develop, the more variables will develop

Page 30: Beginning your Adventures in Electronics: Arduino

Start selling your product!

• Keep up to date on your products status

• Twitter, Facebook, Blogs, News

• Every product is 1% inspiration, 9% perspiration, and 90% marketing!

Page 31: Beginning your Adventures in Electronics: Arduino

Congratulations!

• You are now a marketable inventor!

• Consider patenting your idea if it is worth more than $10,000

• Open source alternatives

• Creative Commons

Page 32: Beginning your Adventures in Electronics: Arduino

Understand that your product will not always sell

• Many factors go into making a successful product

• Even if you did all the steps correctly, you may still fail to make a profit

• Engage the customers that you do bring in

Page 33: Beginning your Adventures in Electronics: Arduino

Questions/Comments

• Notes: • Contact:• Jaroslaw Lupinski• [email protected]• AIM: jarek319