Programming the blue board

From Mech
Revision as of 13:55, 6 February 2015 by NickMarchuk (talk | contribs) (Created page with "Back to Northwestern Design Competition == Programming the blue board == The DC2015 Control Board is based on the [http://www.digilentinc.com/Products/Detail.cfm?Prod=CHI...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Back to Northwestern Design Competition

Programming the blue board

The DC2015 Control Board is based on the chipKIT DP32 by Digilent.

It is programmed via the Multi Platform IDE - MPIDE. Download and install the latest MPIDE for your platform.

Plug in your blue board. The red Power LED should be lit, and the green LD1 LED should be blinking. When blinking, the board is ready to be programmed. To run code that you have uploaded, press and hold the Reset button, press and hold the User button, release the Reset button, then release the User button.

Communication Ports

  • On Windows
  • On Mac

Coding

MPIDE contains many example programs: try Files -> Examples -> Basics -> Blink

The example programs look a lot like Arduino programs, and the environment is very similar. The main difference is that the examples may not use pins that the blue board has, so be sure to explicitly define your pins.

Example 1: Blink

Example 2: Analog input, serial output

Example 3: RC Servo

You will need to wire up an RC servo by following building the black board