background image

SunFounder pisloth

Here you can increase or decrease the number of items by dragging it.

Fill in the angle obtained in the previous project and name this action

up_down

(drag it from

Variables

category).

Use the

do

block to make PiSloth do this action once at 50% speed.

EXAMPLE

40

Chapter 3. Play with Ezblock

Summary of Contents for PiSloth

Page 1: ...SunFounder pisloth www sunfounder com Oct 19 2021 ...

Page 2: ......

Page 3: ... 8 Remote Control 29 3 9 Custom Step 32 3 10 Custom Action 38 4 Play with Python 41 4 1 Quick Guide on Python 41 4 2 Move 60 4 3 Dance 62 4 4 Obstacle Avoidance 65 4 5 Don t Touch Me 67 4 6 Let s Fight Warrior 69 4 7 Emotional PiSloth 71 4 8 Remote Control 74 4 9 Custom Step 76 4 10 Custom Action 79 5 Appendix 83 5 1 Filezilla Software 83 5 2 I2C Configuration 85 5 3 Remote Desktop 87 5 4 About th...

Page 4: ...ii ...

Page 5: ...ssembly pdf introduction to Robot HAT and programming of PiSloth are included The programming part is divided into two chapters Play with Ezblock Play with Python and each of them can get you stated on making PiSloth work in way you want Ezblock Studio is a development platform developed by SunFounder designed for beginners to lower the barriers to getting started with Raspberry Pi It has two prog...

Page 6: ...SunFounder pisloth 2 CONTENTS ...

Page 7: ...ny problems please contact us and we will solve them as soon as possible Please follow the steps on the PDF to assemble Note 1 Before assembling you need to buy 2 18650 batteries and fully charge them refer to About the Battery 2 Robot HAT cannot charge the battery so you need to buy a battery charger at the same time Component List and Assembly Instructions 3 ...

Page 8: ...SunFounder pisloth 4 Chapter 1 Component List and Assembly Instructions ...

Page 9: ...o extend the PWM output and ADC input for the Raspberry Pi as well as a motor driver chip Bluetooth module I2S audio module and mono speaker As well as the GPIOs that lead out of the Raspberry Pi itself It also comes with a Speaker which can be used to play background music sound effects and implement TTS functions to make your project more interesting 5 ...

Page 10: ... 12V PH2 0 2pin power input with 2 power indicators The board also has a user available LED and a button for you to quickly test some effects Note You can see more details in the Robot HAT Documentation 6 Chapter 2 About Robot HAT ...

Page 11: ...ere 3 1 Quick Guide on Ezblock There are 2 parts here Before Assembling PiSloth allows you to keep all the servos at 0 degrees to complete a proper and safe assembly otherwise you will probably damage the servos Before Programming With Ezblock will guide you to download Ezblock Studio to play with PiSloth 3 1 1 Before Assembling PiSloth Before assembling the PiSloth follow the instructions on how ...

Page 12: ...arm should return to the 0 position If the servo arm does not return to 0 press the RST button to restart the Robot HAT Note Before attaching each servo plug the servo cable into P11 and turn the power on to set the servo to 0 This function will become invalid after writing any programs to the Micro SD card 8 Chapter 3 Play with Ezblock ...

Page 13: ... think the assembly is perfect and no calibration is needed you can also skip this step Projects Here we show you the projects of playing PiSloth on Ezblock Studio If you are new to these you can refer to the code images inside each project to program and can learn the use of blocks according to TIPS If you don t want to write these projects one by one we have uploaded them to Ezblock Studio s Exa...

Page 14: ...ted and the Forever block is as the name suggests a continuous loop that allows your program to change and respond This block is used to make PiSloth do a specific action several steps at a speed for example let PiSloth go forward 1 step at 50 speed Different actions can be selected from the drop down options there are 22 in total 10 Chapter 3 Play with Ezblock ...

Page 15: ...nload icon in the bottom right corner you will see PiSloth move forward 3 steps backward 4 steps left 3 steps right 5 steps and finally stop Since the whole code is placed inside the Forever block PiSloth will repeat the above actions after stopping for a while You can try putting the code from the Forever block into the Start block and see what happens 3 2 Move 11 ...

Page 16: ...ngry and stay away from your touch TIPS You can directly use this block to read the distance to the obstacle right ahead Note When assembling Trig and Echo are connected to D2 and D3 respectively you also need to change them simultaneously when programming 12 Chapter 3 Play with Ezblock ...

Page 17: ...s you will have to change if do into if else do This can be achieved by clicking on the setting icon You need to use a conditional statements block in conjunction with if do Judging conditions can be A number block This block can emit some preset sound effects such as siren sound gun sound and so on The range of volume is 1 100 3 3 Don t Touch Me 13 ...

Page 18: ...SunFounder pisloth EXAMPLE 14 Chapter 3 Play with Ezblock ...

Page 19: ...of it EXAMPLE After the code runs PiSloth will walk forward If it detects that the distance of the obstacle ahead is less than 10cm it will stop and sound a warning then turn left for 7 steps and stop If there is no obstacle in the direction after turning left or the obstacle distance is greater than 10 it will continue to move forward Since the effective detection distance of the ultrasonic senso...

Page 20: ...SunFounder pisloth 16 Chapter 3 Play with Ezblock ...

Page 21: ...Functions especially when you perform the same operation multiple times Putting these operations into a newly declared function can greatly facilitate your use Click on the Functions category and select the appropriate function block the function you created will also appear here The Function block without output is used here EXAMPLE Shy 3 5 Emotional PiSloth 17 ...

Page 22: ...SunFounder pisloth Confuse Happy 18 Chapter 3 Play with Ezblock ...

Page 23: ...SunFounder pisloth Fear Sad 3 5 Emotional PiSloth 19 ...

Page 24: ...SunFounder pisloth Fall Call all custom functions in the Forever block 20 Chapter 3 Play with Ezblock ...

Page 25: ...SunFounder pisloth 3 6 Dance Now PiSltoh will show you his newly learned dance 3 6 Dance 21 ...

Page 26: ...iSloth TIPS In addition to having PiSloth play sound effects and speak it can also play set background music and the volume of the background music can be adjusted 0 100 Repeat block can help you execute the same code multiple times to reduce code size 22 Chapter 3 Play with Ezblock ...

Page 27: ...SunFounder pisloth EXAMPLE The whole dance is divided into 2 parts and PiSloth will finish these 2 parts with the music If you don t pause the code it will repeat the dance 3 6 Dance 23 ...

Page 28: ...SunFounder pisloth 24 Chapter 3 Play with Ezblock ...

Page 29: ... s Fight Warrior Here PiSloth is a brave warrior when it appears in front of the enemy it will let out a roar and rush to the enemy Note You can download and print the PDF Cartoon Mask for your PiSloth 3 7 Let s Fight Warrior 25 ...

Page 30: ...to a variable and use it multiple times Click the Create variable button on the Variables category to create a variable named distance You can use this block to set up an endless loop This is a block that jumps out of the loop and it has two options and can be only used within a loop break out Jump out of the entire loop continue with next interation Jump out of the current loop and enter the next...

Page 31: ...Sloth will continuously detect the distance of the obstacle when the distance is between 5 and 40 PiSloth will make a roaring sound and rush forward when the distance of the obstacle is less than 5 PiSloth will stop Flow Chart 3 7 Let s Fight Warrior 27 ...

Page 32: ...SunFounder pisloth 28 Chapter 3 Play with Ezblock ...

Page 33: ...mote Control Function TIPS To use the remote control function you need to enter the Remote Control page from the left side of main page and then drag one D pad and 4 buttons to the central area Back in the programming page you will see an additional Remote category and the D pad and Button block appear 3 8 Remote Control 29 ...

Page 34: ... it is 0 Button is press release This block and Button get value 0 1 have the same effect and can be used directly to determine whether a button is pressed or not D pad get value This block is used to read the up down left right selected through the drop down menu pad values press for 1 and release for 0 EXAMPLE 30 Chapter 3 Play with Ezblock ...

Page 35: ...SunFounder pisloth 3 8 Remote Control 31 ...

Page 36: ... learn how to customize PiSloth s step All we have to do is to use the buttons in the remote control page to make PiSloth complete the step shown in the figure below and then get the angles of the 4 Servos at that time Note You can download and print the PDF Cartoon Mask for your PiSloth Step 1 Drag out 9 buttons in the Remote Control to control the rotation angles of the 4 Servos on the PiSloth 3...

Page 37: ...SunFounder pisloth Step 2 Create 4 variables to store the angles of the 4 Servos Then initialize the angle to 0 3 9 Custom Step 33 ...

Page 38: ...ed to control the angles of the Servos button AB control the left leg button CD control the left foot button EF control the right leg button GH control the right foot Press button I and the angles of the 4 Servos will be printed in the Debug Monitor 34 Chapter 3 Play with Ezblock ...

Page 39: ...SunFounder pisloth 3 9 Custom Step 35 ...

Page 40: ...nd button GH according to the actual code to make PiSloth pose like this you can also make it do other steps Step 6 Click on the Debug Monitor icon in the bottom left corner and you will see the angle of the 4 servos in the Debug Monitor at that moment when you press button I Note Some times more than 2 sets of data may appear because if you click button I for a little longer Ezblock will think bu...

Page 41: ...SunFounder pisloth The complete code is as follows 3 9 Custom Step 37 ...

Page 42: ...he previous project we were able to give PiSloth custom steps so how do we combine these steps into actions For example have PiSloth make the step from the previous project and then return to the initial position 38 Chapter 3 Play with Ezblock ...

Page 43: ...DF Cartoon Mask for your PiSloth TIPS Create a variable up_down to store this action You can use the create action block to make PiSloth do this action These values represent the angles of the 4 Servos on the PiSloth The range is 90 90 3 10 Custom Action 39 ...

Page 44: ...e the number of items by dragging it Fill in the angle obtained in the previous project and name this action up_down drag it from Variables category Use the do block to make PiSloth do this action once at 50 speed EXAMPLE 40 Chapter 3 Play with Ezblock ...

Page 45: ...un the corresponding code If you are familiar with Raspberry Pi and can open the command line successfully then you can skip the first 3 parts and then complete the last part 4 1 1 What Do We Need Required Components Raspberry Pi The Raspberry Pi is a low cost credit card sized computer that plugs into a computer monitor or TV and uses a standard keyboard and mouse It is a capable little device th...

Page 46: ...ew the desktop environment of Raspberry Pi you need to use the screen that can be a TV screen or a computer monitor If the screen has built in speakers the Pi plays sounds via them Mouse Keyboard When you use a screen a USB keyboard and a USB mouse are also needed HDMI The Raspberry Pi has a HDMI output port that is compatible with the HDMI ports of most modern TV and computer monitors If your scr...

Page 47: ...y to the SD card Visit the download page https www raspberrypi org software Click on the link for the Raspberry Pi Imager that matches your operating system when the download finishes click it to launch the installer Step 2 When you launch the installer your operating system may try to block you from running it For example on Windows I receive the following message If this pops up click on More in...

Page 48: ...Pi Imager cache So the next time you open the software it will have the display Released date cached on your computer Step 5 Select the SD card you are using Step 6 Press Ctrl Shift X to open the Advanced options page to enable SSH and configure wifi these 2 items must be set the others depend on your choice You can choose to always use this image customization options 44 Chapter 4 Play with Pytho...

Page 49: ...ick SAVE Note wifi country should be set the two letter ISO IEC alpha2 code for the country in which you are using your Raspberry Pi please refer to the following link https en wikipedia org wiki ISO_3166 1_alpha 2 Officially_ assigned_code_elements 4 1 Quick Guide on Python 45 ...

Page 50: ...SunFounder pisloth Step 7 Click the WRITE button 46 Chapter 4 Play with Python ...

Page 51: ...oth Step 8 If your SD card currently has any files on it you may wish to back up these files first to prevent you from permanently losing them If there is no file to be backed up click Yes 4 1 Quick Guide on Python 47 ...

Page 52: ...SunFounder pisloth Step 9 After waiting for a period of time the following window will appear to represent the completion of writing 48 Chapter 4 Play with Python ...

Page 53: ...you ve set up with Raspberry Pi OS into the micro SD card slot on the underside of your Raspberry Pi 2 Plug in the Mouse and Keyboard 3 Connect the screen to Raspberry Pi s HDMI port and make sure your screen is plugged into a wall socket and switched on Note If you use a Raspberry Pi 4 you need to connect the screen to the HDMI0 nearest the power in port 4 Use the power adapter to power the Raspb...

Page 54: ...outer such as a home network you can check the addresses assigned to Raspberry Pi on the admin interface of router The default hostname of the Raspberry Pi OS is raspberrypi and you need to find it If you are using ArchLinuxARM system please find alarmpi 2 Network Segment Scanning You can also use network scanning to look up the IP address of Raspberry Pi You can apply the software Advanced IP sca...

Page 55: ...tten in C that is the bridge linking the customers and Unix Linux Moreover it can help to complete most of the work needed For Linux or Mac OS X Users Step 1 Go to Applications Utilities find the Terminal and open it Step 2 Type in ssh pi ip_address pi is your username and ip_address is your IP address For example ssh pi 192 168 18 197 Step 3 Input yes 4 1 Quick Guide on Python 51 ...

Page 56: ...SunFounder pisloth Step 4 Input the passcode and the default password is raspberry Step 5 We now get the Raspberry Pi connected and are ready to go to the next step 52 Chapter 4 Play with Python ...

Page 57: ...sword For Windows Users If you re a Windows user you can use SSH with the application of some software Here we recommend PuTTY Step 1 Download PuTTY Step 2 Open PuTTY and click Session on the left tree alike structure Enter the IP address of the RPi in the text box under Host Name or IP address and 22 under Port by default it is 22 4 1 Quick Guide on Python 53 ...

Page 58: ... login as type in pi the user name of the RPi and password raspberry the default one if you haven t changed it Note When you input the password the characters do not display on window accordingly which is normal What you need is to input the correct password If inactive appears next to PuTTY it means that the connection has been broken and needs to be reconnected 54 Chapter 4 Play with Python ...

Page 59: ...lease refer to Remote Desktop 4 1 4 Download and Run the Code Download the Code Install 2 Libraries We can download the files by using git clone in the command line Install robot hat library first cd home pi git clone https github com sunfounder robot hat git cd robot hat sudo python3 setup py install Note Running setup py will download some necessary components You may fail to download due to net...

Page 60: ...nder pisloth git cd pisloth sudo python3 setup py install This step will take a little time so please be patient Finally you need to run the script i2samp sh to install the components required by the i2s amplifier otherwise the pislot will have no sound cd home pi pisloth sudo bash i2samp sh 56 Chapter 4 Play with Python ...

Page 61: ...SunFounder pisloth Type y and press Enter to continue running the script Type y and press Enter to run dev zero in the background 4 1 Quick Guide on Python 57 ...

Page 62: ... the i2samp sh script multiple times Run servo_zeroing py Because the servo is powered by the power supply on the Robot HAT when you only supply power to the Raspberry Pi the servo will not work You need to make sure that the batterries are placed in the battery box and the Robot HAT is powered on 58 Chapter 4 Play with Python ...

Page 63: ...in the examples folder cd home pi pisloth examples sudo python3 servo_zeroing py To make sure you can see that the servo has been set to 0 you can insert a rocker arm in the servo shaft first and then turn the servo to another angle Now follow the diagram below and insert the servo to the P11 position 4 1 Quick Guide on Python 59 ...

Page 64: ...ck the insertion direction of the servo cable and re run the code Note Before assembling each servo you need to plug the servo pin into P11 and keep the power on After the assembly is complete you can try to run the projects below 4 2 Move This is the first project PiSloth has woken up and it moves freely 60 Chapter 4 Play with Python ...

Page 65: ...y Run Stop the code below But before that you need to go to source code path like pisloth examples After modifying the code you can run it directly to see the effect from pisloth import Sloth sloth Sloth 1 2 3 4 sloth set_offset 0 0 0 0 def main sloth do_action turn left 7 90 sloth do_action forward 5 90 sloth do_action turn right 7 90 sloth do_action forward 5 90 if __name__ __main__ while True m...

Page 66: ...action function It has four parame ters motion_name is the name of specific actions including forward turn right turn left backward stand moon walk left moon walk right hook big swing swing walk boldly walk backward boldly walk shyly walk backward shyly stomp rihgt stomp left close open tiptoe left tiptoe right fall left fall right step represents the number of each action is done the default is 1...

Page 67: ...you don t stop the code it will repeat the dance Code Note You can Modify Reset Copy Run Stop the code below But before that you need to go to source code path like pisloth examples After modifying the code you can run it directly to see the effect from pisloth import Sloth from robot_hat import Music from robot_hat import Ultrasonic from robot_hat import Pin import time import os music Music slot...

Page 68: ...do_action stomp left 3 bpm 129 sloth do_action stomp rihgt 3 bpm 129 sloth do_action moon walk left 3 bpm 129 sloth do_action moon walk right 3 bpm 129 for i in range 3 sloth do_action hook 1 bpm 129 sloth do_action stand 1 bpm 129 for i in range 4 sloth do_action swing 1 bpm 129 sloth do_action big swing 1 bpm 129 sloth do_action swing 1 bpm 129 sloth do_action stand 1 bpm 129 sloth do_action tip...

Page 69: ...s en wikipedia org wiki Tempo Note You can add different sound effects or music to musics or sounds folder via Filezilla Software 4 4 Obstacle Avoidance In this project PiSloth will use an ultrasonic module to detect obstacles in front When PiSloth detects an obstacle it will send a signal and look for another direction to move forward Run the Code cd home pi pisloth examples sudo python3 avoid py...

Page 70: ...port Ultrasonic Then initialize the ultrasonic pins sonar Ultrasonic Pin D2 Pin D3 Here is the main program Read the distance detected by ultrasonic module and filter out the values less than 0 When the ultrasonic module is too far from the obstacle or cannot read the data correctly distance 0 will appear When the distance is less than or equal to alert_distance the threshold value set earlier whi...

Page 71: ..._me py Code Note You can Modify Reset Copy Run Stop the code below But before that you need to go to source code path like pisloth examples After modifying the code you can run it directly to see the effect from pisloth import Sloth from robot_hat import Music from robot_hat import Ultrasonic from robot_hat import Pin import time import os music Music sloth Sloth 1 2 3 4 sloth set_offset 0 0 0 0 s...

Page 72: ... print it When the distance is less than or equal to alert_distance the threshold value set earlier which is 20 play the sound effect talk3 wav and move backward When the distance is greater than alert_distance PiSloth will Stand distance sonar read print distance if distance alert_distance try music sound_effect_threading sounds talk3 wav except Exception as e print e sloth do_action backward 2 9...

Page 73: ...ance of the obstacle when the distance is between 5 and 40 PiSloth will make a roaring sound and rush forward when the distance of the obstacle is less than 5 PiSloth will stop Code Note You can Modify Reset Copy Run Stop the code below But before that you need to go to source code path like pisloth examples After modifying the code you can run it directly to see the effect from pisloth import Slo...

Page 74: ...leep 1 if __name__ __main__ while True main How it works Here is the main program Read the distance detected by ultrasonic module and filter out the values less than 0 When the ultrasonic module is too far from the obstacle or cannot read the data correctly distance 0 will appear When the distance is between 5 and 40 PiSloth will play warning wav and attack mp3 and move forward When the distance i...

Page 75: ...You can Modify Reset Copy Run Stop the code below But before that you need to go to source code path like pisloth examples After modifying the code you can run it directly to see the effect from pisloth import Sloth from robot_hat import TTS Music import time tts TTS music Music sloth Sloth 1 2 3 4 sloth set_offset 0 0 0 0 def confuse try music sound_effect_threading sounds sign wav except Excepti...

Page 76: ...ef angry try music sound_effect_threading sounds error wav except Exception as e print e sloth do_action walk backward boldly 1 90 sloth do_action stand 1 90 def fail try music sound_effect_threading sounds depress2 wav except Exception as e print e sloth do_action fall left 1 90 def shy try music sound_effect_threading sounds talk3 wav except Exception as e print e sloth do_action close 1 90 time...

Page 77: ...y angry time sleep 1 sloth do_action stand 1 90 time sleep 2 print fail fail time sleep 1 sloth do_action stand 1 90 time sleep 2 if __name__ __main__ while True main How it works In this project actions sound effects are combined into different emotional actions and you can also modify them yourself Note This fail action will make the PiSloth fall be careful not to let it fall off the table and b...

Page 78: ... the effect from pisloth import Sloth from robot_hat import Music from robot_hat import TTS import sys import tty import termios import time sloth Sloth 1 2 3 4 tts TTS music Music sloth set_offset 0 0 0 0 def readchar fd sys stdin fileno old_settings termios tcgetattr fd try tty setraw sys stdin fileno ch sys stdin read 1 finally termios tcsetattr fd termios TCSADRAIN old_settings return ch manua...

Page 79: ...rs to the standard input stream and returns the first character of the data stream read tty setraw sys stdin fileno is to change the standard input stream to raw mode that is all char acters will not be escaped during transmission including special characters Before changing the mode back up the original mode and restore it after the change old_settings termios tcgetattr fd and termios tcsetattr f...

Page 80: ...y e tts say bye elif key chr 27 27 for ESC break Note You can add different sound effects or music to musics or sounds folder via Filezilla Software 4 9 Custom Step In the previous projects we used a lot of actions that we wrote so how are these actions composed and done Generally speaking an action is composed of one or more steps In this project we will learn how to customize PiSloth s step Run ...

Page 81: ...he 4 servos at this time You need to record these angle values which will be used in the next project Custom Action Code Note You can Modify Reset Copy Run Stop the code below But before that you need to go to source code path like pisloth examples After modifying the code you can run it directly to see the effect 4 9 Custom Step 77 ...

Page 82: ... sys stdin read 1 finally termios tcsetattr fd termios TCSADRAIN old_settings return ch manual Press keys on keyboard to control PiSloth Q Increase the servo angle of the left leg W Decrease the servo angle of the left leg Z Increase the servo angle of the left foot X Decrease the servo angle of the left foot I Increase the servo angle of the right leg O Decrease the servo angle of the right leg N...

Page 83: ... space print right_leg right_foot left_leg left_foot elif key chr 27 27 for ESC break right_leg_servo angle right_leg right_foot_servo angle right_foot left_leg_servo angle left_leg left_foot_servo angle left_foot time sleep 0 05 print nQuit if __name__ __main__ main 4 10 Custom Action In the previous project we were able to give PiSloth custom steps so how do we combine these steps into actions F...

Page 84: ...ing command nano custom_action py Step 3 Modify the angle in sloth add_action each group represents a step and only 2 steps are set here You can set multiple steps as needed sloth add_action my_action 0 45 0 40 0 0 0 0 Step 4 Run this code sudo python3 custom_action py Code Note You can Modify Reset Copy Run Stop the code below But before that you need to go to source code path 80 Chapter 4 Play w...

Page 85: ... code you can run it directly to see the effect from pisloth import Sloth import time sloth Sloth 1 2 3 4 sloth add_action my_action 0 45 0 40 0 0 0 0 def main sloth do_action my_action 1 80 time sleep 1 if __name__ __main__ while True main 4 10 Custom Action 81 ...

Page 86: ...SunFounder pisloth 82 Chapter 4 Play with Python ...

Page 87: ...les such as pictures and audio etc to the Raspberry Pi or download files from the Raspberry Pi to the local Step 1 Download Filezilla Download the client from Filezilla s official website Filezilla has a very good tutorial please refer to Documentation Filezilla Step 2 Connect to Raspberry Pi After a quick install open it up and now connect it to an FTP server It has 3 ways to connect here we use ...

Page 88: ...tion to Site Manager after a successful Quick Connect enter the name and click OK Next time you will be able to connect by selecting the previously saved site inside File Site Manager Step 3 Upload download files You can upload local files to Raspberry Pi by dragging and dropping them or download the files inside Raspberry Pi files locally 84 Chapter 5 Appendix ...

Page 89: ...Configuration Enable the I2C port of your Raspberry Pi If you have enabled it skip this if you do not know whether you have done that or not please continue sudo raspi config 3 Interfacing options P5 I2C 5 2 I2C Configuration 85 ...

Page 90: ...SunFounder pisloth Yes then Ok Finish 86 Chapter 5 Appendix ...

Page 91: ...u can use the function of remote desktop through VNC Enable VNC service The VNC service has been installed in the system By default VNC is disabled You need to enable it in config Step 1 Input the following command sudo raspi config Step 2 Choose 3 Interfacing Options by press the down arrow key on your keyboard then press the Enter key 5 3 Remote Desktop 87 ...

Page 92: ...h Step 3 P3 VNC Step 4 Select Yes OK Finish to exit the configuration Login to VNC Step 1 You need to download and install the VNC Viewer on personal computer After the installation is done open it 88 Chapter 5 Appendix ...

Page 93: ...SunFounder pisloth Step 2 Then select New connection Step 3 Input IP address of Raspberry Pi and any Name 5 3 Remote Desktop 89 ...

Page 94: ...SunFounder pisloth Step 4 Double click the connection just created 90 Chapter 5 Appendix ...

Page 95: ...SunFounder pisloth Step 5 Enter Username pi and Password raspberry by default 5 3 Remote Desktop 91 ...

Page 96: ...SunFounder pisloth Step 6 Now you can see the desktop of the Raspberry Pi 92 Chapter 5 Appendix ...

Page 97: ...cal login to remote machines using RDP Microsoft Remote Desktop Protocol Install XRDP Step 1 Login to Raspberry Pi by using SSH Step 2 Input the following instructions to install XRDP sudo apt get update sudo apt get install xrdp Step 3 Later the installation starts Enter Y press key Enter to confirm 5 3 Remote Desktop 93 ...

Page 98: ...he Remote Desktop feature that comes with Windows If you are a Mac user you can download and use Microsoft Remote Desktop from the APP Store and there is not much difference between the two The next example is Windows remote desktop Step 2 Type in mstsc in Run WIN R to open the Remote Desktop Connection and input the IP address of Raspberry Pi then click on Connect Step 3 94 Chapter 5 Appendix ...

Page 99: ...ops out Please type in your username and password After that please click OK At the first time you log in your username is pi and the password is raspberry Step 4 Here you successfully login to RPi by using the remote desktop 5 3 Remote Desktop 95 ...

Page 100: ...t HAT cannot charge the battery so you need to buy a battery charger When the two power indicators on the Robot HAT are off it means the power is too low and the batteries need to be charged Button Top vs Flat Top Please choose battery with button top to ensure a good connection between the battery and the battery holder 96 Chapter 5 Appendix ...

Page 101: ...erwise the robot may be cut power and stop running because of the overcurrent protection of the protective board Battery capacity In order to keep the robot working for a long time use large capacity batteries as much as possible It is recommended to purchase batteries with a capacity of 3000mAh and above 5 4 About the Battery 97 ...

Page 102: ...SunFounder pisloth 98 Chapter 5 Appendix ...

Page 103: ...users who have been following and supporting us Your valuable suggestions to us are our motivation to provide better products Particular Thanks Len Davisson Kalen Daniel Juan Delacosta Now could you spare a little time to fill out this questionnaire Note After submitting the questionnaire please go back to the top to view the results 99 ...

Page 104: ...SunFounder pisloth 100 Chapter 6 Thank You ...

Page 105: ... it for personal study investigation enjoyment or other non commercial or nonprofit purposes under therelated regulations and copyrights laws without infringing the legal rights of the author and relevant right holders For any individual or organization that uses these for commercial profit without permission the Company reserves the right to take legal action 101 ...

Reviews: