Giter Site home page Giter Site logo

raupulus / rpi-pico-energy-monitor Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 529 KB

Monitor de energía con raspberry pi pico para obtener intensidad y tensión sobre el funcionamiento de dispositivos que monitorizará para posteriormente subir estos a una API que mantendrá el histórico para generar gráficas de estadísticas - esto es un mirro de: https://gitlab.com/raupulus/rpi-pico-energy-monitor

Python 100.00%
raspberry raspberry-pi raspberrypi raspberrypipico api energy intensity monitor voltage

rpi-pico-energy-monitor's Introduction

Raspberry Pi Pico - Energy Monitor

Repository https://gitlab.com/fryntiz/rpi-pico-energy-monitor

Description

Este software lee la intensidad y el voltaje de las entradas ADC, el siguiente paso es conectarse a la red inalámbrica y cargar datos a la API.


This software read intensity and voltage from ADC inputs, next step connect to wireless and upload data to api.

 Project hardware image

Installation

Copie todos los archivos en raspberry pi pico, por ejemplo con el software thonny.


Copy all files in raspberry pi pico, for example with thonny software.

Contributing

Envía PR o contacta conmigo en Gitlab: https://gitlab.com/fryntiz/rpi-pico-energy-monitor


Send PR or contact with me on Gitlab: https://gitlab.com/fryntiz/rpi-pico-energy-monitor

Authors and acknowledgment

License

Proyecto de código abierto, licencia GPLv3.


Open source project, GPLv3 license.

Project status

Liberación beta inicial, versión estable en proceso.


Initial beta Realease, stable versión work in progress.

Pinout and hardware details

### Display ST7735 1.8 SPI 128x160

Name Pin Details
VLED 3,3v Power for display backlight
SCK(CLK) 10 SPI Clock
SDA(MOSI) 11 (Tiene que estar conectado a RX)
A0(DC) 12 Data/Command select
RST  9 Reset
CS 13 Chip Select
GND GND Ground -
VCC 5v Power + (Según datasheet, debería funcionar a 3,3v también)

Intensity sensor one and two, type ACS712

Este sensor, cuando no tiene consumo para medir dará la mitad de la tensión de entrada (si entran 5v, saldrá 2,5v por lo que esa tensión equivale a 0 consumo y 5v equivale al máximo del sensor: 5/20/30).

Ejemplo:

Analog out min voltage = 2,5v (Equivale a 0A) Analog out max voltage = 5v (Equivale a 30A)

Sensibilidad:

Type Sensitivity
5A 185mV/A
20A 100mV/A
30A 66mV/A
Name Pin Details
VCC 5v/3.3v Power +
GND GND Ground -
AO I1=27 y I2=26 Analog out

Voltage sensor one, type FZ0430

Name Pin Details
VCC 3,3V (Ejemplos con 5v, al ser divisor de tensión debería funcionar con 3,3v igual)
GND GND Ground -
AO GPIO28 Analog out

Button for display power on

Name Pin Details
GPIO 7 Only for power on display

Expansion connector i2c to four ADC (currently not used)

Name Pin Details
SDA 4 I2C
SDC 5 I2C

ADS1115 4 channel ADC (Conversor Analógico Digital mediante i2c con 4 canales)

Name Pin Details
SDA 4 I2C
SDC 5 I2C

Para el uso de este conversor, estamos utilizando la librería de Robert-hh en su repositorio: https://github.com/robert-hh/ads1x15

Se encuentra en el proyecto dentro en Library/Ads1x15.py.

MAX471 sensor

Voltaje máximo (Vin): 25V DC (Vref=5V) Voltaje máximo (Vin): 16.5V DC (Vref=3.3V) Corriente máxima: 3A

RS- Pin which is the negative side of the sensing resistor GND Pin SIGN Pin the sign pin will actually tell which way the current is flowing. In battery-powered operation, it actually gives us an indication of discharge and charging feature. OUT Pin this is the voltage output pin, so we will get a voltage output of one volt per amp and we can feed that into an analog to digital converter on our Arduino Uno or Arduino Nano and we could actually calculate the current through a load. So it is very simple, the voltage out is actually the current through the load. GND pin is the same as the other ground pin and finally RS+ Pin which is the positive side of the sensing resistor.

rpi-pico-energy-monitor's People

Contributors

raupulus avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.