Recent Posts

Pages: 1 ... 8 9 [10]
91
Project Guidance / Re: AC energy Meter Problems.
Last post by Paul_KD7HB - May 21, 2019, 10:47 pm
Hello,

I am trying to make an energy consumption meter for our home. I want it to store data and generate electricity bill in real time. and for that the device needs to calculate the units consumed.

The first problem that I have is reading accurate AC voltage. I have tried a lot of ways to do that but I am getting no where near solving this problem.

Used this product but amp gets right but volts keep fluctuating.
https://hallroad.org/hlw8012-high-precision-energy-metering-module-arduino-energy-monitoring.html

also i have used the Ac voltage sensor but no luck . I that also the voltage keeps fluctuating.

how can i get a stable voltage readings

Please help me out here.

You also need an accurate clock to compute the actual energy consumed in killowatt hours. What part of what country do you live in? In the US, it is impossible for us to compute an accurate electric bill, at least in Oregon, because there are various taxes, delivery charges, and actual credits that depend on some parts of hydro power.

Later this year we are getting really smart meters installed and can inquire on-line for a bill for usage through the last 15 minutes.

Paul
92
Proyectos / Re: Pedalera de guitarra con a...
Last post by surbyte - May 21, 2019, 10:47 pm
Si claro,  alguien que no escribe desde el 2014 y que ademas se borró del foro esperas que te responda.

No revivas hilos viejos. Si el hilo tiene mas de 120 dias, dejalo asi.

Hilo cerrado. Si el tema te interesa tienes dos caminos... que convergen en 1.

1.. lee las normas del foro.
2. crea tu propio hilo poniendo toda la información incluida una referencia a este hilo si quieres.

La gente que te puede ayudar es la que esta hoy en el foro, no la del 2014.

93
Deutsch / Re: Stromversorgung/ - aufteil...
Last post by postmaster-ino - May 21, 2019, 10:44 pm
Hi

Der Einzelne bekommt nur die Allgemein-Kosten DES WOCHENENDE aufgebrummt.
Danach ist Er ja wieder 'ausgestempelt'.
Macht dann zwar immerhin 2/7tel des Jahres (zwei Tage, also das Wochenende, das ganze Jahr), aber dafür war Er ja auch in dieser Zeit da.
Wenn Er nicht alleine ist (also Ihr dabei seid - nicht, wen Er so noch anschleppt *g*), teilen sich diese Kosten ja auch wieder auf.

Wer DA ist, bekommt den Strom anteilig gezählt.
Wenn man alleine da ist, ist man alleine da - ist halt so - und für Wen, wenn nicht für mich, läuft dann der Bierkühler?
Sobald ich nicht mehr da bin, ich habe mich ausgestempelt, bekomme ich von dem dann fließendem Strom NICHTS auf mich gezählt.
Wenn Keiner mehr da ist, ist's Allgemein (wovon ich am Jahresende halt 1/4tel berappen muß).

Das finde ich schon sehr gerecht.

Klar könnt Ihr auch 7 Zähler überall verbauen - nur tut Euch einen Gefallen:
Eine Sache muß dabei UNGEZÄHLT bleiben - also keinen eigenen Unterzähler haben.
Solltet Ihr wirklich ALLES unterzählen, werden die Summen der Zählerstände auseinander laufen - dann passt die Summe der Einzelzähler nicht mehr mit dem Zähler des EVU überein und Ihr werdet im Streit um EINE kWh (in Worten 25 Cent) auseinander gehen!!
Der 'ungezählte Bereich' wäre dann die Bierkühlung - halt was 'Allgemeines'.
So wird dann auch Mal ein Handy-Ladegerät 'nicht gezählt' - sonst gibt's direkt Stunk, wenn der Kumpel von A die Steckdose von B benutzt ... und bis ein Handy eine kWh 'durch' hat, dauert auch noch Mal ganz gut - und trotzdem gibt's wieder Streit.

Müsst Ihr aber Mal untereinander 'durchkauen' - das nächste WE soll ja bald kommen :)

MfG

PS: Klar kann man Da auch einen RFID vor häkeln - ich sehe eher das Problem, daß vergessen wird, Sich 'auszustempeln' - da müsste noch eine Art Rettungsanker programmiert werden, daß man nicht den Zonk bekommt (einen Tag da, ganze Jahr bezahlt)
Quasi eine Art Auto-Logout am Sonntag 20:00h (eine RTC muß also auch noch an den Arduino ...)
94
General Electronics / Re: 3 wire solenoid wiring hel...
Last post by wolframore - May 21, 2019, 10:43 pm
Most likely without reading data sheet. Red is power and yellow is signal. It needs both to activate. Full power going to the unit then a smaller signal to let it know to work. Then a low or 0v to close
95
Español / MOVED: CAPACIDAD DE ATMEGA328
Last post by surbyte - May 21, 2019, 10:42 pm
96
Deutsch / Re: Probleme mit Wiegesensor H...
Last post by Tommy56 - May 21, 2019, 10:42 pm
Die HX711-Lib ist nicht richtig installiert. Er findet zwar die Headerdatei (HX711_ADC), aber anscheinend nicht die zugehörige cpp-Datei, so dass der Linker nichts hat was er linken kann.

Gruß Tommy
97
Hardware / Re: CAPACIDAD DE ATMEGA328
Last post by surbyte - May 21, 2019, 10:42 pm
Quote
quiero conectar un modulo bluetooth, un rfid, un sim800l, micro-sd, un modulo gps y un esp8266
Tu pregunta es porque si o tiene un objetivo donde uses BT, SIM800L, GPS y un ESP8266

A mi me parece un verdadero contrasentido. Dudo que necesites BT, GPRS y WIFI en un microcontrolador... empecemos por ahi antes de contestarte.

Luego lo demas si necestias GPS y RFID bueno, me sigue pareciendo una tontería planteada por un profesor para ver hasta que punto un alumno sabe desenvolverse.

Pero escucharé tu respueta!!
98
Sensors / Duda de instalación
Last post by Adalbert0 - May 21, 2019, 10:42 pm
Buenas tardes,tengo que realizar una lectura de un transductor de presión (SB69-500A)
Las especificaciones son:
4-20 am
7-30 vdc
SOLO 2 HILOS

quiero y necesito saber si es posible esta lectura con arduino,el vdc es el que me pone en duda,en caso de ser posible podrían recomendarme una manera de hacerlo o algún modulo que pueda utilizar, Gracias.
99
Deutsch / Re: Stromversorgung/ - aufteil...
Last post by Fraver - May 21, 2019, 10:38 pm
Postmaster, die Idee is geil. :D
Realisierbar mit son nem RFID?
100
Gigs and Collaborations / Quote request for artwork proj...
Last post by Trahpek - May 21, 2019, 10:37 pm
Hi,
I need help with a sculpture I'm working on. Time is tight for me, and if the price is right I will pay to complete the code.

How much to get the below completed?

Project description:
There are 3 guitar strings. On each string is a servo actuated pick and 2 robot pinchers that are also actuated by a servo. So 9 servos all together. The picker servo can pick the full string, a half string, and a quarter string this way - so string octaves. I want all 9 servos to pick/pinch at random. There are 9 sequences possible - with 27 possible combinations. I want the timings to be random. When a person presses a button on the sculpture the sequences fire off randomly for about 2 minutes total, and then the sculpture stops - goes back to waiting for the button to be pressed again.

The servos need to move randomly i.e. pauses between sequences to be random.

I want the 3 strings to possibly be picked / pinched at the same time - an octave on all three strings at the same time; or to have some some be picked at various time differences - so some get picked/pinched at short or long intervals. These intervals are from 0 - 45 seconds.

I would like to do all this with 1 Arduino. I'm using an Uno and a servo shield from Adafruit.

Here is the code I have:
Code: [Select]

#include <Wire.h>
#include <Adafruit_PWMServoDriver.h>
Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver();
#define SERVOMIN  200 // this is the 'minimum' pulse length count (out of 4096)
#define SERVOMAX  350 // this is the 'maximum' pulse length count (out of 4096)
uint16_t servonum = 0;
const int buttonPin = 12;       // assigns pin 13 as the button pin
const int ledPin = 10;          // assigns pin 10 as the button led pin
int buttonState;                // the current reading from the input pin
int lastButtonState = LOW;      // the previous reading from the input pin
unsigned long lastDebounceTime = 0;  // the last time the output pin was toggled
unsigned long debounceDelay = 50;    // the debounce time; increase if the output flickers

void setup() {
  Serial.begin(9600);
  Serial.println("Octaves report");
  pwm.begin();
  pwm.setPWMFreq(60);  // Analog servos run at ~60 Hz updates
  delay(100);
  pinMode (buttonPin, INPUT);   // initialize the button pin as an input
  pinMode (ledPin, OUTPUT);     // initialize the button led pin as an output
}

void loop() {
  digitalWrite(ledPin, HIGH);   // turn the button led on
  int reading = digitalRead(buttonPin); // read the state of the switch into a local variable:
  if (reading != lastButtonState) {
    lastDebounceTime = millis(); // reset the debouncing timer
  }
  if ((millis() - lastDebounceTime) > debounceDelay) {
    if (reading != buttonState) {
      buttonState = reading;
      if (buttonState == HIGH) {
        digitalWrite(ledPin, LOW);        // turn the button led off
        // Full String - Drive servo 0: move servo for string pick
        Serial.println(servonum);
        for (uint16_t pulselen = SERVOMIN; pulselen < SERVOMAX; pulselen++) {
          pwm.setPWM(0, 0, pulselen);
        }
        delay(5000);
        for (uint16_t pulselen = SERVOMAX; pulselen > SERVOMIN; pulselen--) {
          pwm.setPWM(0, 0, pulselen);
        }
        delay(10000);
        // Half String - Drive servo 1: open and close string pinch
        Serial.println(servonum);
        for (uint16_t pulselen = SERVOMIN; pulselen < SERVOMAX; pulselen++) {
          pwm.setPWM(1, 0, pulselen);
        }
        delay(5000);
        for (uint16_t pulselen = SERVOMAX; pulselen > SERVOMIN; pulselen--) {
          pwm.setPWM(1, 0, pulselen);
        }
        delay(10000);
        // Quarter String - Drive servo 2: open and close string pinch
        Serial.println(servonum);
        for (uint16_t pulselen = SERVOMIN; pulselen < SERVOMAX; pulselen++) {
          pwm.setPWM(2, 0, pulselen);
        }
        delay(5000);
        for (uint16_t pulselen = SERVOMAX; pulselen > SERVOMIN; pulselen--) {
          pwm.setPWM(2, 0, pulselen);
        }
        delay(10000);
        // Full String - Drive servo 4: move servo one direction for string pick
        Serial.println(servonum);
        for (uint16_t pulselen = SERVOMIN; pulselen < SERVOMAX; pulselen++) {
          pwm.setPWM(4, 0, pulselen);
        }
        delay(5000);
        for (uint16_t pulselen = SERVOMAX; pulselen > SERVOMIN; pulselen--) {
          pwm.setPWM(4, 0, pulselen);
        }
        delay(10000);
        // Half String - Drive servo 5: open and close string pinch
        Serial.println(servonum);
        for (uint16_t pulselen = SERVOMIN; pulselen < SERVOMAX; pulselen++) {
          pwm.setPWM(5, 0, pulselen);
        }
        delay(5000);
        for (uint16_t pulselen = SERVOMAX; pulselen > SERVOMIN; pulselen--) {
          pwm.setPWM(5, 0, pulselen);
        }
        delay(10000);
        // Quarter String - Drive servo 6: open and close string pinch
        Serial.println(servonum);
        for (uint16_t pulselen = SERVOMIN; pulselen < SERVOMAX; pulselen++) {
          pwm.setPWM(6, 0, pulselen);
        }
        delay(5000);
        for (uint16_t pulselen = SERVOMAX; pulselen > SERVOMIN; pulselen--) {
          pwm.setPWM(6, 0, pulselen);
        }
        delay(10000);
        // Full String - Drive servo 8: move servo one direction for string pick
        Serial.println(servonum);
        for (uint16_t pulselen = SERVOMIN; pulselen < SERVOMAX; pulselen++) {
          pwm.setPWM(8, 0, pulselen);
        }
        delay(5000);
        for (uint16_t pulselen = SERVOMAX; pulselen > SERVOMIN; pulselen--) {
          pwm.setPWM(8, 0, pulselen);
        }
        delay(10000);
        // Half String - Drive servo 9: open and close string pinch
        Serial.println(servonum);
        for (uint16_t pulselen = SERVOMIN; pulselen < SERVOMAX; pulselen++) {
          pwm.setPWM(9, 0, pulselen);
        }
        delay(5000);
        for (uint16_t pulselen = SERVOMAX; pulselen > SERVOMIN; pulselen--) {
          pwm.setPWM(10, 0, pulselen);
        }
        delay(10000);
        // Quarter String - Drive servo 10: open and close string pinch
        Serial.println(servonum);
        for (uint16_t pulselen = SERVOMIN; pulselen < SERVOMAX; pulselen++) {
          pwm.setPWM(10, 0, pulselen);
        }
        delay(5000);
        for (uint16_t pulselen = SERVOMAX; pulselen > SERVOMIN; pulselen--) {
          pwm.setPWM(10, 0, pulselen);
        }
        delay(10000);
        servonum ++;
        if (servonum > 11) servonum = 0;
        digitalWrite(ledPin, HIGH);       // turn the button led on
      }
      lastButtonState = reading; // save the reading. Next time through the loop, it'll be the lastButtonState:
    }
  }
}
Pages: 1 ... 8 9 [10]