SunFounder R3 Bedienungsanleitung

SunFounder uno-and-mega-kit
www.sunfounder.com
Jan 19, 2022


CONTENTS
1 Components List 3
2 Components Introduction 9
2.1 SunFounder R3 Board .......................................... 9
2.2 SunFounder Mega Board ......................................... 11
2.3 Breadboard ................................................ 13
2.4 Jumper Wires ............................................... 14
2.5 Resistor .................................................. 15
2.6 Transistor ................................................. 18
2.7 Capacitor ................................................. 21
2.8 Diode ................................................... 23
2.9 74HC595 ................................................. 24
2.10 L293D .................................................. 25
2.11 LED ................................................... 26
2.12 RGB LED ................................................ 28
2.13 7-segment Display ............................................ 30
2.14 4-Digit 7-Segment Display ........................................ 32
2.15 LCD1602 ................................................. 33
2.16 Buzzer .................................................. 34
2.17 DC Motor ................................................. 35
2.18 Stepper Motor .............................................. 37
2.19 Servo ................................................... 39
2.20 Relay ................................................... 40
2.21 Power Supply Module .......................................... 42
2.22 Button .................................................. 43
2.23 Potentiometer ............................................... 45
2.24 Joystick Module ............................................. 46
2.25 Photoresistor ............................................... 48
2.26 Thermistor ................................................ 49
2.27 Tilt Switch ................................................ 50
2.28 IR Receiver Module ........................................... 51
2.29 Ultrasonic Module ............................................ 53
2.30 Humiture Sensor Module ........................................ 54
3 Download the Code 57
4 Install and Introduce Arduino IDE 59
4.1 Description ................................................ 59
4.2 Install Arduino IDE ........................................... 59
i

5 Add Libraries 71
5.1 What is Library? ............................................. 71
5.2 Add libraries ............................................... 71
6 For Mega2560 User 77
6.1 Lesson 1 Blinking LED ......................................... 77
6.2 Lesson 2 Flowing LED Lights ...................................... 83
6.3 Lesson 3 Controlling LED by Button .................................. 89
6.4 Lesson 4 Doorbell ............................................ 93
6.5 Lesson 5 Tilt Switch ........................................... 99
6.6 Lesson 6 Relay .............................................. 103
6.7 Lesson 7 RGB LED ........................................... 108
6.8 Lesson 8 Controlling an LED by Potentiometer ............................. 114
6.9 Lesson 9 Photo resistor .......................................... 123
6.10 Lesson 10 Servo ............................................. 128
6.11 Lesson 11 LCD1602 ........................................... 132
6.12 Lesson 12 Thermistor .......................................... 138
6.13 Lesson 13 Ultrasonic ........................................... 144
6.14 Lesson 14 Infrared-Receiver ....................................... 150
6.15 Lesson 15 Humiture Sensor ....................................... 155
6.16 Lesson 16 Joystick PS2 ......................................... 161
6.17 Lesson 17 7-Segment Display ...................................... 165
6.18 Lesson 18 74HC595 ........................................... 171
6.19 Lesson 19 Stepper Motor ......................................... 176
6.20 Lesson 20 Simple Creation-Stopwatch ................................. 182
6.21 Lesson 21 Simple Creation-Answer Machine .............................. 191
6.22 Lesson 22 Simple Creation-Small Fan .................................. 198
6.23 Lesson 23 Simple Creation - Digital Dice ................................ 203
7 For Uno User 209
7.1 Lesson 1 Blinking LED ......................................... 209
7.2 Lesson 2 Flowing LED Lights ...................................... 217
7.3 Lesson 3 Controlling LED by Button .................................. 222
7.4 Lesson 4 Doorbell ............................................ 229
7.5 Lesson 5 Tilt Switch ........................................... 234
7.6 Lesson 6 Relay .............................................. 237
7.7 Lesson 7 RGB LED ........................................... 242
7.8 Lesson 8 Controlling an LED by Potentiometer ............................. 250
7.9 Lesson 9 Photo resistor .......................................... 258
7.10 Lesson 10 Servo ............................................. 264
7.11 Lesson 11 LCD1602 ........................................... 268
7.12 Lesson 12 Thermistor .......................................... 274
7.13 Lesson 13 Ultrasonic ........................................... 280
7.14 Lesson 14 Infrared-Receiver ....................................... 286
7.15 Lesson 15 Humiture Sensor ....................................... 291
7.16 Lesson 16 Joystick PS2 ......................................... 297
7.17 Lesson 17 7-Segment Display ...................................... 301
7.18 Lesson 18 74HC595 ........................................... 306
7.19 Lesson 20 Stepper Motor ......................................... 312
7.20 Lesson 20 Simple Creation-Stopwatch ................................. 317
7.21 Lesson 21 Simple Creation-Answer Machine .............................. 327
7.22 Lesson 22 Simple Creation-Small Fan .................................. 332
7.23 Lesson 23 Simple Creation - Digital Dice ................................ 337
ii

8 Play with Scratch 345
8.1 Install and Introduce PictoBlox ..................................... 346
8.2 Projects .................................................. 348
9 FAQ 517
9.1 1. the board does not work? ....................................... 517
9.2 2. COM14”: Access is denied? ..................................... 517
9.3 3. How to work in PictoBlox’ Stage Mode? ............................... 517
9.4 4. How to work in PictoBlox’ Upload mode? .............................. 517
10 Thank You 519
11 Copyright Notice 521
iii

iv

SunFounder uno-and-mega-kit
With this kit, we will walk you through the know-how of using the SunFounder board in a hands-on way. Starting
with the basics of electronics, you’ll learn through building several creative projects. Including a selection of the most
common and useful electronic components, this kit will help you “control” the physical world.
If you want to learn another projects which we don’t have, please feel free to send Email and we will update to our
online tutorials as soon as possible, any suggestions are welcomed. Here is the Email: cs@sunfounder.com.
CONTENTS 1

SunFounder uno-and-mega-kit
2 CONTENTS

CHAPTER
ONE
COMPONENTS LIST
3

SunFounder uno-and-mega-kit
4 Chapter 1. Components List
Inhaltsverzeichnis
Andere SunFounder Computerhardware Handbücher
Beliebte Computerhardware Handbücher anderer Marken

EMC2
EMC2 VNX Series Betriebsanleitung

Panasonic
Panasonic DV0PM20105 Bedienungsanleitung

Mitsubishi Electric
Mitsubishi Electric Q81BD-J61BT11 Bedienungsanleitung

Gigabyte
Gigabyte B660M DS3H AX DDR4 Bedienungsanleitung

Raidon
Raidon iT2300 Bedienungsanleitung

National Instruments
National Instruments PXI-8186 Bedienungsanleitung















