Show Posts
|
|
Pages: [1] 2 3
|
|
1
|
Using Arduino / Sensors / Cheap optical flow sensor for odometry
|
on: February 27, 2013, 01:53:58 pm
|
Does anyone know where you can find a cheap downward-facing optical flow sensor for measuring odometry on a general-purpose mobile robot? I've read a few stories of people using hacked optical mice, but these don't usually work well since the lenses are designed to be used within a few millimeters of a very flat surface. The paper Outdoor Downward-facing Optical Flow Odometry with Commodity Sensors uses this technique in an outdoor domain by using multiple optical mouse sensors fitted with custom lenses to work on varying terrain. However, I can't find anyone who's selling these sensors. I've used OpenCV's optical flow code to effectively function as an optical mouse sensor using a commodity webcam. Has anyone tried this approach on a mobile robot, or are aware of any pitfalls? Are there alternative solutions?
|
|
|
|
|
3
|
Using Arduino / Programming Questions / Re: Covert String to Integer
|
on: February 24, 2013, 12:00:22 pm
|
Is there anyway to convert a String instance (not a character array!) Why are you NOT using a char array? Do you really need the crutch? Why are you? I like making my life simpler, not more difficult. Do you really want to worry about buffer overflows? People really need to ditch C and join the 21st century. Object orientation is here to stay.
|
|
|
|
|
5
|
Using Arduino / Programming Questions / Covert String to Integer
|
on: February 23, 2013, 10:44:22 pm
|
|
Is there anyway to convert a String instance (not a character array!) directly to an unsigned integer? All the examples I've found use functions like atoi() which require a character array...which seems to defeat the point of using the String class if I still have to convert it back to a character array every time I need to parse it.
|
|
|
|
|
7
|
Using Arduino / Programming Questions / Differences between Arduino Mega schematic and example program
|
on: February 23, 2013, 07:55:56 am
|
I'm playing around with an Arduino Mega 2560 (SainSmart manufacture), and I'm confused by a disparity between the schematic and the standard example "Blink" program. The schematic indicates the built-in LED is on PB7/pin 26. However, the Blink example uses pin 13. I've confirmed the LED is indeed on pin 13, but changing the pin number and re-uploading the Blink program, confirming it doesn't blink, reverting it to pin 13, re-uploading, and confirming it blinks. This is frustrating, because now I can't trust the schematic for predicting which pins I should use. Why does the actual device have a different pinout than the official schematic? Is SainSmart mis-wiring their version of the board or am I missing something?
|
|
|
|
|
8
|
Using Arduino / Motors, Mechanics, and Power / Bypassing the onboard Arduino Voltage Regulator
|
on: January 31, 2013, 09:16:31 pm
|
I'm trying to design a standalone Arduino Mega + Lipo device, but I'm finding this difficult as nearly all Lipo batteries (and Lipo riders) only handle 3.7V input and provide 5V regulated output, while the Arduino's onboard regulator requires 7V input to give the AVR it's regulated 5V. If I wanted to use a Lipo rider that provided a 5V regulated ouput (e.g. this), how difficult would it be to bypass the 5V regulator on the Arduino Mega? I'd like to simply wire two lipo riders in series for an ideal 7V supply, but all the advice I've heard recommends against that due to concerns with charging difficulty.
|
|
|
|
|
9
|
Using Arduino / Programming Questions / Re: Efficiently polling arduino sensors over USB from host
|
on: January 31, 2013, 08:29:30 pm
|
If you really want it quick, wouldn't it be both simpler and preferable to accept a data stream over USB rather than poll a buffer? That way you minimise the operations and ensure the information is coming as fast as the Arduiono can send it.
You can use "if no change do next" conditions to determine what is sent.
Yes, of course. I wasn't sure if this was possible. Thanks.
|
|
|
|
|
10
|
Using Arduino / Programming Questions / Efficiently polling arduino sensors over USB from host
|
on: January 31, 2013, 06:15:25 pm
|
|
What's the best way to program an arduino so its sensors can be quickly polled over USB?
I have a small project with a few dozen on/off contact sensors and a half-dozen analog sensors that I want to be able to quickly relay value changes to a "host" computer. It's a mobile platform, so I'd like the system to be as close to real-time as possible.
My thinking is to use a pull-method by adding any sensor that's changed since the last polling to a special buffer, and when the host polls the arduino, send it the most recent values in the buffer and then clear it.
Is there a more efficient push-method, where the arduino can notify the host of sensor changes?
|
|
|
|
|
11
|
Using Arduino / Motors, Mechanics, and Power / Re: 5V to 12V output
|
on: January 29, 2013, 03:58:19 pm
|
|
Yes, you'll probably want to look at a high-current mosfet transisitor, like those used to drive motors. You could wire the extra supply to a mosfet's source, and then wire an arduino pin to the mosfet's gate to turn it "on" and "off".
You could try wiring that together yourself, but if you're unfamiliar with soldering custom electronics, I would suggest you look at one of the high-power motor control arduino shields.
|
|
|
|
|
12
|
Using Arduino / Motors, Mechanics, and Power / Re: 5V to 12V output
|
on: January 29, 2013, 02:18:09 pm
|
No, I want to use my arduino to power a 12V converter which convertes to 220V  if possible WITHOUT anything like a battery and just need to turn on/off it. By "use my arduino to power" do you mean using your arduino's regulated power supply, or using the output of one of the arduino's pins to feed into the 12V converter? Is your arduino connected to a battery or a wall source?
|
|
|
|
|
14
|
Using Arduino / Motors, Mechanics, and Power / Wiring Single-Cell Lipo Chargers in Series
|
on: January 29, 2013, 12:33:29 pm
|
Can you wire the "load" outputs on two single-cell lipo chargers (e.g. this or this or this) in series, to get a larger voltage that's still safe and easy to recharge? I understand the dangers of wiring and charging the lipo batteries themselves in series. If the cells become unbalanced, then one of the cells could potentially explode or burst into flame. This is probably why so few online stores sell multi-cell chargers for embedded applications... However, is there still a danger will when it's chargers, and not the batteries, that are wired in series? Shouldn't the voltage regulators on these chargers, and the separate charging circuitry, effectively balance the cells when charging and discharging? This question is related to an earlier question.
|
|
|
|
|