Show Posts
Pages: [1] 2 3 ... 7
1  Using Arduino / General Electronics / Re: Car battery/alternator supply to 5V regulator- capacitors? on: May 19, 2014, 10:09:33 am
Thanks so much guys!  I really appreciate it.
2  Using Arduino / General Electronics / Car battery/alternator supply to 5V regulator- capacitors? on: May 19, 2014, 08:53:41 am
I finally got my project working.  It uses an ATTiny85 to move an actuator in my truck.  I'm using a motor driver to switch 12V from my battery/alternator.  I also want to power the electronics from the car battery/alternator.

I picked up a 5V regulator from Radio Shack ( http://www.radioshack.com/product/index.jsp?productId=2062599 ) and was just going to use that, but I've seen several schematics online where capacitors are used ( http://www.instructables.com/id/5v-Regulator ).  Should I add capacitors to the regulator?  I'm a little confused of their purpose. 

Thanks.
3  Using Arduino / Project Guidance / Re: Hardware or software? Should be simple... on: May 08, 2014, 12:38:38 pm
No, I got zero volts because pin 10 was dead.  I have it on two different pins with the exact same code and now I get 12V one way and -12V the other, just as I should.
4  Using Arduino / Project Guidance / Re: Hardware or software? Should be simple... on: May 08, 2014, 12:31:28 pm
Here you go, from the datasheet of the H-Bridge:
5  Using Arduino / Project Guidance / Re: Hardware or software? Should be simple... on: May 08, 2014, 12:14:31 pm
I find it hard to believe that it works at all, or ever has! and my not suprised that to have blown a pin and I think you about to kill a second one.

First provide a link to the accuator you are using.

Second provide a circuit diagram.

Normally when using an h-bridge the two pins are speed which you set using analogwrite and direction which is a simple digitalWrite.

Mark

Not sure I follow you.  H-bridge IC is TLE5206

http://www.infineon.com/dgdl/TLE5206-2_DS_11%5B1%5D.pdf?folderId=db3a30431b3e89eb011bb632994f065b&fileId=db3a30431f848401011fc753a71779a7&ack=t

The 12V never sees the UNO, the UNO is powered by my USB cable.  The 5206 uses two input pins and PWM to determine speed.  Polarity determines direction.  I do not have any resistors in the circuit.  Is that why the pin blew (I figured it was because of my clumsy fingers with the multimeter probe)?

Here is a really bad schematic:
6  Using Arduino / Project Guidance / Re: Hardware or software? Should be simple... on: May 08, 2014, 11:56:07 am


Which part of this is unexpected?

Pin 10 is opposite, so if 9 is high or 255, it puts out 5 V and 10 is ground.  IF 9 is low or 0, pin 10 is high (5V).  That's how the H-bridge reverses the motor. 

It works now.  I just used different pins. 
7  Using Arduino / Project Guidance / Re: Hardware or software? Should be simple... on: May 08, 2014, 11:48:29 am
HMM.   Apparently pin 10 on my UNO is bad.  I didn't know you could blow out just one pin.  I put it on pin 8 and 9 and did digitalWrite for both ways and it worked well.
8  Using Arduino / Project Guidance / Re: Hardware or software? Should be simple... on: May 08, 2014, 11:36:26 am
I even changed the code to digitalWrite (9,HIGH) and digitalWrite (9,LOW) and there is no difference.   With pin 9 HIGH, 12V,  with pin 9 LOW, zero V.



EDIT:  something weird happened.  I pulled the wire to pin 10 and suddenly I'm getting -12V (and the actuator extended), and then zero volts (actuator stays extended). 
9  Using Arduino / Project Guidance / Hardware or software? Should be simple... on: May 08, 2014, 11:26:00 am
Having issues with my actuator and my UNO again today.  

Sending a simple PWM to my TLE5206 H-bridge.  It worked yesterday, so I'm thinking it is a hardware issue, but thought I'd run it by you guys first.

Simple code- pins 9 and 10 are the "IN" pins on the H-bridge IC.  The code simply cycles the actuator back and forth.

I put a meter on the output pins of the H-bridge.  When the software is in the "RETRACT IN" mode, I get 12V from the H-Bridge output as I should, but when the software gets to "EXTEND OUT", zero voltage.   Any ideas??  Thanks.

Code:
void loop() {
  
  analogWrite(9,255);        //RETRACT IN SECTION
  analogWrite(10,150);  
  delay(10000);
 
  analogWrite(9,0);             //EXTEND OUT SECTION
  analogWrite(10,150);
   delay(10000);
}
10  Using Arduino / Sensors / Re: Should I use a capacitor to tame the readings? on: May 07, 2014, 11:31:18 am
I could, yes.  I just thought that maybe it would be better to use a CAP.  But as I said, I'm a noob pretty much, so i thought I'd ask.
11  Using Arduino / Project Guidance / Re: H Bridge PWM issue on: May 07, 2014, 11:13:24 am
Makes sense.  Thanks.  I was doing the opposite in the case of retracting the actuator. 
12  Using Arduino / Sensors / Should I use a capacitor to tame the readings? on: May 07, 2014, 11:08:51 am
I'm a noob, so sorry for the question.  I'm using a Mesmic 2125 (I think), which is an analog G sensor.  Range is 0 to 3G.  It is very sensative, and the readings from it jump around quite a bit if you do so much as look at it sideways.  Can I use an electrolytic capacitor to calm it down?  Maybe the better question is, SHOULD I use a elect cap to calm it down?  I want it to give quick readings, but not jump around so much.  I have a 100uf cap sitting on my desk here, but I want to consult with you guys before I blow it up---  I mean, before I include it in my circuit... 
13  Using Arduino / Project Guidance / Re: H Bridge PWM issue on: May 07, 2014, 10:55:40 am
Works perfectly.  Thanks guys!
14  Using Arduino / Project Guidance / Re: H Bridge PWM issue on: May 07, 2014, 10:35:01 am
I'm using the Uno, but I plan to use an ATtiny85 eventually.

So I need to change the pins you think?  That would explain it.


Will 9 and 10 work then?  (I guess I'll find out shortly..)
15  Using Arduino / Project Guidance / Re: H Bridge PWM issue on: May 07, 2014, 10:23:21 am
Will do.  sorry about that.
Pages: [1] 2 3 ... 7