Show Posts
Pages: 1 2 3 [4] 5 6 ... 9
46  Forum 2005-2010 (read only) / Syntax & Programs / Re: newb help request.  How best to construct this? on: November 05, 2010, 10:06:27 pm
Dude, Just try to wirite it. First look at a real sketch like the blink example: http://www.arduino.cc/en/Tutorial/Blink

Make sure you can run the sketch. Trust me, it will be fun. Play with the sketch and run again (like change how fast it blnks.)

Add some print statements like when you turn the led on or off, Serial.println("led on"); The print statements allow you to see easilly what the program is doing. Look up: http://arduino.cc/en/Serial/Print

Now that you have learned a little Arduino programming, Add a few lines at a time to the blink example (and save under a new name) to get it to do what you want.
47  Forum 2005-2010 (read only) / Interfacing / Re: grid based navigation using ultrasonic sensor on: October 09, 2010, 10:32:19 pm
Please post if you make any progress. I'm going to try too, as it sounds so interesting. It will probably take me a couple weeks to get bluetooth and a beacon working.

Wireless, a beacon and a touch sensor seem like a good way to start. The wireless lets you monitor progress remotely, graph it with processing and do calculations on your PC. The homing beacon allows the bot to home every few minutes to a known position. Homing provides feedback for correcting the bots dead reckoning and improving the maps, i.e. it allows it's navigation to be self correcting.
48  Forum 2005-2010 (read only) / Interfacing / Re: grid based navigation using ultrasonic sensor on: October 08, 2010, 01:20:33 pm
I've been thinking about doing this too.

Object detection with wheel encoders seem like the place to start. At least you could map a room with good floors (no slippage).

Ultrasound is only good for object detection or avoidance. Touch sensors are probably needed too. Like what if the bot gets stuck behind a 1" high wall? The ultrasound may not be needed, but your mechanical/sensor design needs robust object detection. It could be just big bumpers front and back with touch sensors. Stall detection would be a good idea too.

For distance measurements, you could use dead reckoning. For example, full power on all motors for 2 seconds equals 2 feet. But the first improvement here is wheel encoders. They will give you accurate distance regardless of hill climbing or battery power. They do not detect slipage.

The next step would be an infrared homing beacon, because it is simple and cheap. This will help correct for slippage.

Now your bot can move around, bang in to things and find its way home.

For software, buld the map as you move. I was actually thinking of doing it on my pc in processing via bluetooth because it would be easier to figure out what was happening. You could start with a black screen with the word home in the center. As the bot moves, it marks its path in white and obstacles in red.
49  Forum 2005-2010 (read only) / Interfacing / Re: Upload Sketch from Processing? on: November 05, 2010, 03:03:41 pm
That's right.

Remote procedure calls is a big area in more sophisticated systems, but you don't expect them in systems like these. They can be very difficult to use.

And I'm glad you have all your teeth!
50  Forum 2005-2010 (read only) / Interfacing / Re: Upload Sketch from Processing? on: November 04, 2010, 10:30:10 pm
I hope this is what you are looking for, but I'm having trouble understanding.

You can create a processing sketch and an arduino sketch that talk to each other, but no where do they exchange code.

For example, the processing sketch could control the arduino by sending commands. The processing sketch could display icons like 'go forward' or 'stop'. When a mouse click is detected on either icon, processing sends to arduino over the serial connection a 'g' or a 's'. The arduino receives the command over the serial connection and based on a switch statement calls either the goForward() or stop() methods.

Configuration could be done the same way. Just define a bunch of commands in the arduino for setting configuration variables and have processing send them.
51  Forum 2005-2010 (read only) / Interfacing / Re: Autonomous robot's navigation on: November 04, 2010, 10:10:16 pm
Can you describe the image processing hardware? Is it all done on the bot?
52  Forum 2005-2010 (read only) / Interfacing / Re: How to control the Arduino with MATLAB in realtime on: October 08, 2010, 02:08:05 pm
Quote
A better question would be: how does one afford MATLAB????

If you are in college, it's like $130.
53  Forum 2005-2010 (read only) / Troubleshooting / Re: Loose Fitting Ardweeny on: September 20, 2010, 09:23:46 pm
Yes, it hard to locate the right stuff on Mouser. I try to stay with just a few vendors so I don't get completely killed on s/h. Like just ordering a couple of the very nice looking sockets from Jameco will end up being like $10 and reorders will be the same. I probably should try DigiKey to see how fast UPS ground gets to nyc.

The Ardweeny comes loose often. I hope the socket works. I'm also adding a low power led for my second battery. It's a no brainer as long as there is a free a/d and bread board space. The bot (just tank treads and IR now) needs to be reliable before adding navigation and wireless.

Thanks again for the advice.
54  Forum 2005-2010 (read only) / Troubleshooting / Re: Loose Fitting Ardweeny on: September 16, 2010, 12:50:35 pm
Do either of these from Mouser look ok:
http://ph.mouser.com/ProductDetail/Tyco-Electronics-AMP/1-390262-2/?qs=sGAEpiMZZMs%2fSh%2fkjph1tvt1%2fmEPT%2fXoQ0CnX1SPc98%3d
http://ph.mouser.com/ProductDetail/Tyco-Electronics-AMP/1-390261-9/?qs=sGAEpiMZZMs%2fSh%2fkjph1tvt1%2fmEPT%2fXo7eKgqaeaqYE%3d

They don't have the same look as the one from Jameco. I'm not sure what machined means.
55  Forum 2005-2010 (read only) / Troubleshooting / Re: Loose Fitting Ardweeny on: September 15, 2010, 11:09:18 pm
Thanks Dave,

I'll try the socket.

I love Italian. They can even make electronics sound sexy like Duemilanove. Ardweeny sounds like it was named by a five-year-old boy.
56  Forum 2005-2010 (read only) / Troubleshooting / Loose Fitting Ardweeny on: September 15, 2010, 06:56:07 am
Has anyone had trouble with their Ardweeny not seating well in a breadboard?

I added a thick rubber band that helps a bit. The leverage from the cable   (when connected to USB) seems to pull up one side.

This is the bread board: http://www.allelectronics.com/make-a-store/item/PB-400/SOLDERLESS-BREADBOARD-400-CONTACTS//1.html

Has anyone had similar troubles? How did you solve it?
57  Forum 2005-2010 (read only) / Troubleshooting / Re: capacitors for controlling DC motors? on: September 15, 2010, 08:55:22 am
For the same gearbox, I built an h-bridge then switched to this board http://www.solarbotics.com/products/k_smd/.

I switched to save bread board space. The separate pcb for each motor is more elegant, though pricey.

You might consider it, if your wiring gets unwieldy.

58  Forum 2005-2010 (read only) / Troubleshooting / Re: greyed serial port on: June 11, 2010, 09:29:22 pm
Are you saying from the Arduino IDE menu, when you select Tools, Serial Port, all the choices are grayed out?

For windows 7, 64 bit, download and install http://www.ftdichip.com/Drivers/VCP.htm

I had windows 7, 64 bit, so I'm not sure if this applies to the 32 bit version. I recall installing the drivers under windows XP and mac OS X too.
59  Forum 2005-2010 (read only) / Troubleshooting / Download problem with Ardweeny on: May 20, 2010, 11:32:16 am
I got this with my Ardweeny:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

It would happen with both Mac and PC (w/System 7 Home Premium).

It was fixed by removing the Ardweeny from the breadboard  smiley

This kit involves soldering pin strips to the ATmega328 pins. I guess the stretch from the breadboard broke some connections. I'm not sure what else it could be as the breadboard had no other connections.

Also, I had to install the FTDI drivers on System 7. This seems to only be required by some System 7 users. In programing environment, no serial ports were listed. Under Device Manager, Ports (COM & LPT), it should list USB Serial Port (COM3 or some other port). Right clicking on USB Serial Port should say it is working properly. If it shows up under another heading and right-clicking says no driver installed, then driver installation is required.

60  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino Duemilanove with Vista can't Upload Sketch on: February 03, 2009, 10:09:10 pm
Not exactly.

I have a diecimila, a duemilanove, and a spare AVR.

diecimila - works
duemilanove - can't upload
duemilanove with spare AVR - can't upload
----
Since diecimila works, failure is probably due to duemilanove incompatibility or duemilanove hardware failure.
----
If RX and TX lights are controlled by FTDI chip, then FTDI chip failure sounds likely.
-----
MProg hung. Couldn't kill from task manager. Vista !#$@s
Drivers installed in November. Have reinstalled before.
Maybe its FTDI. Maybe its Vista. Maybe its driver.
AdaFruit says they will replace board.
Time to let it go.  >smiley-sad
Thanks for the help westfw. smiley-wink
Pages: 1 2 3 [4] 5 6 ... 9