background image

Summary of Contents for SpiderPi

Page 1: ......

Page 2: ...econd Part Advanced Tutorial 14 6 1 Ultrasonic Obstacle Avoidance Code 23 6 2 Modify the Detection Distance and Rotation Angle 23 7 Visual Patrol 26 8 Advanced Tutorial 27 8 1 Modify the Identificatio...

Page 3: ...s The robot kit consists of a rechargeable lithium battery and charger Please pay attention to the following points when charging 1 The charging indicator will turn green when the battery charger is c...

Page 4: ...oard KEY2 button can turn off the Raspberry Pi when the bug occurs but please avoid turning off the power supply to shut down the Raspberry Pi 1 4 Control and Connection 1 The user of the finished pro...

Page 5: ...hone connects to the Wi Fi created by the Raspberry Pi Following the instructions below to help the APP connect to the Raspberry Pi robot 1 Turn on the robot power switch If the expansion board LED1 l...

Page 6: ...ow appears click the robot icon to connect to the robot Image 2 3 Mobile Phone APP Search Robot 2 3 Mobile APP Operation Touch your phone screen the App will appear the interface like the image below...

Page 7: ...n show the action group Click this button to show the game switching optional bar Click this button will show the software version and description Click this button will open the photo saving director...

Page 8: ...Image 2 5 Control System Interface Image 2 6 Switching the Gameplay...

Page 9: ...he firewall before opening the application Image 3 1 Terminal Application 3 2 Controlling Software Connection 1 Turn on the Raspberry Pi power switch 2 When Raspberry Pie is turning on it will automat...

Page 10: ...ware Operation 1 Click the Scan button to scan the hotspot after opening the 5 1 version terminal application Image 3 3 Interface Display 2 When the scan finishes the camera s image will appear on the...

Page 11: ...m interface Users who don t have available monitor can learn how to use VNC to remotely control and operate the Raspberry Pi VNC Control VNC is a graphical remote control software With VNC we can cont...

Page 12: ...Image 4 2 VNC Installation Process 3 Click Accept agreement in the prompt box and click Next to enter the next step Image 4 3 VNC Installation Agreement 4 Click Install in the pop up page...

Page 13: ...Reminder 5 Wait for the installation Click the Finish button to end this installation When all things are done open VNC Figure 4 5 VNC Installation Completion Prompt 6 After connecting the VNC success...

Page 14: ...d LED2 of the Raspberry Pi will keep on After a while the LED1 will flash every 2 seconds which means that the Raspberry Pi is working 2 The Raspberry Pi will launch a hotspot which first letter name...

Page 15: ...click OK Raspberry Pi s desktop will display on your computer s monitor After entering the Raspberry Pi interface a warning dialogue box will pop up That s a normal circumstance click OK to close it I...

Page 16: ...ter the command to open the game program 7 Press Enter you will find all the files in the directory displayed on the LX terminal The six py files shown below are the gameplay file Hexapond_balance py...

Page 17: ...run the colour identification gameplay program cv_color_stream py you can enter the python3cv_color_stream py command Image 1 8 Enter Specified Gameplay Command 9 After pressing the Enter the camera...

Page 18: ...tion Gameplay Running Interface 10 If you want to stop the game program you can click the LX terminal part and let its window be at the front then press Ctrl C on the keyboard at the same time to stop...

Page 19: ...n below and press Enter to locate the image recognition directory Image 2 1 Image Recognition Program Location 2 Next enter the command shown on the image below In the pop up window we can see the rea...

Page 20: ...ow and press Enter to locate the image recognition directory Image 3 1 Image Recognition Program Location 2 Next enter the command shown on the image below In the pop up window we can see the real tim...

Page 21: ...Program Location 2 Next enter the command shown on the image below In the pop up window we can see the real time image Put a red object in front of the camera the default colour of the program is red...

Page 22: ...ognition directory Image 5 1 Image Recognition Program Location 2 the robot on a horizontal table and then LX after the command input terminal shown in FIG press Enter key Press Enter key the body s s...

Page 23: ...w and press Enter After entering the command the robot will keep moving forward If it encounters an obstacle it will display the Right first capital letter on the L X terminal interface and turn to th...

Page 24: ...istance unit centimetres When the obstacle distance is greater than 40 cm or can t detect any object distance value equal 0 the robot will go forward If you want to shorten the default distance Enter...

Page 25: ...Image 6 5 Rotation Parameter Setting 4 Press the Esc key on the keyboard to exit the editor mode and enter the wq command to save the file and exit the LX editor...

Page 26: ...image recognition directory Image 7 1 Visual Patrol Program Loaction 2 Next enter the command shown below In the pop up window we can see the real time image and the robot moves with following the bla...

Page 27: ...green and blue L component means the brightness of the pixel The greater the L value the higher the brightness is A component means the range from red to green B component means the range from yellow...

Page 28: ...ker at the bottom left to see the between Lab and RGB as shown below Figure 8 2 Color Palette 8 1 4 Modify the recognised colour Re as an example and the rest of the gameplay colour switching can refe...

Page 29: ...this gameplay program defaults to the red colour Then drag the sliders of L A and B until the colour area on the left screen turns to the white and the other regions turn black For example to identif...

Page 30: ...sfully written in and then enter the following command to check the colour setting program Image 8 7 Open the Color Setting Program 5 Check the command marked by red frame below If the modified value...

Page 31: ...spberry Pi Hotspot Modification In this section we will teach you how to change the default Wi Fi name and password 1 Open the Raspberry Pi enter VNC and remotely connect to the Raspberry Pi Desktop 2...

Page 32: ...4 The interface is as shown Image 8 11 Configuration File Display 5 Click i will display Insert on the left Modify the parameter according to your needs Image 8 12 Insert mode...

Page 33: ...assword 7 After the modification completed press the ESC button on the keyboard then enter wq to save the file and exit the program Image 8 14 Save and Exit the Program File 8 Enter sudo systemctl res...

Page 34: ...ists the files in the current directory cd Change Directory Switch directory path pwd Print Working Directory display the directory ping Packet Internet Groper Test network connection Shut down Shut d...

Page 35: ...echo Echo Let the inputting command echo back to the terminal interface sudo Superuser do Run commands as system administrator clear Clear Clear up all the command in the terminal...

Page 36: ...relevant network configuration program has not been modified and try to connect it by a computer 3 If the computer has access to connect to the robot but the phone doesn t Your phone may not compatib...

Page 37: ...to the one side It means the position of the servo is not in the middle of it has rotates before installation 2 Unplug the servo wire of the neck part servo and remove head and neck connecting servo h...

Page 38: ...cial or mechanical reason cause the break down of rotation of the servo output shaft After the servo blocked the internal current will increase to 7 8 times and the temperature will also rise and it m...

Page 39: ...sert the camera connecting the wire on the Raspberry Pi USB port and enter the command lsusb again If it works properly The ID number of the camera will appear Image 9 4 Camera ID 3 After inserting th...

Page 40: ...The servo blocking means the artificial or mechanical reason cause the break down of rotation of the servo output shaft After the servo blocked the internal current will increase to 7 8 times and the...

Page 41: ...ified If you change the image when you are not familiar with the specific network configuration it may cause the failure working of the hotspot and you can re burn the image to solve this problem Ques...

Page 42: ...Company Address 2nd Floor Building B Cultural Innovation Park No 1 Dongjin Road No 227 Ai Nan Road Longgang Street Longgang District Shenzhen Guangdong China...

Reviews: