hola, no se como hacer una lectura del sensor de corriente ACS714 en raspberry pi b+.
me podeis enviar el script de python para leer sensor analogico de corriente acs 714 con ADC MCP3008
sensor corriente acs 714
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: sensor corriente acs 714
Please see this library for MCP3008 code in python:
https://github.com/adafruit/Adafruit-Ra ... ython-Code
https://github.com/adafruit/Adafruit-Ra ... ython-Code
- nafa_7
- Posts: 3
- Joined: Tue May 19, 2015 7:48 am
Re: sensor corriente acs 714
este script funciona para raspberry pi b+??
la conexion del mcp para los sensores analogicos https://learn.adafruit.com/send-raspber ... lash-tmp36
es diferente a los gpio de https://github.com/adafruit/Adafruit-Ra ... mcp3008.py
# change these as desired https://github.com/adafruit/Adafruit-Ra ... mcp3008.py
SPICLK = 18
SPIMISO = 21
SPIMOSI = 17
SPICS = 22
# change these as desired - they're the pins connected from the https://learn.adafruit.com/send-raspber ... lash-tmp36
# SPI port on the ADC to the Cobbler
SPICLK = 18
SPIMISO = 23
SPIMOSI = 24
SPICS = 25
espero su respuesta amigo, un BANNED
la conexion del mcp para los sensores analogicos https://learn.adafruit.com/send-raspber ... lash-tmp36
es diferente a los gpio de https://github.com/adafruit/Adafruit-Ra ... mcp3008.py
# change these as desired https://github.com/adafruit/Adafruit-Ra ... mcp3008.py
SPICLK = 18
SPIMISO = 21
SPIMOSI = 17
SPICS = 22
# change these as desired - they're the pins connected from the https://learn.adafruit.com/send-raspber ... lash-tmp36
# SPI port on the ADC to the Cobbler
SPICLK = 18
SPIMISO = 23
SPIMOSI = 24
SPICS = 25
espero su respuesta amigo, un BANNED
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: sensor corriente acs 714
The MCP3008.py library uses software SPI. It can use any free GPIO pins. You can use either set of pins.
- nafa_7
- Posts: 3
- Joined: Tue May 19, 2015 7:48 am
Re: sensor corriente acs 714
puedo conectar directamente el sensor ACS714 a Raspberry b+ sin la necesidad del mcp3008??
puedo hacer una lectura directamente desde el sensor acs a raspberry??
puedo hacer una lectura directamente desde el sensor acs a raspberry??
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: sensor corriente acs 714
No. El Raspberry Pi no tiene un convertidor analógico / digital.
Please be positive and constructive with your questions and comments.