Git Product home page Git Product logo

clapobot's Introduction

clapotbot prototype

Setup on RaspberryPi

Enable UART

RFID Reader/Writer PN532

Connection Instructions

http://www.schnatterente.net/technik/nfc-raspberry-pi-pn532-breakout-board http://www.schnatterente.net/img/articles/pn532/raspberry-pi-spi-uart-i2c.png

PN532-Breakout-Board via UART an den Raspberry Pi anschließenDas Hardware-Setup für UART ist ähnlich simpel, wie das für SPI. Beide Jumper werden auf "Off" (="GND") gestellt. Mit vier Jumperkabeln verbindet man die beiden Platinen:
RPi GPIO Pin 2 (5V) ↔ PN532 5V
RPi GPIO Pin 6 (GND) ↔ PN532 GND
RPi GPIO Pin 14 (TXD) ↔ PN532 SSEL/SCL/RX
RPi GPIO Pin 15 (RXD) ↔ PN532 MOSI/SDA/TX
Software-Konfiguration: PN532 via UARTDie Verkabelung wäre also schon mal erledigt. Damit man aber eine UART-Datenverbindung mit dem NFC-Reader herstellen kann, muss man die betreffenden Pins noch softwareseitig freilegen. Denn unter Raspbian sind diese in der Regel schon mit einer Linux-Konsole belegt.

Um diese abzuschalten (und die UART-Pins somit verfügbar zu machen) muss man Folgendes tun:
In der Datei /boot/cmdline.txt entfernt man alle Einträge und Parameter, in denen "ttyAMA0" vorkommt.
Beispiel: 
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 $
wird zu
dwc_otg.lpm_enable=0 console=tty1 $
In der Datei /etc/inittab kommentiert man die folgende Zeile aus (indem man ein #-Zeichen an den Zeilenanfang schreibt):
 T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
Der Raspberry Pi muss neu gestartet werden.

Tower Pro SG90 ansteuern

https://github.com/jperkin/node-rpio http://www.toptechboy.com/raspberry-pi/raspberry-pi-lesson-28-controlling-a-servo-on-raspberry-pi-with-python/ http://www.micropik.com/PDF/SG90Servo.pdf

clapobot's People

Contributors

gruppjo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.