Show Posts
Pages: 1 2 [3] 4 5 ... 203
31  Using Arduino / Motors, Mechanics, and Power / Re: Can't read high on PWM pin. on: August 20, 2014, 06:27:05 am
Quote
....shunt resistor on positive rail of Bridge controller). The motor works @ 12V so I use a resistor divider to lower

If you have a shunt resistor in the positive path to the load,    then the voltage between the two ends of the shunt resistor is going to be proportional to the current flowing through it.

Using a resistor divider to lower the voltage to the 5V level is not straightforward,   and the "obvious" way won't work.
32  Using Arduino / Motors, Mechanics, and Power / Re: Power an e300 Electric Razor Scooter from an AC Source? on: August 20, 2014, 06:24:38 am
So,  you plan to drag the cable around with you ?
33  Using Arduino / Sensors / Re: Vehicle Detection Sensor- Any Recommendation?? on: August 19, 2014, 10:35:35 am
For a driveway,  the easiest might be an IR beam-interruption scheme.
34  Using Arduino / Programming Questions / Re: Memory problems, sd card stored arrays ... on: August 19, 2014, 10:32:26 am
Why do you think it would be difficult to relocate your project to a Mega ?    Should take about 4 minutes.
35  Using Arduino / Project Guidance / Re: Outputting String (object, not an array of characters ) to LCD on: August 19, 2014, 10:28:19 am
You can only send an object from one device to another,  if both devices know what to do with the object.
36  Using Arduino / Sensors / Re: Reading Honda MAP sensor without adverse affects? on: August 18, 2014, 08:58:31 am
The analog input of the arduino should have fairly high impedance and should not interfere with the circuit between the sensor and the ECU.

It somewhat surprises me that this works off 5V and not 12V.

How are you supplying the arduino ?

Is there a  common ground between the arduino and the ecu 5V systems ?
37  Using Arduino / Sensors / Re: Detecting a seed dropping through a plastic tube on: August 18, 2014, 08:53:26 am
How do the seeds get into this tube ?

The ones I have seen have a small wheel device feeding them in.

I'd be inclined to abandon the idea of trying to see them in the tube,    and instead consider counting the turns of the small wheel.

38  Using Arduino / Project Guidance / Re: Reading multiple encoders using SPI on: August 18, 2014, 08:44:15 am
These encoders don't communicate using SPI.

They output 1/0 pulses,  1024 per rpm,   and you have to count the pulses.    Interrupts are usually used to do this.    For 16 encoders,  you might require a different approach.

Why would you need 16 encoders on a motor ?   One encoder should be sufficient.
39  Using Arduino / Project Guidance / Re: problems with 5 volt relay module on: August 18, 2014, 08:38:12 am
Your relay problem might be related to your input button logic or wiring issues, such as debouncing.

You need to consider these issues separately.

write another sketch with no button in it,   just the relay.

Like this.

Code:
const int relaypin = 9 ;

bool state=false ;

void setup()
{
pinMode( relaypin, OUTPUT );
}

void loop()
{
    if ( !state )
    {
        state=true ;
        digitalWrite( relaypin, HIGH );
       delay(1000);
   }
   else
    {
      state=false ;
      digitalWrite( relaypin, LOW );
      delay(1000) ;
    }
}

This will try to turn the relay on and off each second.

You can worry about debugging and debouncing your button circuit, separately.
40  Using Arduino / Sensors / Re: Reading Honda MAP sensor without adverse affects? on: August 17, 2014, 11:51:18 am
what answer do you get when the analog voltage results in gearSensor = 550 ?
41  Using Arduino / Programming Questions / Re: FSM diagrams: states and transistions on: August 17, 2014, 11:35:23 am
You can have any convention you like.

If you take the view that the boxes represent the "states",   and the arrows represent the "transitions",     then if you want to label what the actual action is that is taken to transfer from one state to the next,   you have to have captions floating around the picture awkwardly next to the arrows,   as the example in the preceding post shows.

On the other hand,   if you have more of a "flowchart" mindset,   it is the actions or steps of the process which go inside the boxes.   You can use different shapes of box to indicate actions,   final or intermediate endpoints ( "states" ),    and also different boxes for branches.



42  Using Arduino / Motors, Mechanics, and Power / Re: dc motors without arduino motor shield on: August 17, 2014, 05:17:13 am
Not sure exactly what you mean by "alkaline 9V",    it is probably like the other one,  has several tiny batteries in one package  and cannot supply large current.
43  Using Arduino / Sensors / Re: Difficulty Interfacing "High Accuracy Dual Axis Inclinometer TOY0048" on: August 16, 2014, 09:57:41 am
It does tell you,  however,  that the device uses SPI  (  and not I2c,  or analog,  or serial,  or pulses ).

That's better than no information at all.
44  Using Arduino / Sensors / Re: MPU 6050 i2cWrite failed: 2 on: August 15, 2014, 09:25:57 am
You should check very carefully whether the MPU 6050 requires the "stop" or "repeat start" condition.

Unlike freescale devices,  the MPU6050  works with the default setting for Wire,  not the unusual setting.
45  Using Arduino / Sensors / Re: Interfacing ADIS 16210/PCBZ with Arduino on: August 15, 2014, 09:22:23 am
Is google broken in your country ?

http://www.analog.com/static/imported-files/data_sheets/ADIS16210.pdf
Pages: 1 2 [3] 4 5 ... 203