[DIY] Create your 48 lanes meter

Various experiences made by members of the forums concerning in particular small household appliances and energy management.
User avatar
ismael001
I learn econologic
I learn econologic
posts: 40
Registration: 08/12/10, 20:46




by ismael001 » 15/01/14, 00:51

chatelot16 wrote:the arduino is a good way to measure

Personally I prefer to be content with the number of channels that it has and use several when it's not enough rather than put a multiplexer card

I use the one, cheaper and smaller with SD memory card, but neccessite interface 3,3V
https://www.olimex.com/Products/Duino/P ... e-hardware

it is much faster than the basic arduino and can play on the oscilloscope!

I like your real time clock
http://www.evola.fr/product_info.php/ho ... 1307-p-156


I am currently working on an electronic card to make a kit and can be marketed (including terminal blocks, the real-time module, and the LCD screen). There are several versions of Arduino, I hesitate between, integrate a microcontroller ATMEGA328P-PU (microcontroller Arduino UNO) or allow users to choose their own Arduino.
You should know that the microcontroller ATMEGA328P-PU naked costs only a few cents from wholesalers.

I am a consultant :|
0 x
User avatar
chatelot16
Econologue expert
Econologue expert
posts: 6960
Registration: 11/11/07, 17:33
Location: Angouleme
x 264




by chatelot16 » 15/01/14, 01:12

make a card with terminal and especially solid interface resistant to the parasite, it's a good idea: arduino very simple without serious interface is very fragile

integrate the LCD display is something else: depending on the application either it will be unnecessarily too expensive, or too small ... in many cases we can prefer to drive it with a computer and usb
0 x
User avatar
elephant
Econologue expert
Econologue expert
posts: 6646
Registration: 28/07/06, 21:25
Location: Charleroi, center of the world ....
x 7




by elephant » 15/01/14, 09:27

I think like Chatelot: when you practice this kind of sport, you have a PC, provided that the system can record in "stand alone"
0 x
elephant Supreme Honorary éconologue PCQ ..... I'm too cautious, not rich enough and too lazy to really save the CO2! http://www.caroloo.be
Petrus
I posted 500 messages!
I posted 500 messages!
posts: 586
Registration: 15/09/05, 02:20
x 312




by Petrus » 16/01/14, 18:15

Interesting!
I also use the serial port to record battery charge data or other data on my microcontroller-based mounts.
Is there software for drawing curves from the data sent by the serial port in real time?
0 x
User avatar
chatelot16
Econologue expert
Econologue expert
posts: 6960
Registration: 11/11/07, 17:33
Location: Angouleme
x 264




by chatelot16 » 16/01/14, 18:29

how is the serial port used?

we can always enter a file through the serial port, and then read this file by microsoft exel or open office free office calc

these spreadsheets know how to import a text file in the table, it is enough to specify which is the good separator comma, space or I do not know what

whether it's free office or microsoft just let yourself be guided
0 x
Petrus
I posted 500 messages!
I posted 500 messages!
posts: 586
Registration: 15/09/05, 02:20
x 312




by Petrus » 16/01/14, 19:27

Yes, that's what I'm doing right now, but I'd like to show the live curves, for example to determine when a temperature is stable and send a new setpoint.
0 x
User avatar
ismael001
I learn econologic
I learn econologic
posts: 40
Registration: 08/12/10, 20:46




by ismael001 » 17/01/14, 23:13

Yes, indeed, it is possible to draw curves in real time.


If you decide to use the free solution (CoolTerm + Excel), I have developed a VBA script on Excel to open and plot curves in real time from a * .txt file (powered by CoolTerm) with a minimum refresh rate of 15 sec (to allow time for the computer to compile and execute the code).

The tutorial is presented in the following part:

6. Setup of the operating software
6.1 CoolTerm
6.1.1 Coolterm and Excel: VBA script for displaying curves in real time
6.1.1.1 Setting Excel
6.1.1.2 Curves tracing
6.1.1.3 Basic Configuration
6.1.1.4 Start / stop curve tracing

http://rc-lab.fr/arduilog-v-01-appareil ... alogiques/

CoolTerm: http://freeware.the-meiers.org

The excel workbook: http://rc-lab.fr/wp-content/uploads/201 ... ol.xls.zip

For those using only the analog inputs of the Arduino, you must send the serial data in the following frame:

code: Select all


/*
Cet exemple permet de la tension analogique des 6 voies analogiques de l'Arduino, puis de transférer en Série.
La trame est la suivante : 

Numéro de mesure ; Tension_A0 ; Tension_A1 ; [...] ; Tension_A5

*/

int compteur  = 0 ;

void setup() {
  Serial.begin(9600);
}


void loop() {
  compteur +=1 ;
  float voltageA0 = analogRead(A0) * (5.0 / 1023.0);
  float voltageA1 = analogRead(A1) * (5.0 / 1023.0);
  float voltageA2 = analogRead(A2) * (5.0 / 1023.0);
  float voltageA3 = analogRead(A3) * (5.0 / 1023.0);
  float voltageA4 = analogRead(A4) * (5.0 / 1023.0);
  float voltageA5 = analogRead(A5) * (5.0 / 1023.0);

  Serial.print(compteur);
  Serial.print(";");
  Serial.print(voltageA0);
  Serial.print(";");
  Serial.print(voltageA1);
  Serial.print(";");
  Serial.print(voltageA2);
  Serial.print(";");
  Serial.print(voltageA3);
  Serial.print(";");
  Serial.print(voltageA4);
  Serial.print(";");
  Serial.println(voltageA5);
 delay(500);


}



If you have decided to buy the MegunoLink software, the refresh time is 1 sec. You have to go to the 6.2 MegunoLink part


: Mrgreen: And by the way, I have good news: the diagram of the electronic card is ready!
0 x
Petrus
I posted 500 messages!
I posted 500 messages!
posts: 586
Registration: 15/09/05, 02:20
x 312




by Petrus » 18/01/14, 13:28

Thank you I will try this.
On the other hand, at the end, I would like to use a raspberry pi to record the data and draw the curves, it will still have to find something else.
0 x
User avatar
ismael001
I learn econologic
I learn econologic
posts: 40
Registration: 08/12/10, 20:46




by ismael001 » 18/01/14, 13:31

Petrus wrote:Thank you I will try this.
On the other hand, at the end, I would like to use a raspberry pi to record the data and draw the curves, it will still have to find something else.


Oh yes, it's an idea that I have too, but there is all the development of a software to do using gnuplot or pyplot ... It does not seem to be complicated ... I just need time
0 x

Back to "econological Laboratory: different experiences for econologic"

Who is online ?

Users browsing this forum : No registered users and 38 guests