Show Posts
Pages: 1 ... 45 46 [47] 48 49 ... 253
691  Using Arduino / Programming Questions / Re: Best Way to Cycle Through Screens on: May 28, 2014, 01:23:30 pm
If you want an easy method, but are ok with some maintenance(ensure this stops when it should, do have things overlap . . . etc), use case statement.

If you want a good menu system, then look into the Menu library. It may be difficult to learn how it works at first , but once you get the hang of it, your good to go.
692  Using Arduino / Project Guidance / Re: Info on using keypad on: May 28, 2014, 12:49:00 pm
also assign a key (to be pressed by user) to end this loop.

Yea, the usual method is to wait for either the * or # symbol to be pressed to stop collecting the values. Another method is to set how many chars it should receive with a counter.
693  Using Arduino / Project Guidance / Re: Arduino for extensive Image processing and suitable camera. on: May 28, 2014, 10:24:03 am
Well if it is an assignment, then the professor must have already made it in order to have some kind of bench mark to compare it to, or at least covered the capabilities of the Arduino. I highly doubt a professor would give an assignment, knowing what the Arduino can and cannot do, only to have the student hit a dead end.

Possibly it is not an assignment and the OP just wants to use a microcontroller because they are cheap and easily replaceable if something goes wrong. I don't know what the story is, so maybe he will tell us, or maybe not.

Bottom line, he needs a RPi.
694  Using Arduino / Project Guidance / Re: Info on using keypad on: May 28, 2014, 08:09:45 am
You need to know the basics first, so start with the examples that came with the arduino software. Once you have done that and are comfortable to go further, there is a keypad library you need to download if you don't already have it.

The keypad library comes with it's own examples that can get you started, but you have to add to it so you get it to collect multiple chars (term for character like 'A' or '1') and store them in another variable.

You can use this:
char myKey = Keypad.getKey();
value = (value * 10) + (myKey - '0');
myKey is the char returned from the key you pressed.
(myKey - '0') converts the char into a usable value to then be used later. '5' - '0' = 5
value is where you are going to concatenate in incoming chars into a multi-digit number. "1234"
(value * 10) shifts the numbers into multi-digit values.

you enter 1,7,8,5 on the keypad.
1 = (0 * 10) + ('1' - '0');
17 = (1* 10) + ('7' - '0');
178 = (17 * 10) + ('8' - '0');
1785 = (178 * 10) + ('5' - '0');
value = 1785.
695  Using Arduino / Project Guidance / Re: controls a motor with radio frequency (rx tx 433.92mhz) on: May 28, 2014, 07:26:29 am
When is the project due, and what have you learned about the arduino so far? Your using 433 Mhz modules, which ones are you using exactly, because there are many. Have you done a search yet for "Arduino + 433 Mhz RF"
696  Using Arduino / Project Guidance / Re: Keypad Help on: May 27, 2014, 08:54:04 pm
You need a condition that sets laststate back to LOW. Add this, once v1 equals "==" 0, laststate = LOW.
if (laststate == LOW && state == HIGH) // only count on a LOW-> HIGH transition
  laststate = state;  // remember last state
697  Using Arduino / Displays / Re: Need some help with TFT display. on: May 27, 2014, 02:08:42 pm
I see what your getting just by the looking at the code. It's drawing random circles on the screen at different sizes which can be drawn at any part of the screen. The issue your getting is leakage, the circle(s) is being drawn outside or too close to the edge of the screen. This will cause the buffer to leak, resulting in the screen flickering. Everyone gets it, if what they draw goes past 240x320 pixels.

You will see the exact same thing if you draw a line at 0,0 and extend it to 400, 0 across the X axis.
698  Using Arduino / Displays / Re: Help Arduino Mega 2560 + 3.2" TFT LCD on: May 27, 2014, 11:20:25 am
I extracted everything you should need to get it to work.
699  Using Arduino / Displays / Re: Help Arduino Mega 2560 + 3.2" TFT LCD on: May 27, 2014, 07:59:53 am
Did you click the link on that page, Data Download?
700  Using Arduino / Programming Questions / Re: Led Cube Bluetoth Programming on: May 27, 2014, 07:54:27 am
You can send a packet of bytes, like so: <0xAF, 0x34, 0xFF, 0x12, 0x99>. each one controls a column of LEDs. Yes you need the tags, <> or similar, just so it is easier for your code to split the data. You would need to send 5 of these, one for each 5x5 section, and once you have all of the data, you display it.

If you want, you can send all 25 byte together as one packet, you will just need a counter to keep track of when to split the data into there 5x5 parts.

You can also use a structure, to send the data but it is not easy for beginners to understand.
701  Using Arduino / Programming Questions / Re: 4 probes + 6 contact pads = 24 possible serial outputs. on: May 26, 2014, 09:04:31 pm
How about a keypad?
702  Using Arduino / Programming Questions / Re: Led Cube Bluetoth Programming on: May 26, 2014, 06:07:32 pm
If you want to learn how to do it from your phone, you should first be able to do it with the Serial monitor. What are you currently using to display something on the cube? Could you post your code and an example picture or video?
703  Using Arduino / Programming Questions / Re: I've been trying to install for days! on: May 25, 2014, 06:37:30 pm
The first actual error is your problem, go into the .h file and change WProgram.h to Arduino.h then save it.
704  Using Arduino / Project Guidance / Re: Reading keyboard input from upload port on: May 25, 2014, 02:29:00 pm
Here is more to that link, USBHost This only works with an Arduino Due.

Here is the master library file. USB_Host_Shield

The USB port on the Arduino is a client, not a host, so in order for what you want to work, you need a USB host. And that is why there is a USB shield.

Added: Mike said it better.
705  Using Arduino / Displays / Re: Need some help with TFT display. on: May 25, 2014, 12:35:45 pm
Could you show us what you're seeing with some pictures or a video?
Pages: 1 ... 45 46 [47] 48 49 ... 253