Show Posts
Pages: [1] 2 3 ... 7
1  Using Arduino / Displays / Re: utft display leaning the code structure on: December 17, 2013, 05:39:33 pm
ahh i missed this some where !

this is a complete success now !
thanks for turning me on to that link between what i could read up on there and finding some thing unexplained in there example code i came up with a simplified working code exactly the way i was hoping it would be !

heres a copy of what i got so far ! 
now it displays exactly the pin read times 10 X 10 for the extra 2 place read out i will require later threw math formulas for pi and leverage  , but this will do ! i believe a can map and create a threshold with this wrapper and get exactly what i want a clean cut screen read out !

thanks again and i hope this helps some one eles out to i did not see it explained and where but i may have missed the construct of this key thing some where   
Quote
  myGLCD.printNumI(sensorValue ,132,90, 0);
     delay(5);
Code:
#include <UTFT.h>
int sensorValue = 0;
// Declare which fonts we will be using
extern uint8_t BigFont[];
extern uint8_t SevenSegNumFont[];

// Uncomment the next line for Arduino 2009/Uno
UTFT myGLCD(ITDB32S,38,39,40,41);   // Remember to change the model parameter to suit your display module!

// Uncomment the next line for Arduino Mega
//UTFT myGLCD(ITDB32S,38,39,40,41);   // Remember to change the model parameter to suit your display module!

void setup()
{
    // initialize serial communication at 9600 bits per second:


   
  myGLCD.InitLCD();
  myGLCD.clrScr();
  myGLCD.setFont(BigFont);
 
   myGLCD.print("FOOT POUNDS", 0, 0);
    myGLCD.setColor(0, 0, 255);
}
void clearField()
{
  myGLCD.setColor(VGA_BLACK);
  myGLCD.fillRect(1,15,318,224);
}

void loop()
{
 
   int sensorValue = analogRead(A7);
   
 sensorValue = (sensorValue*10);
    myGLCD.setFont(SevenSegNumFont);
    myGLCD.setColor(0, 255, 0);
   
 
   
  myGLCD.printNumI(sensorValue ,132,90, 0);
     delay(5);
 
   
   
   



}

2  Using Arduino / Displays / Re: utft display leaning the code structure on: December 17, 2013, 04:40:28 pm
OK so this is an idea i had is kind of does what im looking for but not efficiently if i have to create and if condition for every digit i  posable to get witch is some thing like 2500

Code:
#include <UTFT.h>
int sensorValue = 0;
// Declare which fonts we will be using
extern uint8_t BigFont[];
extern uint8_t SevenSegNumFont[];

// Uncomment the next line for Arduino 2009/Uno
UTFT myGLCD(ITDB32S,38,39,40,41);   // Remember to change the model parameter to suit your display module!

// Uncomment the next line for Arduino Mega
//UTFT myGLCD(ITDB32S,38,39,40,41);   // Remember to change the model parameter to suit your display module!

void setup()
{
    // initialize serial communication at 9600 bits per second:

    Serial.begin(9600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }
   
  myGLCD.InitLCD();
  myGLCD.clrScr();
  myGLCD.setFont(BigFont);
 
    // send an intro:
  Serial.println("send any byte and I'll tell you everything I can about it");
  Serial.println();
 
}
void clearField()
{
  myGLCD.setColor(VGA_BLACK);
  myGLCD.fillRect(1,15,318,224);
}

void loop()
{
 
   int sensorValue = analogRead(A7);

 
    myGLCD.setFont(SevenSegNumFont);
    myGLCD.setColor(0, 255, 0);
   
   if (sensorValue < 1){
       myGLCD.setFont(BigFont);
     myGLCD.print("-MIN-",132,90, 0);
    }
      if (sensorValue > 1){
     myGLCD.print("002",132,90, 0);
    }
      if (sensorValue >20){
     myGLCD.print("021",132,90, 0);
    }
      if (sensorValue > 50){
     myGLCD.print("055",132,90, 0);
    }
      if (sensorValue > 100){
     myGLCD.print("100",132,90, 0);
    }
      if (sensorValue > 200){
     myGLCD.print("200",132,90, 0);
    }
 
      if (sensorValue > 350){
     myGLCD.print("350",132,90, 0);
    }
      if (sensorValue > 460){
     myGLCD.print("460",132,90, 0);
    }
      if (sensorValue > 570){
     myGLCD.print("570",132,90, 0);
    }
      if (sensorValue > 680){
     myGLCD.print("680",132,90, 0);
    }
      if (sensorValue > 790){
     myGLCD.print("790",132,90, 0);
    }
      if (sensorValue > 900){
     myGLCD.print("905",132,90, 0);
    }
   

   
     if (sensorValue > 970){
        myGLCD.setFont(BigFont);

     myGLCD.print("-MAX-",132,90, 0);
 
    }
   
delay(500);


}
3  Using Arduino / Displays / utft display leaning the code structure on: December 17, 2013, 03:36:42 pm
hello i just fired up my first display on an arduino i have only had simple  adruino use needs, up till now !

i have built a pneumatic press witch pushes press pins in for me its a simple thing that the arduino handles  i have a mega doing it i know its over kill so i thought i would add on for fun so i picked up a liner transducer and a air pressure transducer sensor and there some math with pie i can write a value to the serial communication the foot pounds of pressure being applied to the press pin  ,.. why ? 
well just because we can right ?  there not real need to know im just having fun with the project

that being said i picked up a

SainSmart Mega2560 R3 + 3.2" TFT Touch LCD SD Card + TFT Shield Kit For Arduino

and got the libraries up and running and the example demo code working and then played around with the example demo code a bit got some brownie points leaving a repeating text message fort he girl friend before i left for work , so she could find it later on the desk top !

ok so now that i gave some back ground and we all up to speed  here what im trying to do the pin press transducer gives me a value for the foot pounds applied to the pin when it is press i would like to use this display to get a read out installed on the press for every time it is activated it displays the rising pressure number to the tft lcd !

so i was able to modfie the example code to right the girl friend a message but that was a print line (" I LOVE YOU " )

and i need a print line that  is more like this 

Code:
{
    myGLCD.setFont(SevenSegNumFont);
    myGLCD.setColor(0, 255, 0);
 
    myGLCD.print("psi", 200, 0, 90);
      myGLCD.print( SensorValue , 200, 0, 90);}

but it dose not seem to like this can i not display a value that is live being read by and anlog pin live to the display ?


4  Using Arduino / Sensors / Re: 8 pin dip light sensor found ! on: June 13, 2013, 06:44:59 pm
reading ovr how to run this looks simple but what do you do toke this part happen ? "  "
Quote

For proper operation, after meeting the minimum hold time condition, SI must go low before the next rising edge of the clock.
5  Using Arduino / Sensors / Re: 8 pin dip light sensor found ! on: June 13, 2013, 06:26:21 pm
yup found it Texas advance is the brand...http://www.alldatasheet.com/datasheet-pdf/pdf/203005/TAOS/TSL201R-LF.html

TEXAS ADVANCED OPTOELECTRONIC SOLUTIONS - 64 x 1 LINEAR SENSOR ARRAY

pretty sweet..


6  Using Arduino / Sensors / Re: 8 pin dip light sensor found ! on: June 13, 2013, 06:17:38 pm
taos408 second st of number..
7  Using Arduino / Sensors / Re: 8 pin dip light sensor found ! on: June 13, 2013, 06:15:49 pm
tsl201R  first number no name...tho.
8  Using Arduino / Sensors / Re: 8 pin dip light sensor found ! on: June 13, 2013, 06:12:56 pm
yes vary freaky but i think i like them..
9  Using Arduino / Sensors / 8 pin dip light sensor found ! on: June 13, 2013, 05:47:54 pm
found these today .. there cool any one know what they are or have any info i would like to find a data sheet,  and use them with out burning them up on the first try
10  Using Arduino / Project Guidance / Re: options for a 3 axis table need to know if this will do the trick befor i spend the money on: December 12, 2012, 12:04:33 pm
this is  just to get the g code to talk to the the stepper sence ive been tracking down a way to do this using the arduino and it doest look promising   so beyonfd this set up i want to use my arduino to control my spindel speeds and me encoders for the axis and aventuly get a read out display going with the x y and z cords  so im her cuz i was her first befor i moved on to a cheaper more up to the task stepper controller  and i was under the impression that this was the genaral project  useing arduino section so i could ask for a more experanced persons input on spending the money to get back to play with my arduino side of this project .. due to the lack of luck with driveing big stuff with my arduino i smoked 2 adfruit shilds at one attempt of driveing my project to the next level .. live and learn ...
11  Using Arduino / Project Guidance / options for a 3 axis table need to know if this will do the trick befor i spend the money on: December 12, 2012, 04:09:52 am
this is a link to a ebay listing for

3 steppers
3 stepper controler
1 power supply
and a brake out board interfac
this all is vary new to me but i realy want to get some thing going
im not sure what eles on the driveing the motrors side would be missing or if all these items would make a compleat kit for runing mach3 or k cam
ok this is how i under stand it i could be wrond thats why im here smiley
useing the printer port on my pc i run mach3 to the port with the brake out board the board then handles the movments and what needs to go where  . being the brake out board hooks to the stepper modules that hook to the steppers and then wham bang boo g code controling 3 steppers
im hopeing this is right or i might die from the let down but if this is wrong pleas let me know what im missing so i can decide where to go from here thanks !

Moderator edit: URL posting corrected
12  Using Arduino / General Electronics / Re: encoder + 24v dc motor + mega = posable proect on: December 11, 2012, 10:47:16 am
sweet  i did use the 5 v of the arduino board .. i have 3 matching encoders 2 i would like to use on motrors when ever i get there and the third sthe wires were cut back to the pins  so im useing that one as a test dummy at the moment ..  sadly i cant aford a scope im just a simple at home spare time maker with no funding mostly work of what people give to me as there junk ..  but thats what i tryed to acomplish with the arduino . useing to get an idea of what was doing what ...  it did cross my mind that AA BB ZZ would be -and+ any idea how to use it those leads as -+ would it be - is reverse or is it i have to apply a ground to those - A B AND Z ?  I did open it up to expose every thing and got in there and used a jewrls magnfier to lool around  there was a lot of lines on the disk with a simple legend stateing this  A---   B--  C-  for the lines in the disk i belive it means that the long traces for the wave form are A and mid being B and im guessing Z=C for the short ones .. and what about the shield drin to the case what is that for noise ? that wire is segrageted it the line up of pin outs i left it disconected not know wheather to ground it to the arduino or not .
13  Using Arduino / General Electronics / Re: encoder + 24v dc motor + mega = posable proect on: December 10, 2012, 08:06:14 pm
well i just got done trying the pin outs for the encoder at 3.3v first then 5v using analog read to check each pin for a Fluctuating value no response had readings from 377 to 1009 and 754 steady  and using digital read i got no further got some that stated high and others that stayed low ? hmm must be doing some thing wrong

ill try to duplicate the sticker pin outs

pin 1 +V        pin3 = A     pin5 = B    pin7 =Z             and 1 blak and white wire it calse drain shiled gos to case as it says
pin 2 com      pin4 = A     pin6 = B    pin8 =Z
does this make sense ?
14  Using Arduino / General Electronics / encoder + 24v dc motor + mega = posable proect on: December 10, 2012, 07:33:38 pm
i came across some cool stuff this week i have a bosh 200mm ball screw in a box slide drveing the ball screw was a 60v dc motor at 3.50 amps on the back was a brake and an optical encoder model Q1/b it has the pin outs on a sticker but i cant find a data  sheet for it ....
the motor seems to be way to high of a voltage for my likeing   smiley-eek"what am i gonna do with 60 volts !")  im thinking about finding a simple set of nema stepper motors and driveing it that way. but in the mean time i would like to try and get the encoder to work with the dc motor i can get it to run on 24v stalls out around 12volts so a simple experiment  with the encoder to get to know it would be try to run a constant speed with the encoder reeding to the arduino mega...now i think i could mange getting a rpm reading out of it with some of the examples in the play ground.. but how could i control such a hight amp and volt motor with out spending a fortune on a driver is there semiconductor or a h bridge that could handle it with a pwm signal ?
15  Using Arduino / Microcontrollers / Re: attiny 85 and the ping sensor on: December 05, 2012, 05:33:49 pm
hmm i guess i was miss informed about the 3 pwm pins @ code badly  i was readinhg threw the fourms and found some ones post about the third digatal pin and i read that the pb2 pin anlog pin 1 could dubble as a digatal pin with out pwm but i read threw most of this http://arduino.cc/forum/index.php/topic,87517.0.html  and could not find how this is done manged it on my own do you have to do some thing to the chip to make it a pwm pin or just program it to do so like normal ?

@fungus i figuer your limataions are end less with the programing and soft ware side of things but that greek to me at this point im begining to under stand what i can in my free time
Pages: [1] 2 3 ... 7