Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 12
61  Using Arduino / Project Guidance / Re: Multiple Gyro Sensors on: October 25, 2012, 10:55:41 am
Sorry for being a noob.

So how many gyroscopes could I have on a Arduino Mega 2560?

Wait, I think I get is now. I can connect the sensors in parallel along the same wires like this: (not really parallel but you get what i mean)

(Taken from: )

Then I can get the data from each sensor as long as they have a unique address.

Am I correct?

Am I correct?

I... think, your showing them using I2C to get their data, which I personally haven't played with, but as I understand, yes you hook them up in parallel like that and then depending on their addresses, you can tell them what to do with the arduino. SO that should work fine (unless your near teslacoils ofcourse) Should probably just grab 1 of your chosen gyros first (heck you might be able to get a sample if you ask nicely enough) and get it working, then start chipping away at adding more. But like I said before, your probably going to want a 3.3v arduino rather then a standard 5V one, because even though your powering the chips from your 3.3V pin, the pulses of data on your I2C bus will still be sending data up to 5 V which can break your gyros.
62  Using Arduino / Project Guidance / Re: Multiple Gyro Sensors on: October 24, 2012, 03:11:32 pm

So I connect those make of gyroscope into Digital. Thank you for the information.

Not specifically a digital but the SPI, which uses 4 wires to talk. Then needs a chip select line for each chip you want to talk to. Note you can only talk to 1 chip at a time, though you might only need to for a fraction of a second

How about power? From what I can tell there doesn't seem to be more than one power output and I plan to use multiple sensors.
well your gonna need around 3V for the chips, so with a regular arduino you might burn them out unless you do somethign to cut out the 5V of the arduino. An arduino pro though they make a 3.3v model (that means the digital pins run at 3.3V) that would be perfect

Also, for straight powering. even though theres only 1 3V pin on an arduino. all the Vin's on your gyro will hook into that. Ill use
as an example, since its a similar unit to what you want.

all the VCCs on the gyro (in this case on the breakout board) will go to 3 volts on the arduino to power the chip up itself.
All the GNDs on the gyro will go to the arduino's ground.
SCL is the Serial Clock, which connects to one of the SPI pins (read this about SPI
Same with SDA and SDO (the data lines, they also correspond to the MOSI and MISO lines talked about in the SPI reference. More on that later
The CS pin is chip select. When this is pulled to ground, it allows data to go between the chip and the arduino

The last 2 spots on the board I linked are for the other interface you could use called I2C. I have avoided using that however so I can't help you use that at all.
63  Using Arduino / Project Guidance / Re: Getting started with Arduino: Figure 5-7 on: October 24, 2012, 12:50:53 pm
A 7805 is a voltage regulator, not a mosfet. Completely different things -- you've got the wrong part.
Hehe, I made that mistake too when i started, cause the things look exactly then same as some mosfets. Then I started doing a big V in sharpie on the voltage regs i bought cause i know im still probably gonna grab one without thinking sometime.
64  Using Arduino / Project Guidance / Re: Firework Launch System. on: October 24, 2012, 12:13:14 pm
Not that it'll be much help. I will say that menu systems can be a bit annoying (lotsa if then statements)

As far as your LCD dispaly, It might help to mention what kind you're gonna try. Theres several pretty easy ones Is quite easy to use. though you might have trouble putting your whole menu system on it.

For this you could probably do somethign like this


as 1 screen, (the > before ground would be the indicator you move around to choose). Then say after picking ground. It clears the screen and does somethign like this.

***Ground Menu***
>Ground Group 1
Ground Group 2
Ground Group 3

Then picking Group 1

***Ground Group 1***
Ready To Fire? (Displays, then when clickign yes the next line)
**ARMED** (holds here until fire is pressed, then shows next line for a couple seconds)
**FIRE!!** (Shows for a couple seconds, then brings back to the ground menu or something)

Oh yeha you said you have a mega, this will be very important, but never tell the thing to try and display !!!, theres somethign wrong with the 3! that causes a problem with the code, Hence why I only put 2 of them after FIRE

My worthless 2 cents though. I can give you a bit of a sample of a previous menu code that i had for a datalogger project before to show you my (albiet inefficient way) of navigating menu screens.
65  Using Arduino / Project Guidance / Re: USB HID Joystick on: October 24, 2012, 10:56:36 am

Before post this topic i found a looot of stuff for HID joystick but then i realised that i dont know basic things.

I already tried the UnoJoy project, (13 buttons 2 axis) and it worked for me but ONLY for the FIRST time that i connect duino in a USB port,then stopped working! i tried another port, it worked and then stop again! dont know why!

Sadly I don't know either. Before yesterday I'd never looked up unojoy. So sorry can't help jsut yet. This weekend when I get soem time to sit at my workbench at home and tinker I'll try to be more helpful.

i also found a guide to extend Unojoy to 30 buttons by modifing USB descriptors, reports etc but i dont know how to make my final custom firmware to flash the bootloader.

Could you link the guide? I searched a sec and found this thing

i use arduino IDE but i think that this software doesnt create .hex files. Any suggestions ?

On a side note, I've always had a problem with my megas, that if I unplug them while they're trying to communicate with the computer (has been especially noticeable when I try to program 1 a couple times in a row while tweaking my program, and then opening the comp port each time) And I'd need to shut the arduino IDE off all the way. Don't really think this is what your problem would be though.

Don't know, sorry I can't be more help. I know I'll have some free time this weekend to assault some of my projects that have been building up, and will be able to spend some time peeking at unojoy, but I might be able to find some time tonight if I get out of work early.
66  Using Arduino / Project Guidance / Re: USB HID Joystick on: October 23, 2012, 02:56:06 pm
52 buttons and 16 axis. Thats gonna be pretty intense man. (heck i have a steel battalion controller that i wired to arduino, and thats only got like 9 axes, and like 40 buttons) Though that didnt get plugged into a PC.

A far as getting your joystick and button readings, those are pretty straightforward
Might be a bit helpful if you haven't played with a joystick yet.
These guys have made a library that will let an arduino act as a USB controller to plug into a PC. I haven't messed with it (though it looks like I'm going to this weekend) and will probably be about what your looking for. As far as having all those switches is concerned. You might wanna start with maybe 2 axis, and like 6 buttons. Then add more as you get them all working, and make sure they work on your computer.

Edit: Now that i look at their page a bt more and how they get the program to work. i think it might not work on a mega since they're redoing some of the code in the bootloader with the intent of it being on an uno. Though depending on what your doing. You might not need more then an uno, if you get creative.
67  Using Arduino / Project Guidance / Re: Comparing data on: October 23, 2012, 02:42:49 pm
On the reading bike wheel revolutions, your probably not going to be able to choose to do it once every 5 turns. More like once per turn with some kind of Hall effect sensor. Or more if you have an encoder. Recording data to an SD card is easy enough with the SD library. Easy enough to just write the current time, and number of revolutions so far, to the SD card as comma delineated, or tab delineated (programs like excel can recognize the comma and tab formatting as a spreadsheet and open them).

As far as comparing the 2 times of your previous rides with the current one on the arduino, while your riding... i guess its doable, but id say you want to get some of your data, and results into excel to work before going too far ahead of yourself.
68  Using Arduino / Project Guidance / Re: What do I need? on: October 23, 2012, 02:33:53 pm
Uno is probably enough. On the note of things you need. If you just want to read and display the temps, youd need 4 thermocouples and the 20X4 screen (they're easy to work with. Figure what, each line is 1 of the tanks?) And getting some thermocouples or thermistors(id personally go with, they're cheap and expendible, and the circuit is a good starter project for someone just trying electronics. Though they might not be as accurate as a thermocouple) And getting the arduino to just register temperature accurately is probably a good start for you.

Controlling the temperature on the other hand though. That would require probably some relays to control whatever heating or cooling system you have.
Though you should probably spend some money on an arduino starter pack of some sort with some sensors, LEDs, throw in some transistors or small relays. That way you could know your good enough at making the arduino read data, adn trigger things before going and spending more money. And heck, you might learn something more then you are planning on now.

edit, no problem Far Seeker. Now he has the websites to get his stuff too.
69  Products / Arduino Due / Re: 3.3V inputs & outputs on: October 23, 2012, 10:12:10 am
I think this document should be sited in a sticky post on this section of the forum:-
It is all about different techniques for translating 3V3 and 5V.

Hmm, this is a good read, it really should be stickyed
70  Products / Arduino Due / Floating Point Math? on: October 23, 2012, 10:07:13 am
Hey, so saw this came out, too bad I can't get one for a while. Oh well.

So was wondering though. So I know that floating point math is murder on a regular arduino. And that lack of speed with FP math can cause some problems if people want quickly updating things thats doing a bit of math with angles and whatnot.

So its nice enough that the due is just over 5x faster. But the 32bit processor, does anyone know how much better it would fair doing large amounts of FP? (got this little GPS based project working around in the brain. Lotsa angle math to do, and not just on the lattitude and longitude)

71  Using Arduino / Project Guidance / Re: Motherboard USB ports on: October 03, 2012, 09:43:54 am
I'm planning on using the exact current harddrive with all existing software for the new equipment. I've changed out stuff while using same HDs several times before, my only need will be the driver to the new graphics card. that should negate my need of a new driver. And also I'm pretty sure that the things been running on a windows update driver for a few years anyway from when I wiped the machine to put Win7 on.

but so each of those is actually 2 USB ports. Well thats good then, thanks for your help.
72  Using Arduino / Project Guidance / *solved* Motherboard USB ports on: October 02, 2012, 08:26:02 pm
Umm hey, sorry this might be a tadbit random for arduino things (though it is a bit relevant).

So well I've been plottign on upgrading my particular comptuer cause I've had the thing for about 6 years now and shes really showing her age.
So I specced out a new motherboard, processor, some new ram (have more then enough powersupply and all for everything else). Just I started to take apart my current comp to check about the "integrated wireless adaptor" that it has (to see if there might be any way to make it work for the new motherboard).

So upon taking the computer apart, I'm sitting here lookign at about a 3 in long PCboard strip. Has a wire leading out of it to a connector on teh case where I attach the antenna. Then the other end has a 4pin connector that goes to a bank of 4pin polarized (though the header on the wire has no polarization) male headers marked USB 3-6. (note they are actually 5 pin headers missing 1 pin on one end).

I started lookign for these on the new motherboard in hopes that I might not have to buy another wifi adaptor, or have to solder a USB connector onto this one and have this ugly wire sticking out the back of my computer.

On the board though there are several 10 pin (rows 5 and 4 with space on end) connectors marked USB34, USB56, USB78, USB910. Now IIRC USB 3.0 uses a 9pin interface (4 for compatibility with existing USB, and the 5 for the new stuff). So would it work if I were to stick my wireless stick's "usb" plug into one of those connectors, following the same 4 wires connected, with the 1 space overhang?

Sorry I realise its not really an arduino question per se, though it might have some utility for anyone who reads this (I'm personally thinking, I might end up hooking an external HD or 2 into those and then loading them in one of the 3.5in bays so I can just pull them out at will, but they won't be strewn across my desk like they can end up being now)
73  Using Arduino / Project Guidance / Re: 4 digit 7 segment display on: July 27, 2012, 12:45:10 pm
this happened on a display of mine after i put a lower then needed resistor on one of the pins, and it messed up the internals of the display (no externally visible damage though).

Another thing is you should maybe check the high low reqs for the display. you might just be telling it to turn on and off the wrong pins
74  Using Arduino / Project Guidance / Re: USB Rocket launcher? on: July 20, 2012, 02:06:18 pm
iight. just checkin
75  Using Arduino / Project Guidance / USB Rocket launcher? *answered* on: July 20, 2012, 01:25:32 pm
So hey, I've been thinkign for years that cause im stupid i'v wanted one of thee USB nerf dart launchers that they sell. like this one

Then came thinking, hey what if i wanted to try and control this thing with an arduino. make it so that when a person walks in a room, and trips an IR sensor in an area. itll open fire on them (then lulz ensue). What im wondering. I know I could probably open the thing up, and control the launcher and motors to aim it directly off the arduino, bypassing the USB controller it probably has (haven't got it yet). But say i wanted to keep it intact. since this thing is slaved to your computer, would that mean id need a USB host shield to drive it?
Pages: 1 ... 3 4 [5] 6 7 ... 12