182
edits
JinYunshui (talk | contribs) |
|||
Line 82: | Line 82: | ||
In the right picture of the “detailed look”, the gear stays at most left side is the last gear of the whole gears chain. | In the right picture of the “detailed look”, the gear stays at most left side is the last gear of the whole gears chain. | ||
Note: Since the material of plastic is quiet elastic, the Lego based scanner is kind of loose and the belt connecting the stepper with the wheel also brings some problem like sliding issues. It would be much better if you can build the “professional” one. However, you need to gain some experience with the mechanical tools and the “professional” gears are not so easy to find, unless you build your own with laser cutter or 3D printer. | Note: Since the material of plastic is quiet elastic, the Lego based scanner is kind of loose and the belt connecting the stepper with the wheel also brings some problem like sliding issues. It would be much better if you can build the “professional” one. However, you need to gain some experience with the mechanical tools and the “professional” gears are not so easy to find, unless you build your own with laser cutter or 3D printer. | ||
====Step 5 Coding & Wiring==== | |||
Wiring | |||
Plug the DFRobot LCD shield into the Arduino, and follow the schematic below. Begin with the circuit of the stepper done in the previous steps. Add more components to the circuit like potentiometers and LCD shield to build up the hardware interface so that you can adjust the motor speed and the rotation range by these two potentiometers directly. | |||
[[File:laser_step5.png|600px|]] | |||
[[File:laser_step6.png|600px|]] | |||
Coding: Install the library [File:DFR_Key.zip|LCD shield Library]for the LCD shield ( detailed installation steps can be found in the | |||
“READ ME”). And also writing the function of if receive the ‘S’ from the serial port. | |||
Notice that the switcher for triggering the stepper is removed from the circuit. David software will send ‘S’ through the serial port when the start button is clicked, and ‘T’ will be sent if the stop button is clicked. In order to synchronize the software with the hardware, a function of triggering the stepper by receiving ‘S’ and ‘T’ is written in the code. | |||
Complete code with very detailed comments can be found here. | |||
===Related Links To That Topic=== | ===Related Links To That Topic=== |
edits