Show Posts
Pages: 1 ... 35 36 [37] 38 39 ... 243
541  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.
542  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:
Code:
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.

Example:
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.
543  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"
544  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.
Quote
if (laststate == LOW && state == HIGH) // only count on a LOW-> HIGH transition
  {
     v1--;
     Serial.println(v1);
  }
  laststate = state;  // remember last state
545  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.
546  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.
547  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?
548  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.
549  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?
550  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?
551  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.
552  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.
553  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?
554  Using Arduino / Project Guidance / Re: Reading keyboard input from upload port on: May 25, 2014, 01:47:02 am
Someone can correct me on this, but I pretty sure both a keyboard and an Arduino are slave devices. So what you want to do, can not be done without an interpreter, like a computer.

You might be able to use a USB host shield, but it still may not work without a correct driver, if one even exists.
555  Development / Other Software Development / Re: New TFT Extension Library on: May 25, 2014, 01:32:30 am
Minor Update: Added new functions for _Draw buttons.

User gromgsxr got me thinking, my buttons use locks to prevent them from constantly redrawing on screen, so, if you want to use them in a menu system, they wont redraw when you reenter the screen. It is the exact same issue gromgsxr was having with his gauges, once he left the screen and came back, they wouldn't redraw. Well these new functions will (as there names imply) fix that issue as either individually or all (of the same type) at once.

New Functions:
ResetTouchButton(byte ID);
ResetTouchCircle(byte ID);
ResetTouchTriangle(byte ID);
ResetLatchButton(byte ID);
ResetLatchCircle(byte ID);
ResetLatchTriangle(byte ID);
ResetAllTouchButton();
ResetAllTouchCircle();
ResetAllTouchTriangle();
ResetAllLatchButton();
ResetAllLatchCircle();
ResetAllLatchTriangle();

Added:
The rounded_Square function draws MUCH faster.
Pages: 1 ... 35 36 [37] 38 39 ... 243