Programming and an intro to Arduino IDE

Posted by Nadeem Ahmed on August 24, 2014

Today we will deal with Programming and an intro to Arduino IDE, i had a arduino with me , thats all i did since its my remote week that helped me all the way at the time when i am boared , my arduino helped me to catch up with them

Programming
    Embedded Programming
  • Basics about programming
  • Programming. 3 paths depending on proficiency:
  • Add Author, date, description and license
  • Always comment your code
  • Init and loop parts
  • Digital output
  • Analog output (PWM)
  • Digital input
  • Analog input (ADC) 8 bit/10bit
  • Pull up down resistors (10k)
  • Multitasking? Polling
  • Debounce buttons
  • Beginners: Arduino IDE
  • Intermediates: C
  • Advanced: Assembly
  • Why C?    https://www.youtube.com/watch?v=ERY7d7W­6nA&feature=youtu.be
  • Why Assembly?    https://en.wikipedia.org/wiki/Apollo_Guidance_Computer
  • Assignment
  • Make LED blink
  • Turn ON/OFF LED
  • Serial communication (send something to computer, read something from computer)
  • Interface programming
    The goal is to create an interface program for the computer or smartphone that displays information and/or controls one of the boards you made.
  • You need a communication channel between your board and the interface program
  • Computer interface
  • Smartphone interface (Bluetooth connection)
  • Assignment
  • Serial connection
  • Bluetooth
  • Internet connection
  • Processing
  • Python https://www.codecademy.com/
  • Webapp https://www.codecademy.com/
  • Webapp MIT App Inventor 2 http://appinventor.mit.edu/explore/
  • Android App: MIT AI2 Companion Google Play Store
  • Requirements
  • Micro USB to USB cable (phone cable)
  • USB hub
  • USB to TTL converter (Inventory)
  • Install MIT App Inventor in computer and phone
  • Create an interface with a button and Indicator
  • Control the indicator with the board button
  • Control the board LED with the interface button