Programming a LEGO Atomic Force Microscope

조회 수: 4 (최근 30일)
Aditi
Aditi 2011년 6월 19일
Hi,
I have built a model of the atomic force microscope using the LEGO Mindstorms set. I have the model mechanically set up, but I am having problems programming it so that it produces an image of the sample being profiled.
Basically, I have a cantilever arm that is deflected as the sample stage moves. The sample stage moves in a raster fashion (moves across one row, and then back, and moves up one step and repeats). A mirror is attached to the back of the cantilever onto which a laser is reflected off. The reflected laser hits the light sensors that are stationed on the opposite side of the laser tower. There are 4 light sensors that are aligned vertically. The height of the sample is determined by how high the reflected beam is.
How do I program the system so that I can produce an image of the sample surface on MATLAB?
Any help will be greatly appreciated. Thank you!
  댓글 수: 2
David Young
David Young 2011년 6월 19일
This may be too big a question for anyone to answer effectively in the space of a MATLAB Answers response. To begin to tackle it one would need to know much more about how the data are organised and communicated to MATLAB. Perhaps you could say something about the specific problems you've encountered in trying to write the program.
If you respond to this comment, please do it by editing your question rather than by adding an "answer".
Walter Roberson
Walter Roberson 2011년 6월 19일
Would a diagram be available of the setup ?

댓글을 달려면 로그인하십시오.

답변 (1개)

Rolfe Dlugy-Hegwer
Rolfe Dlugy-Hegwer 2012년 6월 14일
If you are running the R2012a version of MATLAB/Simulink, install support for LEGO MINDSTORMS NXT, by entering targetinstaller in the MATLAB Command Window. When you have completed that process, create a Simulink model that uses blocks from the "Target for Use with LEGO MINDSTORMS NXT Hardware" block library. Then run the model on the NXT brick.

카테고리

Help CenterFile Exchange에서 LEGO MINDSTORMS EV3 Hardware에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by