int positive =11; //connect pin 11 to positive lead of multimeter
//connect GND to negative lead
void setup()
{
pinMode(positive, OUTPUT);
Serial.begin(9600);
}
void loop()
{
for(int i=0;i<=255;i+=15)
{
analogWrite(positive, i);
float volts=i*0.01960784; //5v/255
int res=4;
int counts=4;//change for higher count meter *1000
if(volts>=counts)
{ res--;
}
Serial.print(volts,res);//res changes the displayed resolution
Serial.print("V");
Serial.print("*");
delay(5000);
}
delay(12500);
}
//BEFORE RUNNING!: you need to create a font by clicking: tools> create font > select AgencyFB-Bold and change the size to 200
//Make sure the COM port is correct
//Base of code from Jeremy Blum
import processing.serial.*;
Serial port;
String volts = "";
String data = "";
PFont font;
void setup()
{
size(460,170);
port = new Serial(this, "COM2", 9600);
port.bufferUntil('*');
font = loadFont("AgencyFB-Bold-200.vlw");
textFont(font, 170);
}
void draw()
{
background(0,0,0);
fill(200, 10, 102);
text(volts, 15, 150);
}
void serialEvent(Serial port)
{
data = port.readStringUntil('*');
volts = data.substring(0,data.length() -1);
}
Whaaaa? This contest got closed as I was typing my entry! :'(
I actually missed it by under a minute...
Steve, near Innsbruck, Tirol, AustriaIt's great :D
Well the build quality does kinda suck for the price range doesnt it...
I´d use it as 2nd meter
cheers
Here is a photo of it along side my Thurlby 1503-HA
That's a world travelling multimeter :D It has travelled from China to Hong Kong, then South Africa, and now the UK!
For what use is this kHz banana plug ?