Loading...
  Show Posts
Pages: [1] 2 3
1  Using Arduino / General Electronics / Re: VCO in PLLS on: April 23, 2013, 01:04:01 am
Yes, of course.  Thanks alot smiley
2  Using Arduino / General Electronics / Re: VCO in PLLS on: April 23, 2013, 12:39:59 am
Yes I get that part.  But why does the VCO get ahead but not the reference clock?
3  Using Arduino / General Electronics / VCO in PLLS on: April 23, 2013, 12:20:24 am
Hello,

I am trying to understand how PLLs work.  I get the general idea but I'm still stuck as to why the reference clock ( Quartz crystal ) remains steady but the VCO ( Voltage Controlled Oscillator ) will drift and needs help to remain constant.  Can anyone help?

Thanks.
4  Using Arduino / General Electronics / Hardware Layers on: April 17, 2013, 06:32:18 am
When reading about some HW features I often see things like L3 interconnect, L2 Cache master.  Can someone explain what these layers mean?  How many are there?
5  Using Arduino / Programming Questions / Re: Counter to 480 on: February 28, 2013, 03:10:17 pm
I would do something like this:

Code:
const int MAX_LOOPS = 480;
  int LED_check=0;
  for(int i=0;i<MAX_LOOPS;i++)
  {
   
   if( (i%10) == 0)
   {
   Serial.println("TURN LED ON");
   LED_check++; //0-9 to turn on each LED
   }
  }
6  Using Arduino / Displays / Re: TFT library alters values in a struct on: February 28, 2013, 02:29:34 pm
Also:

If I pass by reference it is working OK.  Any ideas what mistake I made when using those pointers?  Are pointers the correct way to do it here?
7  Using Arduino / Displays / TFT library alters values in a struct on: February 28, 2013, 01:30:19 pm
Hello,

I have the following code.

Code:
Serial.println("sensorUIInfo->airTemp MAIN C");
 getAirTemp();  //Air Temp = 23
  
  //Draw pH value
  myGLCD.printNumF(sensorUIInfo->phLevel, 1, 20, 120);
  
  Serial.println("sensorUIInfo->airTemp MAIN D");
 getAirTemp();  //Air Temp = 32

The reason is that printNumF, if I do printNumI or nothing it's OK.  Somehow that printF alters the value.

The struct is like this:

Code:
//All the data from the HW sensors.
    struct SENSOR{
    float phLevel;
    float eCLevel;
    int airTemp;
    int waterTemp;
    };

SENSOR* sensorUIInfo;

And I update from the engine to the UI like this:

Code:
void HydroponicsUI::updateInfoFromSensors( SENSOR* sensorInformation )
{
 Serial.println("sensorInformation->airTemp");
 Serial.println(sensorInformation->airTemp);
 sensorUIInfo->phLevel = sensorInformation->phLevel;
 sensorUIInfo->eCLevel = sensorInformation->eCLevel;
 sensorUIInfo->airTemp = sensorInformation->airTemp;
 sensorUIInfo->waterTemp =  sensorInformation->waterTemp;    

}

The controller does the update like this:

Code:
//Update the UI of the latest Sensor Info
   Hydro_UI.updateInfoFromSensors( Hydro_Eng.getSensorInformation() );

Is this an error in my code?

Thanks.
8  Using Arduino / Programming Questions / Re: Making a library on: February 25, 2013, 02:44:01 pm
By sketch, I mean the .pde and not my library.
9  Using Arduino / Programming Questions / Re: Making a library on: February 25, 2013, 02:42:58 pm
If I put this in my sketch, it compiles, Without those it says undefined reference.

#include <UTFT.h> // Graphics Library
#include <UTouch.h> //Touch Screen Library



but when it compiles it does not work. 

so in the .cpp

// for the Arduino Mega 2560 pins and Sainsmart TFT shield.
UTFT myGLCD(ITDB32S, 38,39,40,41);   
UTouch myTouch(6,5,4,3,2);


UI::UI() {

   //Serial.begin(115200);
   // Initial setup
    myGLCD.InitLCD(); //CRASH HERE
    myGLCD.clrScr();

    myTouch.InitTouch();
    myTouch.setPrecision(PREC_MEDIUM);

    myGLCD.setFont(BigFont);
    myGLCD.setBackColor(0, 0, 255);
    

}

in the .h file

// Declare which fonts we will be using
extern uint8_t BigFont[];


#include "../UTFT/UTFT.h"
#include "../UTouch/UTouch.h"
10  Using Arduino / Programming Questions / Re: Making a library on: February 25, 2013, 02:30:25 pm
I can link to my own library fine, how can I link to a library within a library?

#include "../UTFT/UTFT.h"
#include "../UTouch/UTouch.h"

And it does not work.  So in my library I link to those, but those are not found.
11  Using Arduino / Programming Questions / Making a library on: February 25, 2013, 02:20:41 pm
I have made two libraries an Engine and a UI.

From the sketch I want to access these.  The problem is that the UI uses the UTouch and UTFT library and the engine use the DHT11 and RTCLib libraries amongst others. How can I link those libraries from my own?  I have even done this:

#include "../UTFT/UTFT.h"
#include "../UTouch/UTouch.h"

Thanks.
12  Using Arduino / Displays / Re: Sainsmart 3.2 tft shield wont respond on: February 23, 2013, 02:28:10 am
The same thing happened to me.  Just keep flashing it and on the ~20th time it will work.  After that it will always flash OK.  I am using 1.03 and I have the shield too.
13  Using Arduino / Displays / Re: sainsmart 3.2 tft lcd display and a second Arduino on: February 22, 2013, 09:15:20 am
Would anyone know how to bypass the shield and just connect the screen directly using wires?
14  Using Arduino / Displays / Re: sainsmart 3.2 tft lcd display and a second Arduino on: February 20, 2013, 03:39:04 pm
The problem is that the shield uses the vin pin too, no idea why.  Therefore how could I use the vin pin?

Edit:  I have two Arduino Mega 2560s
15  Using Arduino / Displays / sainsmart 3.2 tft lcd display and a second Arduino on: February 20, 2013, 03:01:05 pm
Hello,

I have a Sainsmart 3.2" LCD and shield.  The shield takes up all the power pins.  I was planning on powering the LCD Arduino from another one via the vin.  Is this possible?

Thanks.
Pages: [1] 2 3