Show Posts
Pages: [1]
1  Using Arduino / Project Guidance / Re: [Help] Creating a menu for non touch TFT Screen on: June 17, 2014, 11:15:01 am
Hah thats very interesting function, even though i dont get it ill struggle more around it! Thank you very much i really appreciate your help kind sir! ill try to solve the problem eventually smiley-razz
Oh and i have an Uno so its only pins 2 and 3 smiley-razz
2  Using Arduino / Project Guidance / Re: [Help] Creating a menu for non touch TFT Screen on: June 17, 2014, 11:01:50 am
I would like to use a push button, so i could read a high and low i guess instead rising and lowering... hmm thats a nice idea ill look more into it, thank you very much.
3  Using Arduino / Project Guidance / Re: [Help] Creating a menu for non touch TFT Screen on: June 17, 2014, 10:37:20 am
The line is constantly drawn cuz i want to compare the changes with the time, so if the voltage is constant i want to see it constant if theres a minor change i want to see the minor change. Its just 2 screens now, voltage and current readings, and hmm seems i have no idea how to code that switch thing and make a loop within.

And the code u asked about, is to refresh the screen when the line reaches the end of the screen i think x)
4  Using Arduino / Project Guidance / Re: [Help] Creating a menu for non touch TFT Screen on: June 17, 2014, 10:11:50 am
Code:

#include <TFT.h> 
#include <SPI.h>
 #include <SD.h>
 
#define cs   10
#define dc   9
#define rst  8 


TFT TFTscreen = TFT(cs, dc, rst);


int xPos = 0;

void setup(){
 
  Serial.begin(9600);

 
  TFTscreen.begin();


  TFTscreen.background(250,200,200);
 

}

void loop(){

  int sensor = analogRead(A0);
  int drawHeight = map(sensor,0,1023,11,TFTscreen.height()-5);
   int sensor1 = analogRead(A1);
  int drawHeight1 = map(sensor1,0,1023,11,TFTscreen.height()-5);
 
 
  Serial.println(drawHeight);
 
 
  TFTscreen.stroke(0,255,255);
 
   
   TFTscreen.line(xPos+10, TFTscreen.height()-drawHeight, xPos+10, TFTscreen.height()-10);
 
    TFTscreen.stroke(0,0,0);
    TFTscreen.text("^", 8, 8);
   
    TFTscreen.text(">", 153, 115);
   
   

   
   
   
  TFTscreen.stroke(0,0,0);
  TFTscreen.line(0, 118, 158, 118);
  TFTscreen.line(10, 11, 10, 127);
  if (xPos >= 150) {
    xPos = 0;
    TFTscreen.noStroke();
    TFTscreen.fill(250,200,200);
    TFTscreen.rect(11,0,150,118);
      }
  else {

    xPos++;
  }

  delay(50);
}
5  Using Arduino / Project Guidance / Re: [Help] Creating a menu for non touch TFT Screen on: June 17, 2014, 09:49:15 am
Hi HazardsMind, the way my graphic works is that for every sensor value it prints a line with a mapped value height, as far as i know i think that "case" menu wont work cuz everytime the code checks if the button is pressed or not it'll restart the whole function a.k.a. graphic so i wont get the graphic to be displayed or im wrong and i dont fully understand the switch function xD. Thank you for your reply.
6  Using Arduino / Project Guidance / [Help] Creating a menu for non touch TFT Screen on: June 17, 2014, 08:10:37 am
Hello everyone.

I am an owner of arduino uno. I have written a code for monitoring voltage changes. It is all displayed on the TFT screen with a graphic style. What i need is also to include a current monitoring, the hardware isnt the problem. What i cannot think how to codea menu for the display to show the voltage diagram. I want to make a two way scrolling menu, forward and backwards, when a button is pressed to display lets say the voltage graph, when pressed the forward button the current when pressed forward again another function.

Thank you for reading, looking forward to reading your replies.

Best regards ~Riste
7  Using Arduino / Project Guidance / Re: [Help] Buying an arduino kit on: April 09, 2011, 12:57:06 pm
i've searched ebay alot. But the thing is i cant buy from ebay cuz paypal blocked my country's ip and the cheapest are there... Whole kit is for 29-30$ and here i do not want to give 50$+ for the same items ... Thats the problem im actualy looking for the same others but on other sites that doesnt require strict payments with PayPal i have moneybookers... Anyhow ty alot for ur response
8  Using Arduino / Project Guidance / [Help] Buying an arduino kit on: April 09, 2011, 04:27:40 am
Hi to evryone out there.

I need help to buy the arduino duemilanove kit, Im from macedonia and there arent any arduino shops. I was searching for 1 week or more how to get one and still didnt find a solution ... I appriciate ur help in advance.

Best regards

~Riste
9  Using Arduino / General Electronics / Re: Questions :) on: April 07, 2011, 03:16:13 pm
Sorry for that yea smiley-sad... Anyhow im from Macedonia... And yes Duemilanove kit is what i need. Ty for your replay's alot i appritiate it
10  Using Arduino / General Electronics / Questions :) on: April 07, 2011, 12:07:53 pm
Hello there to evryone. Im new to arduino and actually now to electronics. I had a problem finding where to post this topic and i dicided to do it here.
Anyhow my question's are.
 I've seen alot of Arduino Starter kit's on the internet i want to buy one. But i couldnt find it on the arduino website. If any1 can show me where can i buy it from and that doesnt require paypal. Cuz paypal blocked my country...But i have money bookers Ty to evryone bothering to read and help me with this best Regards

~Riste
Pages: [1]