The presentation to introduce the Hands-on workshop we ran at Elektor Live! A chance for everyone to experiment with all sorts of interesting hardware.
2. Outline
• Introduction
• Hello World!
– Get you in control of the hardware...
• Walkthrough Example!
– A feel for how things work...
• Workshop!
– Time to experiment...
2
3. Before we start!
• Check that...
– you have an mbed
– you have a laptop
– you have a working internet connection
3
4. • Microcontrollers are getting cheap
– 32-bit ARM Cortex-M3 Microcontrollers @ $1!
• Microcontrollers are getting powerful
– Lots of processing, memory, I/O in one package
• Microcontrollers are getting interactive
– Internet connectivity, new sensors and actuators
• Lots of new opportunities for microcontrollers!
What’s happening to
Microcontrollers?
6. – Ideas come from anywhere, need prototyping to test them
Microcontrollers are a great solution,
looking for problems!
Eureka!
If I could automate
feeding my pigs, I’d
be able to sleep in!
Eureka!
If I could automate
feeding my pigs, I’d
be able to sleep in!
Eureka!
I could use my
electronics skills to
help... pig feeding!
Eureka!
I could use my
electronics skills to
help... pig feeding!
7. Rapid Prototyping
• Rapid Prototyping helps industries invent products
• We want prototyping with electronics to keep pace!
– Let you prototype control, communication, interaction too
3D Moulding 3D Printing 2D/3D Design Web Frameworks
9. • Fastest way to start with an ARM microcontroller
– Plug ‘n’ Play Hardware, Online Compiler
– Make picking up and working with a microcontroller fast!
What is mbed?
10. • Designed for rapid prototyping by a wide audience
– Prototyping form-factor, High-level Library APIs
– Help you invent new products with microcontrollers!
What is mbed?
11. • Integrated mbed.org developer site and community
– Online resources, tools for support and collaboration
– Help to build an active, supportive developer community!
What is mbed?
13. What is the LPC1768 Microcontroller?
13
NXP LPC1768
ARM Cortex-M3
100MHz
512KB FLASH
64KB RAM
ARM Cortex-M3
32-bit MCU Core
Thumb-2 Instruction Set
3-stage, Modified Harvard
NVIC (Nested Interrupts)
15. Hello World! (1)
1. Plug it in
2. ...
3. Download and run your first “Hello World!” binary!
15
16. Hello World! (2)
1. Click the compiler link
2. ...
3. Compile and run your first “Hello World!” binary!
16
17. Hello World! (3)
1. Try modifying the code a bit
Flash a different LED, change the speed, make a new pattern
1. ...
2. Compile and run your own “Hello World!” binary!
17
18. A feel for how things work...
Walkthrough Example!
18
19. Walkthrough Example
• Make a simple datalogger
– AnalogIn for reading analog values
– LocalFileSystem for storing data to files
19
21. Our experience of workshops
• Everyone learns differently, and at a varying pace
• Everyone has different levels and areas of experience
21
22. Our strategy for workshops
• Make equipment and resources available
• Let you explore what you want, at your own pace
• Use the mbed Handbook and Cookbook for guidance
• Provide support to you as you need it
22
28. Step-by-step introductory project
• For absolute beginners
• An extract from:
ARM microcontrollers, Part 1
35 projects for beginners
By Bert Van Dam
• Simple AnalogIn Experiments
28
29. Workshop Rules
• Experiment with whatever components you want
– Some things are more complex than others; start simple
• Be considerate of others
– Please return all the components as you finish with them
• Don’t be afraid to ask for help or guidance
– We’ve sat everyone next to an assistant
• Go for it!
29
30. NXP mbed Design Challenge
Develop a product prototype, reusable library or
reference design, share it on http://mbed.org, and
help others build their prototypes even faster!
Anyone with an mbed NXP LPC1768 can enter!
http://www.circuitcellar.com/nxpmbeddesignchallenge
30
Prize pool
of
$10,000!
Prize pool
of
$10,000!