[vc_row][vc_column][vc_column_text]Let me tell you a story:
Legend in a long time ago, the world is divided into east wins god Zhou , west cow He Zhou ,, south Shan continent, north LuZhou. In east wins god Zhou countries, there is a huaguo mountain, the mountain there was a stone, a fairy stone burst, from the stone rolled out an egg, the egg one see the wind turned into a stone monkey, the monkey eye injection were gold, on four pilgrimage.[/vc_column_text][vc_tour][vc_tab title=”1. Project introduce” tab_id=”1421673407-1-98″][vc_column_text]Reduction the scene of the birth of the SunWuKong, when press the button the Monkey King would jump from the boundless mountains[/vc_column_text][/vc_tab][vc_tab title=”2. Hardware prepare ” tab_id=”1421673407-2-88″][vc_column_text]1.Pcduino V3
2.Pcduino extra board
3.Linker button[/vc_column_text][/vc_tab][vc_tab title=”3. Project real figure.” tab_id=”1421674087470-2-9″][vc_column_text][/vc_column_text][/vc_tab][vc_tab title=”4.Project content ” tab_id=”1421674088861-3-0″][vc_column_text]First we learn the Scratch for Pcduino interface before we write the program.
Figure 1-1 Scratch for Pcduino working interface
Figure 1-2 Draw the stage background
- Click the , delete ,click import the “png”as the new role, adjust the role size with .
- Write the following script at the instruction script area for the characters.
FIgure 1-3 The script for SunWukong born
Notice:
for the button sensor connect to the A4 port, so use this command to show the button station.
this command is to make sure the hide position of WuKong.
this control the fly speed and position of WuKong.[/vc_column_text][/vc_tab][vc_tab title=”Button switch” tab_id=”1421675390817-4-6″][vc_column_text]Button switch is to use button push the transmission mechanism, make the moving contact and the static contact flux or disconnect according to the switch. Switch is a simple construction , widely used in the Lord make appliances. In the automatic electronic control circuit, it is used to manually send control signal to control the contactor, relays, electromagnetic starter, etc.
Figure 1-4 kinds of the switch
[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]
Leave a Reply
You must be logged in to post a comment.