URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       Lynx Wind Forum
  HTML https://lynxwindforumhtml.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: Electronics related to alternative Energy
       *****************************************************
       #Post#: 4026--------------------------------------------------
       Re: Arduino Controllers
       By: nessprojects Date: July 30, 2014, 7:04 pm
       ---------------------------------------------------------
       ;D Its all good fun.
       #Post#: 5403--------------------------------------------------
       Re: Arduino Controllers
       By: killer Date: February 3, 2015, 4:11 pm
       ---------------------------------------------------------
       any updates on this?
       #Post#: 5410--------------------------------------------------
       Re: Arduino Controllers
       By: nessprojects Date: February 6, 2015, 3:32 pm
       ---------------------------------------------------------
       @killer
       Thanks for asking but unfortunately I never got any further with
       a buck system although I am still playing around with arduinos
       in different fields. I love playing with these things because
       they are so simple to work with.
       #Post#: 5447--------------------------------------------------
       Re: Arduino Controllers
       By: killer Date: February 9, 2015, 9:34 am
       ---------------------------------------------------------
       I trying to build one to track the sun. I got some of the code
       working. But its taking me a little time. Im new to them.
       #Post#: 5449--------------------------------------------------
       Re: Arduino Controllers
       By: nessprojects Date: February 9, 2015, 3:30 pm
       ---------------------------------------------------------
       @ killer
       Yeah I think these arduinos are great....I was going to make a
       tracker with one using a old satellite motor and a couple of
       LDR`s for the orientation detection but I never did get to
       program the micro.....one day  ;D
       Keep playing with the code and you will get to what you
       need....I am still learning the code too !!!
       Been playing with a GPS module and a 0.96" oled screen....what
       fun this is  :D
       #Post#: 5453--------------------------------------------------
       Re: Arduino Controllers
       By: killer Date: February 10, 2015, 5:15 am
       ---------------------------------------------------------
       using leds to test my idea, here is my code.
       // These constants won't change:
       const int analogPin = A0;    // pin that the sensor is attached
       to
       const int analogPin2 = A1;    // pin that the sensor is attached
       to
       const int ledPin = 13;       // pin that the LED is attached to
       const int ledPin2 = 12;       // pin that the LED is attached to
       const int threshold = 3;   // an arbitrary threshold level
       that's in the range of the analog input
       const int threshold2 = -3;   // an arbitrary threshold level
       that's in the range of the analog input
       int Value;
       void setup() {
       // initialize the LED pin as an output:
       pinMode(ledPin, OUTPUT);
       pinMode(ledPin2, OUTPUT);
       // initialize serial communications:
       Serial.begin(9600);
       }
       void loop() {
       // read the value of the potentiometer:
       int LeftReading = analogRead(A0);  // Read left Cell
       int RightReading = analogRead(A1); // Read Right Cell
       Value=(LeftReading-RightReading)/10;
       if (Value>3) Value=10;
       if (Value<-3) Value=-10;
       /*
       Limits the maximum difference between -10 and + 10
       */
       // if the analog value is high enough, turn on the LED:
       if (Value > threshold) {
       digitalWrite(ledPin, HIGH);
       }
       else {
       digitalWrite(ledPin,LOW);
       }
       if (Value < threshold2) {
       digitalWrite(ledPin2, HIGH);
       }
       else {
       digitalWrite(ledPin2,LOW);
       }
       // print the analog value:
       Serial.println(Value);
       delay(1);        // delay in between reads for stability
       }
       #Post#: 5460--------------------------------------------------
       Re: Arduino Controllers
       By: nessprojects Date: February 10, 2015, 7:49 pm
       ---------------------------------------------------------
       @ killer
       Your code is getting there....learning by your own mistakes is
       the best way to learn in my opinion.
       only comment I could make is that A0 and A1 have been given a
       constant so lines 20 and 21 could be changed to ...
       [code]  int LeftReading = analogRead(analogPin);  // Read left
       Cell
       int RightReading = analogRead(analogPin2); // Read Right
       Cell[/code]
       Fantastic to see someone else playing with arduinos.
       My personal idea for the detection was to use 2 LDRs in series
       between 5v and 0v then sense the voltage between the 2 which
       should return a value of about 512 on the analogue pin once the
       solar panel is perfectly aligned to the sun.
       Great work and thanks for sharing your code.
       #Post#: 5463--------------------------------------------------
       Re: Arduino Controllers
       By: killer Date: February 10, 2015, 10:39 pm
       ---------------------------------------------------------
       worked on it some
  HTML https://www.youtube.com/watch?v=R9ay0Dd3B1w&feature=youtu.be
       #Post#: 5487--------------------------------------------------
       Re: Arduino Controllers
       By: nessprojects Date: February 11, 2015, 4:03 pm
       ---------------------------------------------------------
       Great video `Killer`....Many thanks for sharing.
       #Post#: 5488--------------------------------------------------
       Re: Arduino Controllers
       By: maximoney1 Date: February 11, 2015, 4:08 pm
       ---------------------------------------------------------
       edited as off topic.  :)
       *****************************************************
   DIR Previous Page
   DIR Next Page