SlideShare a Scribd company logo
1 of 15
Download to read offline
STEMNET AMBASSADORS

                           Getting Started with
                              Programming
                  Arduino and Scratch (and anything else)



                                 Ian Hughes/epredator
                             http://www.feedingedge.co.uk

Thursday, 14 February 13
A way to explain
                             (not the only way)




Thursday, 14 February 13
Wanting to make these




  But seeing this
        //populate the implied list of active zones (not exit points)
        //assumes a grouped in order and consitent file.
        void PopulateUniqueZone ()
        {
        	          countzones = 0;
        	          string currentzone = "";
        	          for (int i=0; i<totalbays; i++) {
        	          	          //find zone if different from last one
        	          	          if ((myBays [i].bZoneName != currentzone) && (myBays [i].bType == "a")) {
        	          	          	          zonelist [countzones] = myBays [i].bZoneName;
        	          	          	          currentzone = myBays [i].bZoneName;
        	          	          	          countzones++;
        	          	          }
        	          	
        	          	
        	          }
        	
        }
                                 Scary? Put’s people off?
Thursday, 14 February 13
So lets make it simpler and
    related to the physical world


    At it’s heart all computing tech is as simple as a light switch




Thursday, 14 February 13
Layer with a real world example

                                We go into a room
                                    If it is dark
                      Then we turn on the light with the switch




Thursday, 14 February 13
Set the foundation of all computing
                            We Sense
                             Decide
                               Act
                                or
                              Input
                             Process
                             Ouput




Thursday, 14 February 13
With the building blocks of
                                     Input
                                    Process
                                    Output
                           You can build everything




Thursday, 14 February 13
Now for the hardware
       Arduino is an open source switch that we can program
                We can add things to make it Sense
               Make decisions based on those things
                Act (e.g. switch something on or off)




Thursday, 14 February 13
Our first “control structures”


                                  First example
                                Turning on a light

                           Lets us build a simple circuit
                            The Arduino is the switch
                             We program the switch

        That leads to getting the program to repeat an activity
            On and off forever, flashing intermittently etc.



Thursday, 14 February 13
Making decisions

                                Second example
                             Turning on several lights

                           Lets us build a simple circuit
                            The Arduino is the switch
                             We program the switch

     We can make decisions over which light to switch in code
               Make the lights ripple on and off?




Thursday, 14 February 13
Full Sense Decide Respond - Arduino Spaceship interface
            http://arduino.cc/en/ArduinoStarterKit/Prj02



                            Third example
                            Add a sensor

           Some input that we can test and decide what to do
                   Speed up/slow down the flashing




Thursday, 14 February 13
Same pattern as before
                                      Scratch
                           Another programming language




Thursday, 14 February 13
Same pattern as before


          Sense
          Decide
           Act

               or

          Input
         Process
         Output



Thursday, 14 February 13
Create an object on the screen

                             Use code to move the object

                           Use code to sense our key presses

          Use those key presses to move the object with code

                 Sense collisions with another object on screen

                             Make a blockbuster AAA game



Thursday, 14 February 13
Pil Seung
                                   (Certain Victory)




                               Ian Hughes/epredator
                           http://www.feedingedge.co.uk

Thursday, 14 February 13

More Related Content

More from Ian Hughes / epredator

More from Ian Hughes / epredator (11)

Feedingedgeblendedbristolbcs2014
Feedingedgeblendedbristolbcs2014Feedingedgeblendedbristolbcs2014
Feedingedgeblendedbristolbcs2014
 
Bcs Review 2013 tech in 2014
Bcs Review 2013 tech in 2014Bcs Review 2013 tech in 2014
Bcs Review 2013 tech in 2014
 
Are we any closer to a holodeck?
Are we any closer to a holodeck?Are we any closer to a holodeck?
Are we any closer to a holodeck?
 
Getting tech into Schools and TV land
Getting tech into Schools and TV landGetting tech into Schools and TV land
Getting tech into Schools and TV land
 
Blended Reality Learning
Blended Reality LearningBlended Reality Learning
Blended Reality Learning
 
Hack to the Future - 3d printing and beyond
Hack to the Future - 3d printing and beyondHack to the Future - 3d printing and beyond
Hack to the Future - 3d printing and beyond
 
Washing away cave paintings v3
Washing away cave paintings v3Washing away cave paintings v3
Washing away cave paintings v3
 
Not all avatars and islands?
Not all avatars and islands?Not all avatars and islands?
Not all avatars and islands?
 
Virtual Worlds / Second Life / Business use?
Virtual Worlds / Second Life / Business use?Virtual Worlds / Second Life / Business use?
Virtual Worlds / Second Life / Business use?
 
Business Process Management and Virtual Worlds
Business Process Management and Virtual WorldsBusiness Process Management and Virtual Worlds
Business Process Management and Virtual Worlds
 
2008, Jan 14 Ian Hughes Metaverses And Virtual Worlds
2008, Jan 14  Ian Hughes Metaverses And Virtual Worlds2008, Jan 14  Ian Hughes Metaverses And Virtual Worlds
2008, Jan 14 Ian Hughes Metaverses And Virtual Worlds
 

Recently uploaded

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 

Arduinointech

  • 1. STEMNET AMBASSADORS Getting Started with Programming Arduino and Scratch (and anything else) Ian Hughes/epredator http://www.feedingedge.co.uk Thursday, 14 February 13
  • 2. A way to explain (not the only way) Thursday, 14 February 13
  • 3. Wanting to make these But seeing this //populate the implied list of active zones (not exit points) //assumes a grouped in order and consitent file. void PopulateUniqueZone () { countzones = 0; string currentzone = ""; for (int i=0; i<totalbays; i++) { //find zone if different from last one if ((myBays [i].bZoneName != currentzone) && (myBays [i].bType == "a")) { zonelist [countzones] = myBays [i].bZoneName; currentzone = myBays [i].bZoneName; countzones++; } } } Scary? Put’s people off? Thursday, 14 February 13
  • 4. So lets make it simpler and related to the physical world At it’s heart all computing tech is as simple as a light switch Thursday, 14 February 13
  • 5. Layer with a real world example We go into a room If it is dark Then we turn on the light with the switch Thursday, 14 February 13
  • 6. Set the foundation of all computing We Sense Decide Act or Input Process Ouput Thursday, 14 February 13
  • 7. With the building blocks of Input Process Output You can build everything Thursday, 14 February 13
  • 8. Now for the hardware Arduino is an open source switch that we can program We can add things to make it Sense Make decisions based on those things Act (e.g. switch something on or off) Thursday, 14 February 13
  • 9. Our first “control structures” First example Turning on a light Lets us build a simple circuit The Arduino is the switch We program the switch That leads to getting the program to repeat an activity On and off forever, flashing intermittently etc. Thursday, 14 February 13
  • 10. Making decisions Second example Turning on several lights Lets us build a simple circuit The Arduino is the switch We program the switch We can make decisions over which light to switch in code Make the lights ripple on and off? Thursday, 14 February 13
  • 11. Full Sense Decide Respond - Arduino Spaceship interface http://arduino.cc/en/ArduinoStarterKit/Prj02 Third example Add a sensor Some input that we can test and decide what to do Speed up/slow down the flashing Thursday, 14 February 13
  • 12. Same pattern as before Scratch Another programming language Thursday, 14 February 13
  • 13. Same pattern as before Sense Decide Act or Input Process Output Thursday, 14 February 13
  • 14. Create an object on the screen Use code to move the object Use code to sense our key presses Use those key presses to move the object with code Sense collisions with another object on screen Make a blockbuster AAA game Thursday, 14 February 13
  • 15. Pil Seung (Certain Victory) Ian Hughes/epredator http://www.feedingedge.co.uk Thursday, 14 February 13