Show Posts
Pages: 1 ... 32 33 [34] 35 36 ... 324
496  Using Arduino / General Electronics / Re: Arduino UNO- connecitng more than one sensor on: August 20, 2014, 10:22:06 am
how would the echo lines and the trigger work in this situation?

I would think, same as before, each on a pair of Arduino i/o pins....  you would hook the -ve of the external source to the sensors and to the Arduino ground so that the echo and trigger have a reference.

edit... pic attached. Ignore the fact that the symbols are for 2-pin dip switches, first one with 4 pins that I found in Eagle. Made a symbol for an HC-SR04.

more edit... and of course in the sketch you just assign more pins, like trig1 trig2 echo1 echo2 etc and do your writes, pulsein etc on those pins just like before and have distance1 distance2 and so on.
497  Using Arduino / General Electronics / Re: I'm total noob pleasehelp (transistor) on: August 20, 2014, 09:42:17 am
Have to get me one a them triple-sixes
498  Using Arduino / Installation & Troubleshooting / Re: L led of my arduino board is continuously blinking!! on: August 20, 2014, 09:23:08 am
the prob is that the arduino is not searchable by the computer. im using windows 8. is thier a driver problem???

No idea: I'm on W7Pro. Maybe search the site?
499  Using Arduino / General Electronics / Re: Transistor & MOSFET's are so complicated on: August 20, 2014, 09:07:20 am
I find this a useful site; in particular, the transistor page may help you with choosing- there's a table there about half way down.

Here is a page from another site, showing how to use a transistor to switch a load like a motor. This site gets my vote for the best photos and cool schematics....

BTW, not to be pedantic, but MOSFETs are transistors, that's what the "T" stands for.
500  Using Arduino / Installation & Troubleshooting / Re: L led of my arduino board is continuously blinking!! on: August 20, 2014, 08:45:54 am
Before upload, be sure to select correct board and com-port.

Yep... you need to go look in Windows' Control Panel > Device Manager > Ports and see which port Windows thinks your Arduino is on, then go to the Arduino IDE Tools > Serial port and see if it has the same opinion  smiley-cool
501  Using Arduino / General Electronics / Re: Arduino UNO- connecitng more than one sensor on: August 20, 2014, 08:10:34 am
so, give them their own power (ie not supply power from Arduino 5V pin),and then the trigger and echo lines are on the Arduino.

502  Using Arduino / Project Guidance / Re: searching for a cheap economical solenoid valve for water applications on: August 20, 2014, 07:53:13 am
Something you may also wish to check is the minimum operating pressure.

Washing machine valves do not work often when the pressure drops below a few psi.

Yeah I was going to say much the same thing. The way I understand it is, the solenoid doesn't actually hold the valve open- it merely unlocks it, so that the water pressure opens it. Very much like a turnstyle; it unlocks, but you still have to push through. So it takes a certain force to push the unlocked valve open.
503  Using Arduino / Programming Questions / Re: Arduino Xbee flex sensors to servo motor communication problems on: August 20, 2014, 07:48:08 am
So what was the problem with println?- the CR/LF after the data screwing it up?
504  Using Arduino / Programming Questions / Re: Arduino Xbee flex sensors to servo motor communication problems on: August 20, 2014, 06:42:29 am
I don't know anything about xbee, but how are you making sure that the correct message arrives at the receiving end? Rather than drive a servo, I'd suggest you do something really mundane, like turn a led on or off..... That should help you isolate the problem
505  Using Arduino / Displays / Re: 0.96'' OLED Stopped Working on: August 20, 2014, 06:08:31 am
According to the  specs :

Quote
5V.This pin outputs a regulated 5V from the regulator on the board.
506  Using Arduino / Programming Questions / Re: Changing the name of a library on: August 20, 2014, 03:15:41 am
For good measure I did a replace-all in both files.

But I realise that could have caused a problem, since the name of the library is also usually the name of the class inside I think. In my case I lucked onto experimenting with Bounce2, and the names inside are just Bounce not Bounce2 so I didn't do bad.
507  Using Arduino / Programming Questions / Re: Changing the name of a library on: August 20, 2014, 03:11:18 am
Thanks- since I posted I experimented, and went with changing the folder name, the cpp and h file names and the include in the cpp. For good measure I did a replace-all in both files.

Changed my sketch to call the new library, and it compiles error-free. Not tested it yet.

So yep it does seem very simple!
508  Using Arduino / Displays / Re: 0.96'' OLED Stopped Working on: August 20, 2014, 02:39:22 am
Those work with 3.3V and 5V.

Are you sure? I know adafruit's AF931 works on 5V not just 3V3, but that's because they have level shifting on board. The OP's one might not have that luxury.....
509  Using Arduino / Programming Questions / Changing the name of a library on: August 20, 2014, 02:04:58 am
It's very possible that there are different libraries with the same name, written by diferent authors for similar but not necessarily identical purposes. It's likely that there are lots of libraries called Time for example, or Timer, or whatever.

If I get hold of a library but it has the same name as one I already have installed, what do I have to change if I want the new one to be jimTimer and keep the original as Timer, say? I'm doubt it's not as simple as changing the folder names and those of the .cpp and .h files. Is there anything under the hood? And if so, is it safe just to do a general find / replace and change Timer (or whatever) to jimTimer?
510  Using Arduino / Programming Questions / Re: Servos not working/responding, on: August 20, 2014, 01:23:02 am
Quote
I was afraid of that answer :/ oh well, is there any way i can avoid this?
No.  Servos, particularly when they are used to drive a robot (by the way, they are not then technically servos but motors with speed control) take a large current, so a substantial power supply is needed.

And here's a pic of how they should be wired  smiley-cool

Forum wisdom is to allow 1A per servo, btw.
Pages: 1 ... 32 33 [34] 35 36 ... 324