Hi:
Please, i need some help.
I have to work in an "holographic" project.
What is this? I have to use a picf252, 2 H bridge (L293), a max232, 2 galvanometers with a mirror attached in the vain and a laser ... to do this: when i keyboard a letter (for example I), that letter must be drawn in an incidence surface (wall), using the 2 mirrors attached in the galvos.
I know how to to do a funtion to draw the letter´s movements: i don´t know is how to do comunication between keybord and pic, and how to configure the pic.
/* Character I */
/* motor1 drawns a hotizontal line, and motor 2 a vertical one*/
{ /* initial positions for motor1 (always stop in the midle) & motor2 */
RB0=0;RB1=0;RB2=0;RB3=1;RB4=1;RB5=0; /* 2 in the right*/
RB0=0;RB1=0;RB2=0;RB3=0;RB4=0;RB5=1; /* 2 going to the midle*/
RB0=0;RB1=0;RB2=0;RB3=1;RB4=0;RB5=1; /* 2 going left*/
RB0=0;RB1=0;RB2=0;RB3=0;RB4=1;RB5=0; /* 2 going to midle, again)
RB0=0;RB1=0;RB2=0;RB3=1;RB4=1;RB5=0; /* 2 going to right*/
I have to do this indefinitely times, untill another letter is chosen
using the keyboard.
Have someone an idea?
Thanks.
Please, i need some help.
I have to work in an "holographic" project.
What is this? I have to use a picf252, 2 H bridge (L293), a max232, 2 galvanometers with a mirror attached in the vain and a laser ... to do this: when i keyboard a letter (for example I), that letter must be drawn in an incidence surface (wall), using the 2 mirrors attached in the galvos.
I know how to to do a funtion to draw the letter´s movements: i don´t know is how to do comunication between keybord and pic, and how to configure the pic.
/* Character I */
/* motor1 drawns a hotizontal line, and motor 2 a vertical one*/
{ /* initial positions for motor1 (always stop in the midle) & motor2 */
RB0=0;RB1=0;RB2=0;RB3=1;RB4=1;RB5=0; /* 2 in the right*/
RB0=0;RB1=0;RB2=0;RB3=0;RB4=0;RB5=1; /* 2 going to the midle*/
RB0=0;RB1=0;RB2=0;RB3=1;RB4=0;RB5=1; /* 2 going left*/
RB0=0;RB1=0;RB2=0;RB3=0;RB4=1;RB5=0; /* 2 going to midle, again)
RB0=0;RB1=0;RB2=0;RB3=1;RB4=1;RB5=0; /* 2 going to right*/
I have to do this indefinitely times, untill another letter is chosen
using the keyboard.
Have someone an idea?
Thanks.