Show Posts
Pages: 1 2 3 [4] 5 6 ... 285
46  Using Arduino / Programming Questions / Re: Servos not working/responding, on: August 19, 2014, 03:36:02 pm
all power is in one line on a breadboard going back to the 5v pin.
If that is not causing the present problem then it will cause others in the future.  The Arduino voltage regulator is simply not up to the job of powering 2 servos used as drive motors.  At the best the servos will move erratically and the Arduino may reset as the servos draw current and cause the 5V rail voltage to drop.  This is exacerbated if the power source is not up to the job, such as using a PP3 9V battery.  At worst the current drawn by the servos will burn out the Arduino power regulator.

Use an external power source for the servos such as 4 AA batteries with a common ground.
47  Using Arduino / Programming Questions / Re: how can I have more than 6 alarms using TimeAlarms library on: August 19, 2014, 11:26:11 am
Have you read the readme that comes with TimeAlarms ?
It explains how to expand the number of alarms that can be set and the amount of memory needed.
48  Using Arduino / Programming Questions / Re: SD.begin breaks function on: August 19, 2014, 02:55:26 am
SD.begin() begins use of the SPI bus which uses pins 11, 12 and 13 on most Arduino boards, so pin 13 cannot be used as an output when SPI is in use.
49  Using Arduino / Programming Questions / Re: Arduino Twitter 'Ethernetn Client' Issue on: August 19, 2014, 01:17:39 am
It looks like you need to import the Ethernet library into your program
50  Using Arduino / Programming Questions / Re: Issue with a very simple library on: August 18, 2014, 04:45:15 am
my library is called Sim908.
It is in folder
Which folder is the libraries folder in ?
51  Using Arduino / Programming Questions / Re: Solved : count pulses with timer1 or timer2 on: August 18, 2014, 04:24:06 am
   delay(tiempo); // Sin esto no funciona
Can you explain what this is for as the comment says that it does not work ?
52  Using Arduino / Programming Questions / Re: Code Error on: August 18, 2014, 02:38:26 am
Does the term EthernetClient appear anywhere in the code ?
Seeing the full error message would be more helpful ?
53  Using Arduino / Programming Questions / Re: OrangeRX used for sending data files on: August 17, 2014, 04:22:01 am
Is the Orange device that you provided a picture of a transmitter or a receiver ?
I am familiar with Orange RC receivers and you can get Orange modules to fit in FrSky transmitters.  Can you provide a link to the device pictured ?
54  Using Arduino / Programming Questions / Re: count pulses with timer1 or timer2 on: August 17, 2014, 03:00:13 am
You are generating the pulses so you can count them by incrementing a variable as each one is produced.
As to the time taken to produce 300 pulses, save micros() before you start generating the pulses and save it again when the pulse counter reaches 300.  Take the start value from the end value and that is the elapsed time.

This sounds dreadfully simple.  Post your current program here for more help.
55  Using Arduino / Programming Questions / Re: Function dtostrf() on: August 17, 2014, 01:34:48 am
I do not understand the Function dtostrf () Please explain.
What is it that you do not understand ?  Have you tried to use it and got unexpected results ?
56  Using Arduino / Programming Questions / Re: skaarhoj ATEM arduino Control Code on: August 16, 2014, 12:25:24 pm
I know nothing about the library that you are using or how it works, but this
looks very much like it waits for 5 seconds during which time it will not respond to any input.  If that is the case then no wonder
sometimes it takes a few seconds to respond, sometime it is instant.

What is the delay there for ?
57  Using Arduino / Programming Questions / Re: Push Buttons not working as expected to toggle RGB LED on and off. on: August 16, 2014, 05:19:43 am
    if (purpleCounter % 2 == 0) {
    if (redCounter % 2 == 0) {
Both of these can't be true because they use the same output values for two different colours.
58  Using Arduino / Programming Questions / Re: PC Shutdown/Startup controller on: August 15, 2014, 11:29:38 am
Put it in the loop() function.  You said that you intended to keep the Arduino running, which may not be a great idea due to battery drain.  If the Arduino is not to be kept running then I don't see the need for it anyway.  Just use a toggle switch to power the PC on/off.  Either way, how are you going to deal with shutting down the PC nicely rather than simply turning it off when commanded ?
59  Using Arduino / Programming Questions / Re: a little help more like a lot on: August 15, 2014, 11:23:57 am
iPodInfoSystem_v03_redo:154: error: 'class AdvancedRemote' has no member named 'setup'
Have you got any examples of code using AdvancedRemote.setup() ?  If not then why do you believe that it exists and should be used ?  There is no setup() function in AdvancedRemote.h so it is no surprise that your program will not compile.

It is possible that more than one version of the library exists or that there are two or more different libraries with the same name.
60  Using Arduino / Programming Questions / Re: Controlling LED's with Trackbar in VS on: August 15, 2014, 08:30:51 am
I am just trying to get this first slider to work and know that it is working correctly then I was thinking about adding another two sliders for the RGB.
If that is the case then I would strongly advise that you proceed each of the individual RGB values with an identifier so that on the Arduino you can spilt the serial input and adjust the appropriate R, G or B value.  So, the Arduino logic becomes
if serial input is available
  read a byte
  if the byte is R, G or B
    read the next byte when it is available
    call a function to adjust R, G or B output passing the colour identifier and byte value as parameters
  end if
end if
Using that logic will allow you to send the R, G or B value only when it changes and for the Arduino to react to the changes.  That way the serial traffic is much reduced compared with constantly sending the 3 values and the colour identifier allows the Arduino to get back in step if some serial data is missed or corrupted.

In your test code
    *int red = Serial.parseInt();
    int green = Serial.parseInt();
    int blue = Serial.parseInt();
why is the red value a pointer and the green and blue ones not ?
Pages: 1 2 3 [4] 5 6 ... 285