## Allgemein @en

### Unit 20 – My digital pet 2/2

Let’s program our digital pet. It’s still a way to go. We have to teach the digital pet some things. It should blink with the eyes (LEDs). It should purr when it’s stroked. It should grumble when it is ignored. … weiterlesen »

### Unit 19 – My digital pet 1/2

Now, we will create our own digital pet. It will have blinking eyes, be able to detect, if you stroke it and it will get impatient when it’s ignore for to long. We can easily make blinking eyes with two … weiterlesen »

### Unit 18 – Touch sensitive instrument

Do you know, that your body also conducts electricity? The resistance of your skin can be used as analog input, too. Let’s use it to build another instrument. Since the human body consists of a lot of water it conducts … weiterlesen »

Beside the digital input we also can use the analog input. It is great to read potentiometers (knobs) or sensors. Think of the temperature or brightness – it is not on or off but has a certain value. Brightness can be … weiterlesen »

### Unit 16 – One-Button-Piano

Do you want to build a real musical instrument? Then let’s go! Circuit Used parts 1 2 3 4 5 6 7 8 9 Now, we will create a piano with only one button. The piano should always play a … weiterlesen »

### Unit 15 – Array

The code of the last example is very long. But actually almost the same things are repeated all the time, no? We can do it easier – using the array. An array is a special type of variable. It can not … weiterlesen »

### Unit 14 – Melody

After so much work we must not forget to celebrate. Therefore, we will need some music! In order to play a tone we have to create an acoustic wave. If you hit a drum the drumhead starts to vibrate. This … weiterlesen »

### Unit 13 – Fading LEDs using the Analog Output

You already know how to switch on and off LEDs. Now, we want to try if we can also fade it. The light switch of your room can be switched on and off. Everything what can take exactly two conditions … weiterlesen »

### Unit 12 – The Button and the if-Statement

This program should switch a LED when a button is pressed and switch off when it is not pressed any more. I suggest, we start with the Blink example code. int ledPin = 9; void setup(){ pinMode(ledPin,OUTPUT); } void loop(){ … weiterlesen »

### Unit 11 – The Button

So, you come a long way! Was it fun? That is very important. Let’s continue and I show you how to connect and program a button. What is a button? A button can close a circuit when it’s pushed. If … weiterlesen »

### Unit 10 – For-Loop and the LED calculator

A great thing in programming are loops like the for-loop. It repeats tasks like blinking an LED a specific number. The for-loop is repeated for a specific number. It looks like that: for (StartValue; Test; FollowUp){ } We can simply … weiterlesen »

### Unit 9 – Variables!

A very important thing in programming are variables. I guess you already know it from math class. If you say x=10 it means that everywhere x can be replaced by 10. Thing of variables as little boxes or containers in … weiterlesen »

### Unit 8 – It’s blinking!

Did your LED light up? Good work! Now let’s make it blinking. We can simply use the circuit of unit 7. To make a LED blinking we need to switch it on and off. You already switched it on using … weiterlesen »

### Unit 7 – Digital Out: Finally we start!

Did you build the circuit from Unit 6? Perfect! If you already connected the Arduino to the computer plug it out again. Open the Arduino software on your computer and let’s do two little adjustments. 1 In the menue click … weiterlesen »

### Unit 6 – Digital Out Preparation

Until now we only used the Arduino as power source. Now it is time to program something, right? Used Parts Build the following circuit. (You can reassemble the one of Unit 4). Circuit 1 2 3 4 5 Like in … weiterlesen »

### Unit 5 – The Breadboard

You already used the breadboard but we totally forgot to talk about it. We can use a breadboard (protoboard) to connect electrical components. Inside the breadboard are metal clamps. Since metal conducts electricity, components in the same clamps are connected. … weiterlesen »

### Unit 4 – Our first Circuit

But now let’s really build something. Take two LEDs, two long patch cables, a resistor, the breadboard and the Arduino and build the following circuit. Circuit Used Parts 1 2 3 4 If you now connect the Arduino with your … weiterlesen »

### Unit 3 – Circuit

Current always flows from plus pole to minus pole. You already know that from batteries. They’ve got a plus and a minus side. If you put batteries for instance into a flashlight it lights up. But that will only happen … weiterlesen »

### Unit 2 – The Arduino

Now, I’m gonna show you the Arduino. That is a pretty decent thing. The Arduino-Board is like a small computer. We can programm it and attach a huge number of electronic components, for instance LEDs, motors, buttons and sensors. Now, … weiterlesen »

### Unit 1 – Preparation

Oh there you are. Perfect! At first, we have to get the Arduino software. We will use it to program the Arduino. In the next unit I will explain what that is. You are probably used to install computer software. … weiterlesen »