
Raspi-MCP3201
Funktionen zum Lesen des MCP3201 12-Bit-A/D-Wandlers mit dem SPI-Bus entweder in MSB- oder LSB-Modus mit dem Raspberry Pi
0
Github Watches
6
Github Forks
10
Github Stars
raspi-MCP3201
This module provides functions to read the MCP3201 (2.7V 12-Bit A/D Converter with SPI Serial Interface).
Please refer to the datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/21290F.pdf
The MSB is clocked out on the falling edge of the 3rd clock pulse. After the first eight clocks have been sent to the device, the MCU receive buffer will contain two unknown bits (??), the null bit (NB), and the highest order five bits (B11-B7) of the conversion. After the second eight clocks have been sent, the receive buffer will contain the lowest order seven bits (B6-B0) and the B1 bit repeated as the A/D converter has begun to shift out LSB data with the extra (i.e. the 16th) clock.
Requires SPI:
dtparam=spi=on in /boot/config.txt
sudo pip3 install spidev (https://pypi.python.org/pypi/spidev)
Pin setup MCP3201:
VDD (8) --> 3V3
VREF(1) --> 3V3
VSS (4) --> GND
IN+ (2): positive analog input (min: IN-, max: VREF + IN-)
IN- (3): negative analog input (VSS +- 100 mV), connect to GND
Raspberry Pi (Model B2, Pi2, and Pi3):
CD/SHDN (5): chip select/shutdown --> Raspberry Pi BCM GPIO pin 8 (CE0)
CLK (7): serial clock --> Raspberry Pi BCM GPIO pin 11 (SCLK)
DOUT (6): serial data output --> Raspberry Pi GPIO BCM pin 9 (MISO)
相关推荐
I find academic articles and books for research and literature reviews.
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Advanced software engineer GPT that excels through nailing the basics.
Converts Figma frames into front-end code for various mobile frameworks.
Take an adjectivised noun, and create images making it progressively more adjective!
Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.
Die All-in-One-Desktop & Docker-AI-Anwendung mit integriertem Lappen, AI-Agenten, No-Code-Agent Builder, MCP-Kompatibilität und vielem mehr.
Fair-Code-Workflow-Automatisierungsplattform mit nativen KI-Funktionen. Kombinieren Sie visuelles Gebäude mit benutzerdefiniertem Code, SelbstHost oder Cloud, 400+ Integrationen.
🧑🚀 全世界最好的 llm 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Zusammenfassung der weltbesten LLM -Ressourcen.
Ein leistungsstarkes Neovim -Plugin für die Verwaltung von MCP -Servern (Modellkontextprotokoll)
MCP -Server für den Fetch -Webseiteninhalt mit dem Headless -Browser von Dramatikern.
Brücke zwischen Ollama und MCP -Servern und ermöglicht es lokalen LLMs, Modellkontextprotokoll -Tools zu verwenden
Reviews

user_bbTtIfFY
The Raspi-MCP3201 by flohwie is a fantastic addition for anyone looking to add precise ADC capabilities to their Raspberry Pi projects. The integration is seamless, and the documentation on the GitHub page is thorough, making setup straightforward even for beginners. A highly recommended tool for anyone working with analog signals on a Raspberry Pi!