Hello everyone, maybe someone can help me with my project.
Currently what I am trying to do is 7 different voltage input meassurement on VGA display.
Can someone write me a code of 7 voltage inputs that I can assign to 7 print out to display?
Sorry for my english its not fluent
orestas1500:
Hello everyone, maybe someone can help me with my project.
Currently what I am trying to do is 7 different voltage input meassurement on VGA display.
Can someone write me a code of 7 voltage inputs that I can assign to 7 print out to display?
Sorry for my english its not fluent
For example:
int a1 = 0; input 1
int a2 = 0; input 2.............and so on
int a3 = 0;
float vout1 = 0.0;
float vout2 = 0.0;
float vout3 = 0.0;
float vin1 = 0.0;
float vin2 = 0.0;
float vin3 = 0.0;
float R1 = 100000.0; // R1 varza (100K) !
float R2 = 10000.0; // R2 varza (10K) !
int value = 0;
void setup() {
pinMode(a1, INPUT);
Serial.begin(9600);
}
/*
Iejimas 1
*/
void loop() {
value = analogRead(a1);
vout1 = (value * 5.0) / 1024.0; // see text
int sensorValue = analogRead;
vin1 = vout1 / (R2 / (R1 + R2));
if (vin1 < 0.09) {
vin1 = 0.0;
value = analogRead(a2);
vout2 = (value * 5.0) / 1024.0; // see text
int sensorValue = analogRead;
vin2 = vout2 / (R2 / (R1 + R2));
if (vin2 < 0.09) {
vin2 = 0.0;
Serial.print("Stiprintuvo itampa:");
Serial.println(vin1);
delay(200);
}
Serial.print("Stiprintuvo itampa2:");
Serial.println(vin2);
delay(200);
} }
of course this code doesnt work for me because I am new here. at first I want to make a monitor at serial and later on vga display
code tags look like this...
[βcode]put your code here[β/code]
sorry
Hi,
Welcome to the forum.
Please read the post at the start of any forum , entitled "How to use this Forum".
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
Can you explain your entire project please;
- What is the VGA display on, a PC?
- What are the voltages you are measuring from?
- What is the maximum voltage you will be measuring?
- What model Arduino are you using?
Can you tell us your electronics, programming, arduino, hardware experience?
Thanks.. Tom...
Thanks for your reply.
I will begin from answering your questions.
- Actually it's a monitor with rgb h/v sync inputs.
- I will measure DC voltage from a car and there will be 7 different inuts - 2 inputs will be from amplifier voltage input 1 = 14V other 4 inputs max 5V.
- Maximum voltage 14VDC
- Arduino Mega2560.
Uhmm actually I dont have a schematic printed or writed its in my head.
What I want to do is to monitor every cell voltage and main inputs to audio amplifier.
Whole "system" will be mounted in the car. And the monitor I'm using is intergraded Renault GPS monitor. I have its pinouts and it has rgb h/v sync.
My experience on programming is Beginner, but I'm learning it everyday and I hope that someone can help me with the code.
Hi,
Have you looked at how to get your Arduino to connect with a VGA monitor?
You may have hit a snag there..
google arduino VGA
It takes a lot of processing time and memory to even produce some text.
Rasp Pi?
Tom....
Well yes I did.
If I use 7" TFT module? TFT Display
Can you write the code for this monitor then? I will buy it then
Hi,
If you want someone to write your code, then you would be best to move to the "Gigs and Collaborations" section of the forum.
This part of the forum is to help you start to write and develop your own code.
Tom...
Now I will use tft touch screen with serial. Well maybe who can help me to start develope a code.