12.07.2015 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.

Head I2C Slave address = 0x10Index Write Read Value function0 x x 0-255 No function1 PWM L BLUE x 0-255 PWM value of RGB led’s – Left Eye Blue2 PWM L GRN x 0-255 PWM value of RGB led’s – Left Eye Green3 PWM L RED x 0-255 PWM value of RGB led’s – Left Eye Red4 PWM R RED x 0-255 PWM value of RGB led’s – Right Eye Red5 PWM R GRN x 0-255 PWM value of RGB led’s – Right EyeGreen6 PWM R BLUE x 0-255 PWM value of RGB led’s – Right Eye Blue7 8 LED MOUTH x 0-255 Depends on value in register [index 11]If [index 11] = 0 – then the 8 bit value of[index7] will be displayed on the led’s ofthe mouthIf[index11] is not zero – then the sound –produced by the MP3 module – will bedisplayed on the led’s of the mouth inkind of a VU meter mode. The exact valuein [index11] will determine the <strong>se</strong>nsitivityof the led’s to the sound.8 x Light <strong>se</strong>nsor L 0-255 Light <strong>se</strong>nsor in left eye – A/D value 0-2559 x Light <strong>se</strong>nsor R 0-255 Light <strong>se</strong>nsor in right eye – A/D value 0-25510 x Sound MP3 0-255 A/D measurement of sound pressure –coming from the MP3 sound module.11 Sensitivity x 0-255 Sensitivity of the led’s of the mouth tosound. How larger this value – how more<strong>se</strong>nsitive it will be – usually a value of 50is a good starting value.This <strong>se</strong>nsitivity can also be changes by apotentiometer on the PCB of the head.Bart Huyskens <strong>Manual</strong> <strong>Elektor</strong> <strong>Proton</strong> V1.0 3 April 2011 63

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

Saved successfully!

Ooh no, something went wrong!