05.08.2014 Views

Programming Manual Elektor Proton Robot - ELEKTOR.se

Programming Manual Elektor Proton Robot - ELEKTOR.se

Programming Manual Elektor Proton Robot - ELEKTOR.se

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Summary of the different modules, their connection and functionality:<br />

8 Red led’s<br />

LD0-LD7<br />

Piezo<br />

sounder<br />

IO3<br />

Red and<br />

Black Button<br />

SBR - SWB<br />

3 Line<br />

<strong>se</strong>nsors<br />

RGT-CNT-LFT<br />

IR Distance<br />

<strong>se</strong>nsors<br />

AD0-AD1-<br />

AD2<br />

Motor driver<br />

module<br />

SCL-SDA<br />

8 led’s – on the motherboard<br />

8 Digital outputs / 1 = led on / 0 = led off<br />

Connected to 8 bit port of uC<br />

Function: first programming steps - debugging<br />

Connected to one pin of the uC<br />

Digital output –<br />

driven by frequency of square wave<br />

Can produce any frequency in audio spectrum<br />

Function: Beep sounds – alarms – Ringtones<br />

J7 can disconnect the Piezo from the IO3 line. IO3 is also<br />

connected to the j6 extra IO connector.<br />

2 push buttons – normally open<br />

Connected to the pins of the uC<br />

Digital input<br />

will give a ‘high’ signal to 2 pins of the uC when pushed<br />

Function: choice of programs / options<br />

3 IR TCRT5000 line <strong>se</strong>nsors of Vishay<br />

Connected to 3 lines of the uC<br />

3 Digital inputs<br />

Black Surface = 1 / White surface = 0<br />

Functionality:<br />

• Follow white or black line<br />

• Detect edge of table or play field<br />

3 <strong>se</strong>nsors : GP2Y0A21 from Sharp<br />

The<strong>se</strong> <strong>se</strong>nsors can measure distances from 10-80cm<br />

Sensors give an analogue value between 0-5V to the uC<br />

Connected to 3 A/D inputs of the uC<br />

MD25 motor driver module<br />

Connected to the uC via I2C Bus<br />

Standard I2C Slave address: 0xB0<br />

Functionality:<br />

• Drive 2 DC motors (Speed – Acceleration rate - ….)<br />

• Feedback from encoders in motors for accurate<br />

positioning up to 1° wheel position<br />

• Feedback from battery voltage<br />

• Feedback from Motor current<br />

PIC<br />

D0-D7<br />

A4<br />

Red: B4<br />

Black: B5<br />

LFT:B0<br />

CNT:B1<br />

RGT:B2<br />

LFT:ADC0<br />

CNT:ADC1<br />

RGT:ADC2<br />

I2C Slave<br />

address:<br />

0xB0<br />

AVR<br />

B0-B7<br />

D7<br />

Red: D2<br />

Black: D3<br />

LFT:D4<br />

CNT:D5<br />

RGT:D6<br />

LFT:ADC0<br />

CNT:ADC1<br />

RGT:ADC2<br />

I2C Slave<br />

address:<br />

0xB0<br />

LCD<br />

SCL-SDA<br />

LCD03 Serial I2C LCD module<br />

4 lines of 20 characters<br />

Connected to uC via I2C Bus<br />

Standard I2C Slave address: 0xC6<br />

Functionality:<br />

• Display measured values<br />

• Display text-messages<br />

• Ideal for Debugging purpo<strong>se</strong>s<br />

I2C Slave<br />

address:<br />

0xC6<br />

I2C Slave<br />

address:<br />

0xC6<br />

Bart Huyskens <strong>Manual</strong> <strong>Elektor</strong> <strong>Proton</strong> V1.0 3 April 2011 10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!