Show Posts
Pages: 1 ... 331 332 [333] 334 335 ... 377
4981  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: arduino and underwater Rov on: April 13, 2010, 06:51:52 pm
Quote
that junk probably could make it 70 feet on stretched out coat hangers


When I was kid, me and friend stretched about 50 feet of various cable - phone cable and speaker wire, mainly - from one side of his house to his room so he could have cable TV (we didn't have any coax). We ended up stapling and taping it up along walls, ceilings, and floors; it worked great for several months until his mom got a real installer to come out and hook him up right.

 smiley-wink
4982  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: arduino and underwater Rov on: April 13, 2010, 06:15:17 pm
Quote
that hack a day link I pointed out was doing ntsc upto around 70 feet without external amplification

Were they using impedance matching baluns, though? They sell these for security camera installations, and 70 feet seem like on the low end...?
4983  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: arduino and underwater Rov on: April 13, 2010, 01:16:58 am
If you plan to use cat5, use cat5 with stranded core wires, not solid core; the flexing otherwise over time will break the wires. Stranded core will last longer, but even it will fail given enough time. As far as video is concerned, you can get interface baluns to impedance match 75-ohm coax (with composite video) with cat5 (it will only take up another pair). Another possibility (if you have the power capability at the ROV end) is to use the Arduino as a motor/servo/sensor interface, and connect it to a small networked single-board computer (like a BeagleBoard or similar), hook the ethernet pairs up, and a web/ip cam, and use ethernet for everything; controls, sensors, camera, the whole nine yards. There's probably enough pairs left over to set up power-over-ethernet (though I am not sure what the current limits would be).

 smiley
4984  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Some Basic DC Motor Questions on: April 12, 2010, 04:19:41 pm
Quote
If I could find my post I'd link it.

Here ya go!

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1266736603

 smiley
4985  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Duemilanove for SW control? on: April 12, 2010, 12:17:47 pm
The answer to your question is "yes"; as long as within your application you can abide by the limits of the USB serial speed and such (and the limitations of the Arduino hardware, as Paul noted).

If you need a speedier interface (faster than USB serial), there are other options available there, too (Ethernet or WiFi, Bluetooth). Most applications do fine with USB serial.

You can set up the Arduino to control many things, but if you need a fully embedded solution, then develop the application using the Arduino, then set up a "standalone" version of the Arduino on your custom PCB as the "embedded" version (unless this is a "one-off" standalone application, where you're not going to need to make multiples of the device - then just embed the entire Arduino if your hardware enclosure has the space).

 smiley
4986  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Coffee Level Sensor on: April 06, 2010, 12:22:47 pm
If you used a small linear CMOS sensor array on one side of the coffee pot, and a light on the other side (maybe a linear array of LEDs), you could detect the change in light levels between "no coffee" (lots of light) and "coffee" (little light, depending on the brew strength); the problem would be finding such a sensor and then interfacing to it?

How accurate does it need to be? Maybe a linear array of phototransistors or LDRs on one side, and a linear array of LEDs on the other side? Such an arrangement could give you at least "full", "half-full", and "refill" levels...

 smiley
4987  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Help a Noob, win a prize (note, no prizes!) on: April 07, 2010, 11:29:27 am
Yeah - you could do it a number of ways, but the simplest would be to just send the communications down the USB serial link, then the Arduino would interpret them from there and perform whatever action you want (closing relays or activating a transistor/mosfet to simulate the "joystick" move).
4988  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: off chip data storage on: April 06, 2010, 03:31:29 pm
Quote
I ordered a cheap external EEPROM, i think for now i will settle for just storing critical coordinates, instead of the whole matrix

A particular method to keep in mind (if most of the area you are mapping is considered "empty") is the concept of "sparse arrays":

http://en.wikipedia.org/wiki/Sparse_array

There are tons of techniques out there to "pack" what seems to be an amazing amount of data into a very small space - two of the best areas to learn about these techniques are from the game programming and demo coder worlds (especially those demos optimized for very small memory footprints; you would be floored by what can be done in 256 bytes).

Also, a review of certain "large" computer games from the 1970s and 1980s might be beneficial; many of these games (especially the larger scope turn-based and real-time strategy games) used fairly interesting techniques to pack their "worlds" (analogous to your maps) in small areas (aka, floppies) - granted, floppies have more space than you have available (most generally), but the techniques could be helpful.

 smiley
4989  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Can Pololu Micro Maestro drive brushed DC motors? on: April 05, 2010, 04:18:37 pm
gbulmer

Your points are taken; I learn a lot here everyday - I suppose no matter how you look at it, if Pololu's Orangutan controller meets the needs, then you likely can't get much cheaper; it does seem to be everything I mentioned, minus the higher current capabilities (and I suppose even there you could potentially chain a higher current h-bridge to the one on-board, kinda like some of the homebrew "super servos" I have seen that wire a larger h-bridge to a servo's h-bridge to control a larger motor).

As far as what I was speaking of brushless motors; you would simply use an R/C ESC with reverse to run it. Since such ESCs use standard servo PWM for control, you wire it up like you would a servo, use the Servo library, and send "180" to turn one direction, and "0" for the other. I wasn't meaning to imply that you would control the brushless motor directly with the Arduino; while possible, it certainly isn't something for a beginner (and why do it at all - short of for learning sake - since there are off-the-shelf ESCs available to do it for you).

 smiley
4990  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Can Pololu Micro Maestro drive brushed DC motors? on: April 05, 2010, 12:38:45 pm
Quote
thanks for the nuance

You want inexpensive, you want all-in-one, you want low space requirements, and you want Arduino compatibility (I think); sometimes the only answer to all of this is a custom-built controller, and there's nothing wrong with that.

If you think you'll only ever need to control two small DC motors (which may be the case - you don't say), then using an Orangutan controller might be best.

If, however, you want to control more DC motors, or larger DC motors, then you'll either have to custom-build your own h-bridge drivers, or purchase such driver controls - note that it might actually be cheaper, at least for larger motors, to use R/C ESCs with reverse, coupled to brushless DC motors instead (brushed DC motor controller can get expensive quickly, especially for very large motors, such as those used for wheelchairs and motorized scooters - if you want a real heart attack, check out the prices of DC motor controllers for electric vehicles!).

I have not seen such a device as a combined DC motor controller and servo controller on a single board (maybe you might find such a thing from a combat robotics supplier?); the nice thing about Pololu's offerings is that most of their products can be daisy-chained on a single serial control bus, so you can easily interface a ton of them with the Arduino (or any other microcontroller). This could make future expansion or upgrades easier in the future.

Hmm - there's another option: you could be the first to make such a "shield" for the Arduino; a board that used an ATMega328 communicating via serial (or I2C, or SPI) to the host, which could tell the module to either output a HIGH or LOW on a pin (for h-bridge control), or PWM (for servo control) - the user would then supply their servos or h-bridges as needed (bonus would also be to add analog input monitoring, so you could easily build custom "large motor" servos, using such things like windshield wiper motors and potentiometers).

Just some thoughts...

 smiley
4991  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Can Pololu Micro Maestro drive brushed DC motors? on: April 05, 2010, 12:07:59 pm
Cheapest of all might be to protoboard up a custom controller yourself with a pre-bootloaded 328, and use an FTDI breakout or cable to upload, the Servo library to run your servos, and then custom build your h-bridge drivers (IC or discreet transistor/mosfet based) for your DC motors (should only require 2 pins per motor; use a shift-register if you need more outputs).

 smiley
4992  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Can I control two servos simultaneously? on: April 01, 2010, 04:48:59 pm
Quote
My interest is stimulated by low-cost robot arms. I have one, but it is so low-cost it isn't servo's but just DC motors, so I will have to build all of the position encoding and feedback myself.

OWI Flex?

I've been thinking about picking one up myself for S&Gs; maybe set things up to detect limits via current monitoring. Part of me wants to hook one up to my Color Computer.

What's been stopping me (besides a ton of other projects in the queue) has been thoughts of re-creating a lightweight, low-cost version of the Armdroid arm, using foamcore or coroplast for the "body" of the arm, and adapting standard servos in some manner to allow their use at the base of the arm (so the arm doesn't have to move as much mass in the form of servos, which I think of as a step backward from the old arms of the 1980's - then again, servos are lighter and stronger, so maybe not?).

As a kid, I always wanted a robot arm for my computer; the closest I got was getting a Tomy Armatron for my birthday. Later I picked up a Popular Electronics magazine that described how to hook it up to a C=64 or Vic-20 (lots of hardware mods for that); I didn't understand anything about the electronics or hardware mods at the time, but it was a fascinating article that I kept around (and later scanned and put online - I need to put that back up on my website, now that I think about it).

By the time I had the knowledge and tools to do it, I can't bring myself to mod either of my Armatrons (I have two now; my original Tomy version, and a Radio Shack version), mainly because of fears that 10 years down the line I will find out I have "destroyed" something valuable on the collectors market (I collect Tomy robots). Even so, I may still snatch up a Radio Shack version for such crude hacking (I even have the motors used in the article; they were an item Radio Shack sold, and I bought 8 of them in two packs of four for future use).

Well, enough reminiscing...

 smiley
4993  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: 24v into arduino on: April 01, 2010, 01:45:21 am
Quote
I just put 24v directly into my aruidno through pin 12 to ground (I realize I'm a idiot).

You're only an idiot if you said to yourself prior to doing it "gee, I wonder what would happen if I did this!", without researching anything...

Now, if you accidentally grabbed the wrong wire and stuck it in, or an alligator clip popped loose and shorted with another trace, or something like that, then you're not an idiot; unlucky, maybe.

Chalk it up to experience; to prevent this from happening in the future, try to build test rigs that work at the level of VCC (LEDs are your friends). Also, don't apply power or have power near your project until you have verified all connections (live power supply leads should -never- be just "lying around").

As far as your board is concerned: remove the dead bug, and inspect the socket and its solder joints carefully. Inspect the rest of the board carefully; look for burnt parts, scorch marks, bulged capacitors, etc; signs of other damage. Verify continuity between the pins on the socket and the pins on the headers. Give it a good check over. Look at the reference schematic for the board, and measure the output voltages when you apply USB vs external power (measure before and after the regulator). Verify that you have voltage from the USB port. Once you have all that done, then try plugging in another ATMega with bootloader. Power it up initially with the USB port, and verify that all looks OK. Then upload the Blink sketch, and hope everything is wonderful still...

Good luck!

 smiley
4994  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Servo "Chirping" on: March 31, 2010, 12:58:44 am
In the Servo.h file, located in /libraries/Servo, there are a couple of parameters you can play with; stick with your "simple attach" example as you adjust the parameters, then try your regular code.

In this file, the parameters are:

Code:
#define DEFAULT_PULSE_WIDTH  1500     // default pulse width when servo is attached
#define REFRESH_INTERVAL    20000     // minumim time to refresh servos in microseconds

I would first try lowering the REFRESH_INTERVAL to something like 19500 or 19000; I am not sure how low you can go, but if you don't notice any changes by 15000, revert it back to 20000, and try changing the DEFAULT_PULSE_WIDTH - by making it a little wider (increase the value) or narrower (decrease the value). I have a feeling your "dead band" is a little smaller than what the library is set up for; I am not sure why you can't change this with the attach command, but it isn't set up that way (you can only change the minimum and maximum pulse widths)?

Make a backup of the file (just in case), then use a text editor to alter the file and re-save it, then re-upload/compile your sketch in the Arduino IDE.

Hope this helps!

 smiley
4995  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Looking for some input for school related work on: March 26, 2010, 12:19:26 am
Simple desktop rover robot:

1. Arduino
2. Two continuous rotation servos
3. Two 4-cell AA battery holders (one for the Arduino, the other for the servos)
4. Ping Pong ball (caster "wheel" for body)
5. One or Two Sharp IR sensors
6. Foam Core board (for body, wheels, etc)
7. Double stick tape and/or Hot glue
8. Various hookup wire

I think you can see how this would be put together; it would make an interesting educational kit (cheap, too) for such a class. There would be a bit of mechanical engineering involved (building the robot itself, figuring out where to mount the sensors, etc), electronics (hooking everything up properly to the Arduino), plus tons of programming (simple moving, to "turtle graphics" by mounting a pen on it and drawing on butcher paper, to solving problems like a simple maze - and if you had enough of them built by a full class, you could try complex swarm-based systems and such).
Pages: 1 ... 331 332 [333] 334 335 ... 377