DE:RPi Tutorial Easy GPIO Hardware & Software
|
Back to the Hub, or the Tutorials page.
GPIO Hardware & Software Tutorials:
- GPIO Protection Circuits
- Basic Circuits: LED output - DC motor - Switch Input - Analogue Sensor
- Intermediate Circuits: Shift Registers - Analogue to Digital - Driving Circuit - Alpha-Numeric Display
- Advanced Circuits: Control Hardware Over The Internet
Achtung
Wärend die meissten der hier aufgeführten Schaltungen direkt ans RPi angeschlossen werden, wird der Gebrauch eines gepufferten Interface (so wie beim Gertboard) angeraten zum Schutz vor grevierenden Schäden. Alternativ kann man auch mit diesen Experimentierboards arbeiten: #Alternative Test Platforms.
Höchste Vorsicht ist geboten wenn auf Low Level Ebene Hardware angeschlossen wird, das RPi kann dabei zerstört werden, Dein Equipment und potentiell Du selbst und/oder Andere. Es geschieht alles auf eigene Gefahr!
Ziele
Dieses Tutorial basiert auf diesem Thread und zielt drauf ab basis Schaltungen für die General Purpose Input/Output (GPIO) des RPi's zu erstellen. Grundlagen der Elektronik sind erforderlich (z.B. Grundwisse über grundlegende diskrete Bauteile wie Transistoren, Dioden und Widerstände):
Nützliche Links/Resourcen
- Online Schaltungs Labor - Schaltungs Design und Simulation - Excellentes Tool zum Experimentieren mit Schaltungen (wird auch für die Schaltungsbeispiele hier genutzt)
- Einführung in die Embedded Programmierung - GPIO - Besonders viele detail Information über GPIO Inputs und Outputs für Anfänger um die Prizipien hinter der Schaltung zu verstehen.
- Microchip's PIC Tips und Tricks engl. PDF[1] - Enthält viele brauchbare Beispielschaltungen für den PIC Microkontroller und kann auf das RPi adaptiert werden (3.3V GPIO).
- The Electronics Club - Eine excellente Quelle für Anfänger der Elektronik (auf Englisch), erklärt viele Basisschaltungen.
Alternative Test Platformen
Until you have a RPi to test with, there are many alternative platforms available which will allow the testing of basic circuits. In addition, they may be interfaced with directly using the RPi in the future.
- TI LaunchPad - A low cost development platform ($4.30 including free world shipping). Includes programmer/debug board, two processors (with 16 GPIO including I2C/SPI/UART, 8ch 10bit ADC etc).
- Arduino - Common hobbyist development platform. Excellent community support and additional hardware.
- STM32 Primer/EvoPrimer - Self-contained development platform. Mentioned since I may use one at some point (I bought the original Primer a long time ago). It includes a battery, acceleration sensors and built in display screen.
Completed Tutorials
Note: Until RPi devices are available, I can not confirm this will work on a real RPi. For now, I shall be using the TI LaunchPad (see Alternative Test Platforms for details) to test the hardware on (as it is cheap and the logic levels similar).
Basic Circuits
1. LED output
Directly driven (will need very low powered LED) or driven via transistor (allowing higher current). Includes example 8xLED Test Module.
With or without de-bouncing, protection resistors etc. Includes example 8xSwitch Test Module.
Planned Tutorials
Basic Circuits
1. LED output
Completed see above.
MOSFET or Darlington Pair to provide high power drive and reverse bias diode to protect from motor coils.
Completed see above.
4. Analogue resistive sensor sampled as a digital input
Using a basic transistor switch circuit.
Intermediate Circuits
1. Shift Registers - Multiplexing Data
An introduction to using additional ICs. In this case, using a parallel to serial 8-bit shift register to read 8 digital inputs using two GPIO pins.
2. Analogue to Digital Circuit
Use of a ADC chip to sample inputs.
For example motor speed control.
4. Alpha-numeric 2x16 LCD Display
(IN-PROGRESS) Control via 4-wire data (total 6 GPIO) and also alternative 2-wire interface circuit.
Advanced Circuits
1. Control Hardware Over The Internet
Implement web control and monitoring of GPIO connected components.
2. Communicating With Other Micro-controllers
Communicate with other micro-controllers so that features such as ADCs can be used.
Contributing to this tutorial
This is an open project so please feel welcome to add your own sections and improve its content.
Please see the Talk:RPi Tutorial Easy GPIO Hardware & Software page to discuss this page.
- ↑ http://www.raspberrypi.org/forum/projects-and-collaboration-general/gpios-suitable-for-microswitches-joysticks/#p35307
- ↑ http://www.raspberrypi.org/forum/projects-and-collaboration-general/gpios-suitable-for-microswitches-joysticks/#p35309
| |||||||||||||||||||