![]() We will get to know several digital sensors which should trigger an alarm or a certain action in our program (e.g. The only problem is the small range around ½ of 3.3V and a free pin with nothing connected to it. ![]() Up to about 1.4V is recognized as LOW, everything above 1.9V is surely recognized as HIGH. The Raspberry Pi has only digital inputs (a workaround for measuring analog voltages we will get to know later), nevertheless the applied voltage does not have to be exactly 3.3V to be recognized as HIGH, and not 0V to be recognized as LOW. Then it can be determined whether there is a voltage at the input (HIGH) or not (LOW). ![]() ![]() So you can also program the pins as input. But GPIO stands for General Purpose Input/Output. In the first examples we got to know the GPIO pins as outputs, which we switched to HIGH to let an LED light up. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |