Development Daughter Board


 

USD14.95

10 days
DB66DEV1
176 item(s)
+

Overview

The DB66DEV1 is a development daughter board for Netcruzer SBC66 Single Board Computers. It plugs into the daughter board connector of the SBC66 board. It provides common inputs and outputs required for prototyping and development.

 

Features

  • 4 Tactile buttons connected to SBC66 Ports Y0, Y1, Y2 and Y3.
  • 8 Red LEDs connected to SBC66 Ports X6, X7, X8, X9, T4, T5, T6 and T7.
  • A potentiometer connected to SBC66 Ports X3.
  • A buzzer connected to SBC66 Ports Y4.
  • Three 2x3 pin headers (standard 2.54mm) connected power
  • One 2x3 pin header (standard 2.54mm) connected I2C port and power
  • A 1x14 pin header (standard 2.54mm) connected to LED ports and power. Can be used as 8 digital input or output ports.
  • A 1x4 pin header (standard 2.54mm) connected to SBC66 Ports X1, X2, X4 and X5. Can be used as Analog inputs, or general purpose I/Os.
  • A 1x4 pin header (standard 2.54mm) connected to SBC66 Ports Y6, Y7, Y8 and Y9. Can be used as general purpose I/Os, or reconfigurable pins (PWM, SPI, UART...).

Getting Started (Demo Projects)

The easiest way getting started with the DB66DEV1 board is to modify one of our demo projects. We provide many example programs for this board, located in the "../src/demos" folder of the Netcruzer Download. All code is written in C, and can be edited, programmed and debugged with the free MPLAB X IDE, and compiled with the free MPLAB XC16 C Compiler. For information on modifying projects click here.

A SBC66 board is of course also required to plug the DB66DEV1 board into. The firmware generated using the XC16 compiler can be uploaded to the SBC66 board via a PIC programmer, or via USB using the bootloader on the SBC66 board (or Ethernet for the SBC66EC or SBC66ECL). For details click here.

LEDs

The board has 8 LEDs that are connected to SBC66 Ports X6, X7, X8, X9, T4, T5, T6 and T7. Controlling a LED is very easy, and requires the port to be configured as an output, after which it can be set to 1 to turn it on, or 0 to turn it of. The following code shows an example of turning LED 1 on:

DIR_X6 = OUTPUT_PIN;	//Configure port X6 (LED 1) as an output
LAT_X6 = 1;		//Turn LED 1 on

Buttons

The board has 4 buttons that are connected to SBC66 Ports Y0, Y1, Y2 and Y3. The buttons don't have any pull-up or pull-down resistors, and the port pull-up resistors on the SBC66 ports have to be used. The following examples shows how to read the button connected to port Y0:

DIR_Y0 = INPUT_PIN;     //Configure port Y0 (Button 1) as an input
PULLUP_Y0 = 1;          //Enable Pull-Up resistor on port Y0

//Do something if button 1 is pressed (buttons are active low = 0 when pressed)
if (PIN_Y0 == 0) {
    .... Do Something ....
}

Buzzer (PWM Output)

Port Y4 is connected to a buzzer via a driver circuit. Setting this port to 1 will activate the buzzer. Port Y4 is also connected to a relocatable port pin for all new SBC66 boards (not the case for the SBC66EC Revision 1 and SBC66ECL Revision 1). For these boards port Y4 can be configured to be a PWM output, and output a signal at a given frequency. The loudness of the buzzer can be controlled by varying the duty cycle of the PWM. See demo project for details on how to do this.

The following examples shows how to configure port Y4 as a PWM output, and activate the buzzer with a 1kHz tone:

//Configure Y4 (Buzzer on DB66DEV1) as PWM channel 3
pwm3OpenDefault(PPS_OUT_Y4, 0);

//Output a 1kHz tone at 0.1 duty cycle. (use 0.1 so buzzer is not too loud, 0.5 is maximum volume)
pwmSetFreqAndDutyCycle(3, 1000, 0.1);

Potentiometer (Analog Input)

Port X3 is connected to a potentiometer, which provides an output of 0 to 3.3V. This port can be configured as an analog input to read the value of the potentiometer. The following examples shows how to test if the analog input has a value of 2.0V or more:

adcOpen(ADC_OPEN_X3);     //Configure X3 as ADC channel

//Test if analog input is above 2.0V (2000mV)
if (adcGetChanMv(ADC_CH_X3) > 2000) {
    .... Do Something ....
}

Pin Headers

There are multiple pin headers with power, Analog Inputs, Relocatable Ports (PWM, timer, SPI, UART..) and an I2C port. They are all made available via standard 2.54mm pin headers. See Picture 3 and Schematics for details.
The Relocatable Ports can for example be configured to be PWM outputs, a SPI bus, a TTL serial port (UART) or many other possibilities.

User Manual, Schematics and Board Revision

For the user manual, including schematics, click here.

None