Lab Assignment

 

Tom's Main Menu

Physical Computing Home

Intro to Physical Computing Syllabus

Networked Objects

Sustainable Practices

blog

Resources

code, circuits, & construction

my del.icio.us links

 

 

Serial output: MIDI

 

Minimum parts needed: (new parts in bold. see parts list for details)

  • Prototyping board (breadboard)
  • Power supply connector
  • 5-15VDC power supply
  • Assorted wires
  • 5V regulator
  • PIC 18F452 or BX-24
  • Serial cable
  • DB9 female serial connector & headers
  • 5 pin DIN female connector (MIDI connector)
  • 2N2222 (NPN2222) transistor
  • 7404 Hex Inverter (PIC only)
  • LED's
  • Switch
  • Variable resistor
  • 10Kohm resistors
  • 220 ohm resistors

Step 1:

Connect a MIDI out circuit to your microcontroller as shown in the PIC MIDI notes or the BX-24 MIDI notes.

 
Step 2:

Connect an analog sensor to one of the ADC pins of the BX-24 and use it to generate a value from 36 to 96. Put it in a variable called something useful like noteVar. Confirm that noteVar is actually changing reliably when you affect the sensor, using a debug statement.

 
Step 4:

Connect your MIDI circuit to a MIDI synthesizer and hear what happens.

 
Step 5:

Make a MIDI instrument using an analog sensor or a variety of analog sensors as input.