
7.4.5 AddDIYDevicewithESP32.................................. 89
7.4.6 Start the Home Assistant Service at Boot . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
7.4.7 Enter the Home Assisant Page at Boot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
7.4.8 Home Assistant File Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
7.5 Cloud4RPi ................................................ 97
7.5.1 QuickGuideonCloud4RPi................................... 97
7.5.2 Learn More about control.py ............................... 102
7.5.3 Projects ............................................. 103
7.6 GPIOProgramming ........................................... 120
7.6.1 Electronic Kit for Raspberry Pi and Arduino . . . . . . . . . . . . . . . . . . . . . . . . . . 120
7.6.2 Da Vinci Kit for Raspberry Pi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
7.7 ScratchProjects ............................................. 121
7.7.1 AnimateAName........................................ 122
7.7.2 CreateaStory.......................................... 130
7.7.3 MakeMusic........................................... 140
7.7.4 ClickerGame.......................................... 145
7.7.5 ShootingGame ......................................... 150
7.7.6 HittheMagicFish ....................................... 159
7.7.7 BinaryGame .......................................... 167
7.7.8 FlappyParrot .......................................... 175
7.7.9 PaintBox ............................................ 186
7.7.10 EatingBananaGame ...................................... 201
7.7.11 Create Musical Instrument . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
7.7.12 DIY RasPad Monitor Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
7.8 Install Other Systems on RasPad . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
8 APPENDIX 219
8.1 AssembletheCameraModule...................................... 219
8.2 GPIOExtensionBoard.......................................... 223
8.3 Obtain the IP Address of the Raspberry Pi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
8.3.1 WithaScreen.......................................... 225
8.3.2 WithoutaScreen ........................................ 226
8.4 UsetheSSHRemoteControl ...................................... 227
9 FAQ 231
9.1 FixRaspberryPibootproblems..................................... 231
9.2 Canâ ˘
A´
ZtdetectMicroSDcard?..................................... 231
9.3 Screencannotberotated?........................................ 231
9.4 Aboutsleepproblem........................................... 232
9.5 Abouttheshutdownproblem ...................................... 232
9.6 Desktopisnotfullscreen ........................................ 232
9.7 Aboutthetouchproblem......................................... 233
9.8 AbouttheAudioproblem ........................................ 234
9.9 Fanistoonoisy?............................................. 234
9.10 Power consumption is too fast? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234
9.11 Touch function sometimes fails? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234
9.12 The WiFi connection is unstable? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234
10 Copyright Notice 235
ii