Show Posts
Pages: 1 ... 21 22 [23] 24 25 ... 196
331  Development / Other Software Development / New TFT Extension Library on: February 14, 2014, 03:05:57 pm
Please see REPLY below.

I originally made this library for my own uses, but I feel it should be shared. It works with Henning Karlsen's UTFT and UTouch libraries and it also works with his older ITDB02 libraries. "ITDB02_Graph16 and ITDB02_Touch"

PLEASE NOTE, I am still adding functions to this library (95% Done), mostly colors and functions that allow the user to choose there colors for certain functions like the drawTriangle function.

Right now I only have a 3.2 TFT Lcd that uses the older ITDB02 libraries, so all the examples will be set for those libraries, however, it does compile with the UTFT and UTouch examples.

332  Using Arduino / Project Guidance / Re: Auto Level Off-Road buggy , First Arduino project on: February 14, 2014, 09:43:45 am
Other than your solenoids and maybe relays, do you have a bread board?
333  Using Arduino / Project Guidance / Re: Auto Level Off-Road buggy , First Arduino project on: February 13, 2014, 04:58:37 pm
An accelerometer measures G force, so by shaking it in any direction will produce a reading. Three axis accelerometers can also be used as leveling devices but any sudden movement will increase or damper the reading at that particular angle.

Gyros on the other hand only change when tilted, so as long as the angle is fixed, bouncing will not effect it.

I don't own a gyro but I do have a 3 axis accelerometer. However the most common one I have seen is a MCU-6050 3 axis accel + gyro.
334  Using Arduino / Project Guidance / Re: Auto Level Off-Road buggy , First Arduino project on: February 13, 2014, 04:20:38 pm
You want a gyro.
335  Using Arduino / Programming Questions / Re: Sending buffer via 433Mhz transmitter issue on: February 13, 2014, 04:14:42 pm
Transmitter is set to 2000 bps, and the receiver is set to 500 bps, something doesn't look right.
336  Using Arduino / Project Guidance / Re: My 1st project: TIE Crawler from the Star Wars Expanded Universe on: February 13, 2014, 02:19:03 pm
You have an Uno or a Mega right, do they work alone? Answer my question and you will have answered your question.

There are custom breakout boards that they can attach to, but you could also just use a breadboard.

There is one other thing I forgot to mention, the Mini, does not have a USB connector, so to upload sketches to it, you will need a USB to TTL converter.  Like this HERE
337  Using Arduino / Programming Questions / Re: Arrays inside of a array on: February 13, 2014, 02:16:21 pm
Code:
int L[20][2]= {{1,1},{1,2},{2,2},{2,3},{2,4},{2,5},{1,6},{2,6},{3,6}};//[ERROR HERE]

void setup()
{
  Serial.begin(115200);
  int * tmp = ascii(3); // store returned pointer in tmp pointer
  Serial.print(tmp[0]); // show what is in element 0
  Serial.print(tmp[1]); // show what is in element 1
}

void loop() { }

int * ascii(int idx) // returns a pointer
{
  return L[idx]; // return a pointer to the data at idx
}
338  Using Arduino / Project Guidance / Re: How to make my own board which sends me accelerometer data via bluetooth on: February 13, 2014, 12:32:38 pm
If you go to the [urlhttp://arduino.cc/en/Main/Products]Arduino Products [/url]page, you will usually find schematics that pertain to that Arduino.
339  Using Arduino / Project Guidance / Re: My 1st project: TIE Crawler from the Star Wars Expanded Universe on: February 13, 2014, 12:29:25 pm
Nano:
Quote
Microcontroller   Atmel ATmega168 or ATmega328
Operating Voltage (logic level)   5 V
Input Voltage (recommended)   7-12 V
Input Voltage (limits)   6-20 V
Digital I/O Pins   14 (of which 6 provide PWM output)
Analog Input Pins       8
DC Current per I/O Pin   40 mA
Flash Memory   16 KB (ATmega168) or 32 KB (ATmega328) of which 2 KB used by bootloader
SRAM   1 KB (ATmega168) or 2 KB (ATmega328)
EEPROM   512 bytes (ATmega168) or 1 KB (ATmega328)
Clock Speed   16 MHz
Dimensions   0.73" x 1.70" cm

Micro:
Quote
The maximum length and width of the Micro PCB are 4.8cm and 1.77cm respectively, with the USB connector extending beyond the former dimension. The layout allows for easy placement on a solderless breadboard.

Microcontroller   ATmega32u4
Operating Voltage   5V
Input Voltage (recommended)   7-12V
Input Voltage (limits)   6-20V
Digital I/O Pins   20
PWM Channels   7
Analog Input Channels   12
DC Current per I/O Pin   40 mA
DC Current for 3.3V Pin   50 mA
Flash Memory   32 KB (ATmega32u4) of which 4 KB used by bootloader
SRAM   2.5 KB (ATmega32u4)
EEPROM   1 KB (ATmega32u4)
Clock Speed   16 MHz

Mini:
Quote
The dimensions of the Mini PCB are approximately 0.7" x 1.3" cm.

Microcontroller   ATmega328
Operating Voltage   5V
Input Voltage   7-9 V
Digital I/O Pins   14 (of which 6 provide PWM output)
Analog Input Pins   8 (of which 4 are broken out onto pins)
DC Current per I/O Pin   40 mA
Flash Memory   32 KB (of which 2 KB used by bootloader)
SRAM   2 KB
EEPROM   1 KB
Clock Speed   16 MHz

Mini Pro
Quote
The dimensions of the Pro Mini PCB are approximately 0.7" x 1.3" cm.

Microcontroller   ATmega168
Operating Voltage   3.3V or 5V (depending on model)
Input Voltage   3.35 -12 V (3.3V model) or 5 - 12 V (5V model)
Digital I/O Pins   14 (of which 6 provide PWM output)
Analog Input Pins   8
DC Current per I/O Pin   40 mA
Flash Memory   16 KB (of which 2 KB used by bootloader)
SRAM   1 KB
EEPROM   512 bytes
Clock Speed   8 MHz (3.3V model) or 16 MHz (5V model)
340  Using Arduino / Project Guidance / Re: How to make my own board which sends me accelerometer data via bluetooth on: February 13, 2014, 10:00:55 am
Quote
Goal: An Arduino based board that runs over battery (of course) having accelerometer + gyro and bluetooth(BLE). This board should be as small as possible and sends the accelerometer and gyro info via bluetooth.

That should be easy if you can get your hands on the chips used from the accel/gyro, an Arduino Nano, Micro or Mini, and the Bluetooth module. There is also barebones Arduinos, meaning you get the components and you can make your own Arduino board.

Personally the barebones would be the better solution for compactness, if you can't get the chips used as stated above. An alternative would be to buy the parts stated above already assembled and wire them up. But since you know how to use Eagle software, you should look into barebones Arduinos.
341  Using Arduino / Programming Questions / Re: Arrays inside of a array on: February 12, 2014, 11:15:45 pm
I'm not going to ask about your logic with the IF statement, but you have a 2D array so the compiler wants it to be int L[][2]
342  Using Arduino / Programming Questions / Re: Problem with append to char array (from KEYPAD) on: February 12, 2014, 07:23:53 pm
Try this:

Code:
void readPassEeprom()
{
  byte location;
  byte digit;

  for (location=0;location<=3;location++)
  {
    digit=EEPROM.read(location);
    st_pass[location]= (digit >= 127? NULL : digit); // look at each value from eeprom @ location, if value is not a char, set NULL, otherwise value is char.
  }

  if( strlen(st_pass) == 4 ) // check is st_pass is a valid password
  {
    Serial.print("Password is valid: ");
    Serial.println(st_pass);
  }
  else  // st_pass is not valid, so make st_pass be "4444"
  {
    strcpy(st_pass, "4444"); // this sets st_pass to "4444"
    Serial.print("Invalid password, Auto set to: ");
    Serial.println(st_pass);   
  }
  password.set(st_pass);
  Serial.print("Set pass to: ");
  Serial.println(st_pass);
  //password.reset();
}
343  Using Arduino / Project Guidance / Re: HOW TO USE KEYPAD FOR MAKE A CONTROL ACCESS SISTEM on: February 12, 2014, 06:28:39 pm
They can be changed, those are just initial passwords. You can use the same method like how it is done in the beginning, to change them later in the code. You will need a way to wait for keypress then one by one store them in the EEPROM. Make sure you set a limit otherwise it will give you problems and may write over other passwords.

I am unable to provide an example at the moment but someone else may be able to.
344  Using Arduino / Programming Questions / Re: Reusing code meant for the Adafruit LCD with buttons shield on: February 10, 2014, 09:21:57 pm
Where is your loop function? And why are you still breaking up the code, if you want help I need to see the code in full, not parts. You can add an attachment under additional options at the bottom when you make a new reply.

Looking at your link, those buttons use one analog pin A0 to read the buttons. This is done with a resistor ladder, meaning the code itself is already designed to work with the resistor values. However your buttons are the basic one pin per button, so I have to ask how are your buttons wired? Are they normally High or Low, are you sure they have some stable connection to the board when the button is not press and the pin is floating?

I also see that you are not debouncing the buttons like you should nor are you checking to see if they are being held down or not. I'm guessing you are brand new to using an Arduino or maybe even coding altogether, but the Arduino software comes with examples you can play with, learn from and adapt to your code. There are quite a few things that need to be fixed, but seeing as your code mostly revolves are your buttons at the moment, I suggest you iron out their flaws first.
345  Using Arduino / Programming Questions / Re: Reusing code meant for the Adafruit LCD with buttons shield on: February 10, 2014, 07:19:54 pm
Post your full code, not in parts. Make sure you add comments too.
Pages: 1 ... 21 22 [23] 24 25 ... 196