mC-mP "holographic" project

Status
Not open for further replies.

HERMES_PT

New Member
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.
 

Attachments

  • galvo.jpg
    8.9 KB · Views: 396
Maybe this is a good startpoint...
 

Attachments

  • pckbdtoi2sbus_187.pdf
    54.9 KB · Views: 245
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…