Runboard.com
You're welcome.
Community logo


runboard.com       Sign up (learn about it) | Sign in (lost password?)


Page:  1  2  3  4 

 
YT2095 Profile
Live feed
Blog
Friends
Miscellaneous info

Freebander
Global user

Registered: 12-2010
Location: the Black Country
Posts: 188
Karma: 1 (+1/-0)
Reply | Quote
Arduino project chat


having Neural cybernetics as a hobby of old, I was intruiged by this post:

quote:

26FB1981
Presently ( mainly for work at the mo, but have some ideas up my sleeve) , look at this stuff.
Its so versatile and cheap (£17 for the cheapest version)and the uses are only limited by the users imagination .
I have an ATU in the pipe line emoticon

[sign in to see URL]

Enjoy, people




needless to say I did, and needless to say it`s what I`v been doing now for over 2 decades, and NO I`m Not trying to belittle it by that, but rather the opposite, I think it`s a Fantastic idea! emoticon
and somewhat "About Time!".

I designed what I called the "G8" board, it was Z80 based and the bare bones basics of a fully working computer on a small 4x4 inch board, and it`s Original job was to expand the Zones on an alarm system.

the Arduinos and their many clones do everything these "G8"s did and more it would seem.

I can imagine the ATU project Easily being made an Auto-ATU with one of these inside with it`s analogue inputs for sensing and digital servo(s) out! or even relay switching (but I like the Idea of a Servo on a variable Cap shaft too).

it might make a nice home based Repeater project too, being able to control and use your Home radio with a handheld radio (a Wouxun for example)via the DTMF keypad.

the ideas are fairly limitless!

discuss...
 




---
I`m also on Twitter as "YT2095" ;)
17/Dec/2010, 7:50 pm Link to this post Send Email to YT2095   Send PM to YT2095 Blog
 
Hot Fusion Profile
Live feed
Blog
Friends
Miscellaneous info

Management
Global user

Registered: 03-2008
Location: South West England
Posts: 1372
Karma: 7 (+7/-0)
Reply | Quote
Re: Arduino project chat


Digital electronics are a bit out of my league I'm afraid - I still live in the age of the thermionic valve. emoticon

---
Andy - 26 FB107
17/Dec/2010, 10:23 pm Link to this post Send Email to Hot Fusion   Send PM to Hot Fusion
 
madmark1 Profile
Live feed
Blog
Friends
Miscellaneous info

Accomplished DX-er
Global user

Registered: 10-2009
Location: Abertillery
Posts: 454
Karma: 8 (+8/-0)
Reply | Quote
Re: Arduino project chat


Andy nothing like a big Triode under your feet to keep your toes warm !

And they also double as a toaster.... hhhmmmm ..... toast


Mark Gw0wvl

---
http://www.youtube.com/MrMadjones

http://gw0wvl.weebly.com/
20/Dec/2010, 2:06 pm Link to this post Send Email to madmark1   Send PM to madmark1 Blog
 
26FB1981 Profile
Live feed
Blog
Friends
Miscellaneous info


Global user

Registered: 10-2010
Location: Hertfordshire
Posts: 73
Karma: 0 (+0/-0)
Reply | Quote
Re: Arduino project chat


quote:

YT2095 wrote:

having Neural cybernetics as a hobby of old, I was intruiged by this post:

quote:

26FB1981
Presently ( mainly for work at the mo, but have some ideas up my sleeve) , look at this stuff.
Its so versatile and cheap (£17 for the cheapest version)and the uses are only limited by the users imagination .
I have an ATU in the pipe line emoticon

[sign in to see URL]

Enjoy, people




needless to say I did, and needless to say it`s what I`v been doing now for over 2 decades, and NO I`m Not trying to belittle it by that, but rather the opposite, I think it`s a Fantastic idea! emoticon
and somewhat "About Time!".

I designed what I called the "G8" board, it was Z80 based and the bare bones basics of a fully working computer on a small 4x4 inch board, and it`s Original job was to expand the Zones on an alarm system.

the Arduinos and their many clones do everything these "G8"s did and more it would seem.

I can imagine the ATU project Easily being made an Auto-ATU with one of these inside with it`s analogue inputs for sensing and digital servo(s) out! or even relay switching (but I like the Idea of a Servo on a variable Cap shaft too).

it might make a nice home based Repeater project too, being able to control and use your Home radio with a handheld radio (a Wouxun for example)via the DTMF keypad.

the ideas are fairly limitless!

discuss...
 






Im glad you like it. emoticon

Ive not been into code writing for long, have always been 'pure' electronics so thats why its a recent discovery for me.

Previously to finding the Arduino, i have done a few PIC based projects. The last one was a variable speed 3 phase tacho generator to simulate a motor for a project at work. It worked very well emoticon

There are so many things that can be done with these and their similar devices.

With the ATU , i was thinking of using varicap diodes instead of a mechanical set-up.

I have managed to save £1000s on projects at work using these devices.

As i go along, i can update people on here, if there is any particular interest.

Cheers chaps emoticon




Last edited by 26FB1981, 20/Dec/2010, 8:43 pm
20/Dec/2010, 7:36 pm Link to this post Send Email to 26FB1981   Send PM to 26FB1981 Blog
 
YT2095 Profile
Live feed
Blog
Friends
Miscellaneous info

Freebander
Global user

Registered: 12-2010
Location: the Black Country
Posts: 188
Karma: 1 (+1/-0)
Reply | Quote
Re: Arduino project chat


I absolutely agree on the Valve usage too, I much prefer them for many apps that require transistors and such, and they kick a$$ outa FETs/SCRs for turning mains powered Christmas tree light strings on/off emoticon
but I`m comfortable using Both technologies.


anyway, my DFRduino arrived a few days ago and I`v been having a mess about with different "Sketches" (why the HELL don`t they just call it a Program!???), and have also built a little "Sheild" (another unnecessary name for an Interface), and find it`s fairly easy to use.

the Programming language though...
well lets just say it leaves me with "language" of my own! emoticon

it seems a step Backwards rather than when I left off about 15 years ago, I somewhat expected that a modern programing lang would be less Spastic.

not withstanding that, a Step learning curve latter and I expect some interesting results from this tech emoticon


Last edited by YT2095, 26/Dec/2010, 1:19 pm


---
I`m also on Twitter as "YT2095" ;)
26/Dec/2010, 1:17 pm Link to this post Send Email to YT2095   Send PM to YT2095 Blog
 
26FB1981 Profile
Live feed
Blog
Friends
Miscellaneous info


Global user

Registered: 10-2010
Location: Hertfordshire
Posts: 73
Karma: 0 (+0/-0)
Reply | Quote
Re: Arduino project chat


quote:

YT2095 wrote:

I absolutely agree on the Valve usage too, I much prefer them for many apps that require transistors and such, and they kick a$$ outa FETs/SCRs for turning mains powered Christmas tree light strings on/off emoticon
but I`m comfortable using Both technologies.


anyway, my DFRduino arrived a few days ago and I`v been having a mess about with different "Sketches" (why the HELL don`t they just call it a Program!???), and have also built a little "Sheild" (another unnecessary name for an Interface), and find it`s fairly easy to use.

the Programming language though...
well lets just say it leaves me with "language" of my own! emoticon

it seems a step Backwards rather than when I left off about 15 years ago, I somewhat expected that a modern programing lang would be less Spastic.

not withstanding that, a Step learning curve latter and I expect some interesting results from this tech emoticon




Keep up the good work emoticon
27/Dec/2010, 11:56 am Link to this post Send Email to 26FB1981   Send PM to 26FB1981 Blog
 
YT2095 Profile
Live feed
Blog
Friends
Miscellaneous info

Freebander
Global user

Registered: 12-2010
Location: the Black Country
Posts: 188
Karma: 1 (+1/-0)
Reply | Quote
Re: Arduino project chat


well I`m slowly progressing past making little Knight Rider lights on my vero board plugin, and have just bought a 7 servo robot arm made by Lynx.
it`s only the arm and servos, so I`v bought a servo controller board too, so that should free up the processor time on this little Atmega 328.

I know it can control the servos too, but that would only leave me about 50% cpu time, whereas I can have 100% if I "Talk" to the servo controller via the serial link.

I`m going to build a "Scutter" type robot as seen on Red Dwarf, give it a broom and teach it to sweep up the shack emoticon

I`m only Half kidding!


your Varicap diode idea would probably work for QRP, but these variable caps in larger ATUs need quite some plate spacing to prevent arcing, I`m not sure there are any variac diodes up to that kind of power.
I`d love to be wrong though.
 

---
I`m also on Twitter as "YT2095" ;)
28/Dec/2010, 10:37 am Link to this post Send Email to YT2095   Send PM to YT2095 Blog
 
26FB1981 Profile
Live feed
Blog
Friends
Miscellaneous info


Global user

Registered: 10-2010
Location: Hertfordshire
Posts: 73
Karma: 0 (+0/-0)
Reply | Quote
Re: Arduino project chat


This is the code i did for testing a PSU with 5v,12v and 35v O/P and variable inputs between 110v and 240v. Ive split the code in to so i can post it on here. Some of the stuf is in there for debug use [sign in to see URL] for Arduino Mega:

int inputVoltagePin0 =A0;
int inputVoltagePin1 =A1;
int inputVoltagePin2 =A2;
//int outputPin = 13; // choose the pin for the LED for test
int inPin34 = 34;
int inPin35 = 35;
int inPin36 = 36;
int inPin37 = 37;
int inPin38 = 38;
int inPin39 = 39;
int inPin40 = 40;
int val = 0;
void setup() {
  
  
  {[sign in to see URL](9600);} //initialise serial port
  
  // initialize the digital pin as an output.
  
  pinMode(2-33, OUTPUT);
  //pinMode(3, OUTPUT);
 // pinMode(4, OUTPUT);
 // pinMode(5, OUTPUT);
 // pinMode(6, OUTPUT);
 // pinMode(7, OUTPUT);
 // pinMode(8, OUTPUT);
 // pinMode(9, OUTPUT);
 // pinMode(10, OUTPUT);
 // pinMode(11, OUTPUT);
 // pinMode(12, OUTPUT);
 // pinMode(13, OUTPUT);
 // pinMode(14, OUTPUT);
 // pinMode(15, OUTPUT);
 // pinMode(16, OUTPUT);
 // pinMode(17, OUTPUT);
 // pinMode(18, OUTPUT);
 // pinMode(19, OUTPUT);
 // pinMode(20, OUTPUT);
 // pinMode(21, OUTPUT);
 // pinMode(22, OUTPUT);
 // pinMode(23, OUTPUT);
 // pinMode(24, OUTPUT);
 // pinMode(25, OUTPUT);
 // pinMode(26, OUTPUT);
 // pinMode(27, OUTPUT);
 // pinMode(28, OUTPUT);
  //pinMode(29, OUTPUT);
 // pinMode(30, OUTPUT);
 // pinMode(31, OUTPUT);
 // pinMode(32, OUTPUT);
 // pinMode(33, OUTPUT);
  int inputVoltagePin0 =0;
  int inputVoltagePin1 =0;
  int inputVoltagePin2 =0;
  //pinMode(outputPin, OUTPUT); // declare LED as output
  pinMode(inPin34-40, INPUT);
  //pinMode(inPin35, INPUT);
  //pinMode(inPin36, INPUT);
  //pinMode(inPin37, INPUT);
 // pinMode(inPin38, INPUT);
  //pinMode(inPin39, INPUT);
  //pinMode(inPin40, INPUT);


}

void loop() { // START OF 240V TEST

  [sign in to see URL](9600);
  [sign in to see URL](" ");

  [sign in to see URL](" !WARNING! LIVE TESTING IS ABOUT TO START");
  [sign in to see URL](" ");
  
  delay (3000);
  
  digitalWrite(2-33,LOW);
  
  digitalWrite(2, LOW); // set IO 2 LOW
  
  digitalWrite(3, LOW); // set IO 3 LOW
 
  digitalWrite(4, LOW); // set IO 4 LOW
  
  digitalWrite(5, HIGH); // set IO 5 HIGH
  
  digitalWrite(6, HIGH); // set IO 6 HIGH
          
  digitalWrite(7, LOW); // set IO 7 LOW
  
  digitalWrite(8, LOW); // set IO 8 LOW
  
  digitalWrite(9, LOW); // set IO 9 LOW
  
  digitalWrite(10, HIGH); // set IO 10 HIGH
  
  
  
  
  delay(3000); // wait for 2 secondS END OF LINE 1
  
  
  
  digitalWrite(2, LOW); // set IO 2 LOW
  
  digitalWrite(3, LOW); // set IO 3 LOW
 
  digitalWrite(4, LOW); // set IO 4 LOW
  
  digitalWrite(5, HIGH); // set IO 5 HIGH
  
  digitalWrite(6, HIGH); // set IO 6 HIGH
          
  digitalWrite(7, LOW); // set IO 7 LOW
  
  digitalWrite(8, LOW); // set IO 8 LOW
  
  digitalWrite(9, HIGH); // set IO 9 HIGH
  
  digitalWrite(10, HIGH); // set IO 10 HIGH
  
  delay(2000); // wait for 2 secondS END OF LINE 2
  
          

{
  //[sign in to see URL](9600);
}

{
  // read voltage value for 35v [sign in to see URL] at anaI0 from PD is 5v
  int voltage=analogRead(inputVoltagePin0);
  int valueVolts=voltage/29;
  int valueHundrethsOfMilliVolts=((voltage % 102)*10)/29;
  
  
  // send formated value to serial com port
  [sign in to see URL](valueVolts);
  [sign in to see URL]('.');
  [sign in to see URL](valueHundrethsOfMilliVolts);
  [sign in to see URL]('V');
  // set pass or fail limits and drive digIO 11,12
  if (valueVolts <= 37&& valueVolts >= 33)
 { [sign in to see URL]("PASS");
  digitalWrite(11,HIGH);}
  if (valueVolts <= 33)
 { [sign in to see URL]("FAIL");
  digitalWrite(12,HIGH);}
  if (valueVolts >= 37)
 { [sign in to see URL]("FAIL");
  digitalWrite(12,HIGH);}
 
  // pause between readings
  delay(2000);}
 
{
  // read voltage value for 12v line. voltage at IO from PD is 5v
  int voltage=analogRead(inputVoltagePin1);
  int valueVolts=voltage/80;
  int valueHundrethsOfMilliVolts=((voltage % 102)*10)/80;
  // send formated value to serial com port
  [sign in to see URL](valueVolts);
  [sign in to see URL]('.');
  [sign in to see URL](valueHundrethsOfMilliVolts);
  [sign in to see URL]('V');
  //set pass or fail limits and drive digIO 30,31
  if (valueVolts <= 13.5&& valueVolts >= 11.5)
  {[sign in to see URL]("PASS");
  digitalWrite (30,HIGH);}
  
  if (valueVolts <= 11.5)
  {[sign in to see URL]("FAIL");
  digitalWrite (31,HIGH);}
  if (valueVolts >= 13.5)
  {[sign in to see URL]("FAIL");
  digitalWrite(31,HIGH);}
 
  
  
  
  // pause between readings
  delay(3000);
   
}
{
  // read voltage value for 5v line. voltage at IO from PD is [sign in to see URL]
  int voltage=analogRead(inputVoltagePin2);
  int valueVolts=voltage/90;
  int valueHundrethsOfMilliVolts=((voltage % 102)*10)/90;
  // send formated value to serial com port
  [sign in to see URL](valueVolts);
  [sign in to see URL]('.');
  [sign in to see URL](valueHundrethsOfMilliVolts);
  [sign in to see URL]('V');
  //set pass or fail limits and drive digIO 32,33
  if (valueVolts <= 5.5&& valueVolts >= 4.8)
  {[sign in to see URL]("PASS");
  digitalWrite(32,HIGH);}
  
  if (valueVolts <= 4.8)
  {[sign in to see URL]("FAIL");
  digitalWrite (33,HIGH);}
  if (valueVolts >= 5.5)
  {[sign in to see URL]("FAIL");
  digitalWrite (33,HIGH);}
  
  delay (750);
  [sign in to see URL]("END OF 240v TEST");
  [sign in to see URL](" ");
    // pause between readings
  delay (750);
  
  if (digitalRead(inPin34)==HIGH && digitalRead(inPin35)==HIGH && digitalRead(inPin36)==HIGH)
  {digitalWrite(22,HIGH);
   // read input value from pin 11 on pin34
   
  [sign in to see URL]("240v Test PASSED");}
//digitalWrite(22,HIGH);
  if (digitalRead(inPin34)==LOW || digitalRead(inPin35)==LOW || digitalRead(inPin36)==LOW)
  {digitalWrite(23, HIGH);
    
  [sign in to see URL]("240v Test FAILED");}
  //digitalWrite(23, HIGH);

digitalWrite(11,LOW);
digitalWrite(30,LOW);
digitalWrite(32,LOW);
digitalWrite(12,LOW);
digitalWrite(31,LOW);
digitalWrite(33,LOW);


  

   
   [sign in to see URL](" ");
   
   delay(3000);
//end of 240v test
   
 
  
  delay(10);
  
   
 
  
  
  digitalWrite(2, LOW); // set IO 2 LOW
  
  digitalWrite(3, LOW); // set IO 3 LOW
 
  digitalWrite(4, HIGH); // set IO 4 HIGH
  
  digitalWrite(5, LOW); // set IO 5 LOW
  
  digitalWrite(6, HIGH); // set IO 6 HIGH
          
  digitalWrite(7, LOW); // set IO 7 LOW
  
  digitalWrite(8, HIGH); // set IO 8 HIGH
  
  digitalWrite(9, LOW); // set IO 9 LOW
  
  digitalWrite(10, LOW); // set IO 10 LOW
  
  delay(2000); // wait for 2 secondS END OF LINE 3
  
  
  
  
  
  digitalWrite(2, LOW); // set IO 2 LOW
  
  digitalWrite(3, LOW); // set IO 3 LOW
 
  digitalWrite(4, HIGH); // set IO 4 HIGH
  
  digitalWrite(5, LOW); // set IO 5 LOW
  
  digitalWrite(6, HIGH); // set IO 6 HIGH
          
  digitalWrite(7, LOW); // set IO 7 LOW
  
  digitalWrite(8, HIGH); // set IO 8 HIGH
  
  digitalWrite(9, HIGH); // set IO 9 HIGH
  
  digitalWrite(10, LOW); // set IO 10 LOW
  
  delay(2000); // wait for 2 secondS END OF LINE 4
  
28/Dec/2010, 5:46 pm Link to this post Send Email to 26FB1981   Send PM to 26FB1981 Blog
 
26FB1981 Profile
Live feed
Blog
Friends
Miscellaneous info


Global user

Registered: 10-2010
Location: Hertfordshire
Posts: 73
Karma: 0 (+0/-0)
Reply | Quote
Re: Arduino project chat


second half:

 {
  //[sign in to see URL](9600);
}

{
  // read voltage value for 35v [sign in to see URL] at IO from PD is 5v
  int voltage=analogRead(inputVoltagePin0);
  int valueVolts=voltage/29;
  int valueHundrethsOfMilliVolts=((voltage % 102)*10)/29;
  // send formated value to serial com port
  [sign in to see URL](valueVolts);
  [sign in to see URL]('.');
  [sign in to see URL](valueHundrethsOfMilliVolts);
  [sign in to see URL]('V');
  //set pass or fail limits and drive digIO 11
  if (valueVolts <= 37&& valueVolts >= 33)
  {[sign in to see URL]("PASS");
  digitalWrite(11,HIGH);}
  if (valueVolts <= 33)
  {[sign in to see URL]("FAIL");
  digitalWrite(12,HIGH);}
  if (valueVolts >= 37)
  {[sign in to see URL]("FAIL");
  digitalWrite (12,HIGH);}
  // pause between readings
  delay(3000);
    
}
{
  // read voltage value for 12v [sign in to see URL] at IO from PD is 5v
  int voltage=analogRead(inputVoltagePin1);
  int valueVolts=voltage/80;
  int valueHundrethsOfMilliVolts=((voltage % 102)*10)/80;
  // send formated value to serial com port
  [sign in to see URL](valueVolts);
  [sign in to see URL]('.');
  [sign in to see URL](valueHundrethsOfMilliVolts);
  [sign in to see URL]('V');
  //set pass or fail limits and drive digIO 12
  if (valueVolts <= 13.5&& valueVolts >= 11.5)
  {[sign in to see URL]("PASS");
  digitalWrite(30,HIGH);}
  if (valueVolts <= 11.5)
  {[sign in to see URL]("FAIL");
  digitalWrite(31,HIGH);}
  if (valueVolts >= 13.5)
  {[sign in to see URL]("FAIL");
  digitalWrite(31,HIGH);}
  // pause between readings
  delay(3000);
    
}
{
  // read voltage value for 5v [sign in to see URL] at IO from PD is [sign in to see URL]
  int voltage=analogRead(inputVoltagePin2);
  int valueVolts=voltage/90;
  int valueHundrethsOfMilliVolts=((voltage % 102)*10)/90;
  // send formated value to serial com port
  [sign in to see URL](valueVolts);
  [sign in to see URL]('.');
  [sign in to see URL](valueHundrethsOfMilliVolts);
  [sign in to see URL]('V');
  //set pass or fail limits and drive digIO 13
  if (valueVolts <= 5.5&& valueVolts >= 4.8)
  {[sign in to see URL]("PASS");
  digitalWrite(32,HIGH);}
  if (valueVolts <= 4.8)
  {[sign in to see URL]("FAIL");
  digitalWrite(33,HIGH);}
  if (valueVolts >= 5.5)
  {[sign in to see URL]("FAIL");
  digitalWrite(33,HIGH);}
  
  delay (750);
  [sign in to see URL]("END OF 220v TEST");
  [sign in to see URL](" ");
  // pause between readings
  delay(2000);
 
  if (digitalRead(inPin34)==HIGH && digitalRead(inPin35)==HIGH && digitalRead(inPin36)==HIGH)
   // read input value from pin 11 on pin34 , read input 35 from pin30, read input 36 from pin32
  {digitalWrite(24,HIGH);
  [sign in to see URL]("220v Test PASSED");}
 
  if (digitalRead(inPin34)==LOW || digitalRead(inPin35)==LOW || digitalRead(inPin36)==LOW)
  {digitalWrite(25, HIGH);
  [sign in to see URL]("220v Test FAILED");}
  [sign in to see URL]("");
  

digitalWrite(11,LOW);
digitalWrite(30,LOW);
digitalWrite(32,LOW);
digitalWrite(12,LOW);
digitalWrite(31,LOW);
digitalWrite(33,LOW);
  }
//end of 220v test
 delay(2000);
}
  
  
  
  digitalWrite(2, HIGH); // set IO 2 HIGH
  
  digitalWrite(3, HIGH); // set IO 3 HIGH
 
  digitalWrite(4, HIGH); // set IO 4 HIGH
  
  digitalWrite(5, LOW); // set IO 5 LOW
  
  digitalWrite(6, LOW); // set IO 6 LOW
          
  digitalWrite(7, HIGH); // set IO 7 HIGH
  
  digitalWrite(8, LOW); // set IO 8 LOW
  
  digitalWrite(9, LOW); // set IO 9 LOW
  
  digitalWrite(10, LOW); // set IO 10 LOW
  
  delay(2000); // wait for 2 secondS END OF LINE 5
  
  
  
  digitalWrite(2, HIGH); // set IO 2 HIGH
  
  digitalWrite(3, HIGH); // set IO 3 HIGH
 
  digitalWrite(4, HIGH); // set IO 4 HIGH
  
  digitalWrite(5, LOW); // set IO 5 LOW
  
  digitalWrite(6, LOW); // set IO 6 LOW
          
  digitalWrite(7, HIGH); // set IO 7 HIGH
  
  digitalWrite(8, LOW); // set IO 8 LOW
  
  digitalWrite(9, HIGH); // set IO 9 HIGH
  
  digitalWrite(10, LOW); // set IO 10 LOW
  
  delay(3000); // wait for 3 secondS END OF LINE 6
  
  {
  //[sign in to see URL](9600);
}

{
  // read voltage value for 35v [sign in to see URL] at IO from PD is 5v
  int voltage=analogRead(inputVoltagePin0);
  int valueVolts=voltage/29;
  int valueHundrethsOfMilliVolts=((voltage % 102)*10)/29;
  // send formated value to serial com port
  [sign in to see URL](valueVolts);
  [sign in to see URL]('.');
  [sign in to see URL](valueHundrethsOfMilliVolts);
  [sign in to see URL]('V');
  //set pass or fail limits and drive digIO 11
  if (valueVolts <= 37&& valueVolts >= 33)
  {[sign in to see URL]("PASS");
  digitalWrite (11,HIGH);}
  if (valueVolts <= 33)
  {[sign in to see URL]("FAIL");
  digitalWrite (12,HIGH);}
  if (valueVolts >= 37)
  {[sign in to see URL]("FAIL");
  digitalWrite (12,HIGH);}
  // pause between readings
  delay(2000);
  
  }
 
{
  // read voltage value for 12v [sign in to see URL] at IO from PD is 5v
  int voltage=analogRead(inputVoltagePin1);
  int valueVolts=voltage/80;
  int valueHundrethsOfMilliVolts=((voltage % 102)*10)/80;
  // send formated value to serial com port
  [sign in to see URL](valueVolts);
  [sign in to see URL]('.');
  [sign in to see URL](valueHundrethsOfMilliVolts);
  [sign in to see URL]('V');
  
 
  
  if (valueVolts <= 13.5&& valueVolts >= 11.5)
  {[sign in to see URL]("PASS");
  digitalWrite(30,HIGH);}
  if (valueVolts <= 11.5)
  {[sign in to see URL]("FAIL");
  digitalWrite(31,HIGH);}
  if (valueVolts >= 13.5)
  {[sign in to see URL]("FAIL");
  digitalWrite(32,HIGH);}
  // pause between readings
  delay(2000);
    
}
{
  // read voltage value for 5v [sign in to see URL] at IO from PD is [sign in to see URL]
  int voltage=analogRead(inputVoltagePin2);
  int valueVolts=voltage/90;
  int valueHundrethsOfMilliVolts=((voltage % 102)*10)/90;
  // send formated value to serial com port
  [sign in to see URL](valueVolts);
  [sign in to see URL]('.');
  [sign in to see URL](valueHundrethsOfMilliVolts);
  [sign in to see URL]('V');
  
  if (valueVolts <= 5.5&& valueVolts >= 4.8)
  {[sign in to see URL]("PASS");
  digitalWrite(32,HIGH);}
  if (valueVolts <= 4.8)
  {[sign in to see URL]("FAIL");
  digitalWrite(33,HIGH);}
  if (valueVolts >= 5.5)
  {[sign in to see URL]("FAIL");
  digitalWrite(33,HIGH);}
  
  delay (750);
  [sign in to see URL]("END OF 110v TEST");
  [sign in to see URL](" ");
  // pause between readings
  delay(2000);
   

if (digitalRead(inPin34)==HIGH && digitalRead(inPin35)==HIGH && digitalRead(inPin36)==HIGH)
  {digitalWrite(26,HIGH);
  [sign in to see URL]("110v Test PASSED");}
// read input value from pin 11 on pin34 , read input 35 from pin30, read input 36 from pin32

  if (digitalRead(inPin34)==LOW || digitalRead(inPin35)==LOW || digitalRead(inPin36)==LOW)
  {digitalWrite(27, HIGH);
  [sign in to see URL]("110v Test FAILED");}
 
 
digitalWrite(11,LOW);
digitalWrite(30,LOW);
digitalWrite(32,LOW);
digitalWrite(12,LOW);
digitalWrite(31,LOW);
digitalWrite(33,LOW);
  }

 
  
  delay(1000);
  
   
 

    
    
    digitalWrite(2, LOW); // set IO 2 LOW
  
  digitalWrite(3, LOW); // set IO 3 LOW
 
  digitalWrite(4, LOW); // set IO 4 LOW
  
  digitalWrite(5, LOW); // set IO 5 LOW
  
  digitalWrite(6, LOW); // set IO 6 LOW
          
  digitalWrite(7, LOW); // set IO 7 LOW
  
  digitalWrite(8, LOW); // set IO 8 LOW
  
  digitalWrite(9, LOW); // set IO 9 LOW
  
  digitalWrite(10, LOW); // set IO 10 LOW
  
  delay(2000); // wait for 2 secondS END OF LINE 19
  

  [sign in to see URL](" ");
  [sign in to see URL]("TESTING COMPLETE");
  [sign in to see URL](" ");
  delay (1000);
  [sign in to see URL]("SWITCH OFF POWER,REMOVE BOARD UNDER TEST");
  [sign in to see URL](" ");
  
  delay(2000);// read input value from pin 22 on pin37 , read input 38 from pin24, read input 39 from pin26
  if (digitalRead(inPin37)==HIGH && digitalRead(inPin38)==HIGH && digitalRead(inPin39)==HIGH)
  { digitalWrite(28,HIGH);// read input value from pin 11 on pin34
  [sign in to see URL](":-) :-) BOARD PASSED :-) :-)");}
  

  if (digitalRead(inPin37)==LOW || digitalRead(inPin38)==LOW || digitalRead(inPin39)==LOW)
  {digitalWrite(29, HIGH);
  [sign in to see URL]("*****BOARD FAILED*****");}
 
 [sign in to see URL](" ");
 [sign in to see URL](" ");
 [sign in to see URL](" ");
  

  
  
  
  delay(10);
  
  
  
  
  while (10,HIGH); // endless loop of last state

}
28/Dec/2010, 5:47 pm Link to this post Send Email to 26FB1981   Send PM to 26FB1981 Blog
 
26FB1981 Profile
Live feed
Blog
Friends
Miscellaneous info


Global user

Registered: 10-2010
Location: Hertfordshire
Posts: 73
Karma: 0 (+0/-0)
Reply | Quote
Re: Arduino project chat


Basically, it measures the 3 supply lines and passes or fails them according to the limits i set. It also passes and fails each input voltage [sign in to see URL] input voltages are supplied by an auto transformer and switched in/out by solid state relays and a contactor controlled by the Arduino.
The measured voltage can be observed through Hyperterminal and a series of 'Pass'/ 'Fail' leds.
28/Dec/2010, 5:51 pm Link to this post Send Email to 26FB1981   Send PM to 26FB1981 Blog
 


Add a reply

Page:  1  2  3  4 





You are not logged in (login)