Programming a LEGO Atomic Force Microscope
2 次查看(过去 30 天)
显示 更早的评论
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
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".
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 LEGO MINDSTORMS EV3 Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!