Show Posts
Pages: 1 ... 70 71 [72] 73 74 ... 196
1066  Using Arduino / Displays / Re: Arduino tft variables flickering on: August 31, 2013, 05:59:19 pm
Why not see if the variable changes first, then if it does change, clear that segment of the screen and display the new number. This way you will get rid of the flicker and make it look much smoother and professional.
1067  Using Arduino / Programming Questions / Re: how can i do split string function? on: August 29, 2013, 03:18:20 pm
Post your full code.
1068  Using Arduino / Programming Questions / Re: Make a Stepper motor Hold/Lock on: August 26, 2013, 10:45:12 pm
Well, you could just keep those particular poles energized, but that would either drain your battery or burn out your stepper motor (if the voltage is too high to begin with).
Another thing you could do is make some kind of disk break, similar to the ones used on hobby RC cars/trucks.
1069  Using Arduino / Programming Questions / Re: Stepper Motor Sun Tracker Script Help Needed on: August 26, 2013, 10:39:45 pm
Well how do you get a percentage from anything? Simple, you find its max value and divide the current value by the max. In this case, I just going to guess that the max value you get is 1023.
So you simply take the new value and divide it by 1023, and you should get a certain percentage, base on the amount of light your photodiode is receiving.

So in programming terms:

New_Value = analogRead(sensor_one);
Percent_S1 = New_Value / 1023;

or just simply,

Percent_S1 = analogRead(sensor_one) / 1023;
1070  Using Arduino / Project Guidance / Re: Mini Car , Xbee , PS2 controller , Camera on: August 25, 2013, 03:22:42 pm
You cant do that, the Arduino cannot handle video, it does not have the memory. The best thing you could do would be still frames, but even then you wouldn't be able to send them. Your only practical option for video is just to get a wifi webcam.

Well there is also a raspberry Pi + camera, but that's another story.
1071  Using Arduino / Project Guidance / Re: 4 serial connections on arduino uno on: August 25, 2013, 03:16:15 pm
Software serial may work, but I'm not sure how many serial connections you are limited to.
1072  Using Arduino / Project Guidance / Re: Board/shield recommendations to support dc motors/xbee/IMU/GPS for dfrobot. on: August 25, 2013, 03:14:38 pm
Well your in luck for space because Arduino shields are stackable. Arduino UNO -> motor shield -> Xbee shield, and maybe even an expansion board. The only thing you need to really worry about is available pins. What shields are taking up what pins? If you get a stackable motor shield, then you need to see what pins it's going to use and what pins the Xbee shield needs in order to work. And if you are in a tight jam with available pins, then you can always get an Arduino mega, it has plenty of pins.

Shop around, make a list of what you will/may need, and do some research on each part. You have two good platforms, rather pricy, but good for projects.
So make a list of parts, and go from there.
1073  Using Arduino / Programming Questions / Re: Creating a Library ... no joy on: August 25, 2013, 02:41:41 am
From you code
// --- example nine ---   (EEPROMDump)
void EEPROMDump()
  { char buffer[60];
    word addr=0;
    Serial.println("EEPROM Dump:");
    while (addr < E2END)
      { for (byte i=0; i<16; i++)

From actual library
25: class EEPROMClass
26: {
27:  public:
28:    uint8_t read(int);
29:    void write(int, uint8_t);
30:  };

Your passing in a word when the library is calling for an int. You can use a cast and change; to;
1074  Using Arduino / Programming Questions / Re: Creating a Library ... no joy on: August 25, 2013, 01:47:33 am
Just from looking at what you posted, public and private should not be capitalized. I'll look over the rest of the code and see what else could be a possible error, but for now, fix those.
1075  Using Arduino / Displays / Re: SOLVED-BIG 7 inch TFT Looks great- 1 issue. on: August 24, 2013, 12:56:25 pm
The code is fine, so that just leaves either bad wiring or a bad screen. I suggest you get the shield that I told you about in the above post.
1076  Using Arduino / Project Guidance / Re: Is there any way to fit this much on a board? on: August 23, 2013, 07:45:33 pm
You may very well need to use a Mega. I can see the two motor drivers working on one UNO, but motor drivers + moisture sensor and a touch screen, not likely.
1077  Using Arduino / Displays / Re: SOLVED-BIG 7 inch TFT Looks great- 1 issue. on: August 23, 2013, 06:46:03 pm
You should be using the preferred shield as suggested here ebay 7" adapter shield
1078  Using Arduino / Displays / Re: SOLVED-BIG 7 inch TFT Looks great- 1 issue. on: August 23, 2013, 05:49:58 pm
Nobody here can see your code to even know if you have it set up correctly. What model is your screen, it might not even be supported by the UTFT library.
And please don't put a link on someone else's post to this one, there is really no need for it. If you add a comment, it will bring the post to the top of the list and people will look at it. With any luck, they may just have an answer.
1079  Using Arduino / Displays / Re: UTFT.h wont compile on: August 23, 2013, 05:45:25 pm
Do you know if your using a ARM or AVR setup? Better yet, post your full code in the proper code tags, # above the smiley faces.
1080  Using Arduino / Project Guidance / Re: Design lego car via arduino controller on: August 22, 2013, 01:10:18 pm
An Arduino of your choice, a motor shield (keep in mind how many motors you will be running), and some way to send and receive commands.

An UNO is what everyone starts with, but depending on how many motors you will be controlling, and whether or not you need to control speed, you may need a mega. However, if you a good motor shield, then a UNO can control up to 6 motors with speed control.
Pages: 1 ... 70 71 [72] 73 74 ... 196