Introduction to Microcontroller Programming - Watch here LIVE at 19:30 GMT

Introduction to Microcontroller Programming.

Chris Holden will be taking you through the basics of setting up a microcontroller programming environment and writing your first microcontroller program. We will be comparing Arduino code with microcontroller code, going through what each program is doing and demonstrating many uses for microcontrollers.

The proposed (and very loose) schedule for the tutorial is as follows:

  • Brief introduction to electronics (power, ground, flow)
  • Applying power and ground to a microchip
  • Simple push button/led circui
  • Using a power lamp and/or led to "debug" code
  • Pull-up and pull-down resistors
  • Decoupling and debouncing - using capacitors
  • Using crystals to increase/decrease clock speed
  • Using transistors to increase/amplify current
  • Understanding datasheets and choosing the right microcontroller
  • Investigating Oshonsoft BASIC and useful functions for robot building: serial communications servo control
  • Building a simple robot

If we have time:

  • How to calculate MIPS
  • Interrupts - timer1
  • Creating a (binary) real-time clock using timer1/counter
  • Interfacing with an LCD display to show the time
  • Using CCP (compare) module to automatically reset timer1 count instead of polling
  • Post and pre-scalers on timer1
  • Using a 32.768khz crystal to generate a 1 second interval and a real-time clock

Demonstrations:

  • Simple bump-bot using 16F628A chip in place of Arduino board
  • USB servo controller either stand-alone or using serial comms as a daughter-board for Arduino
  • Game score tracking device - using internal EEPROM and LCD display

Enter a new comment



Comments

Comment by Richard Mussler-Wright at 28/05/2009 21:14:05

Thanks for sharing. I look forward to future webcasts.

Richard (Boise Idaho USA)

Comment by Emily Toop at 28/05/2009 21:19:42

I hope you\'re enjoying it Richard.

Comment by Richard Mussler-Wright at 28/05/2009 22:44:35

Code difficult to see properly on the webcast. Will wait for the posting.

Comment by Emily Toop at 28/05/2009 22:48:33

I understand that. This is why we are also screencasting and creating a more useful online tutorial later. I\'ll announce the release of the final version on the website and on twitter (@robotbrighton)

Comment by Chris at 03/06/2009 10:03:20

Files to accompany this tutorial can be found at http://www.nerdclub.co.uk/files/introduction_to_microcontrollers.zip

The ZIP file contains introduction notes, resistor values for kits provided on the night, lcd example (not covered on the night), RTC - realtime clock - using timers (not covered on the night), robot controller - bumpbot (demonstrated at the end). Screen cast(s) and additional videos will be posted here shortly.