
MovieMaker
USA
Asked
— Edited
It was hard to get the compass installed because of the short length of wires. But, I finally did it. Now, the Compass works. But, when I change directions or if it is on for about 5 to 10 seconds , after giving me directions, it disconnects the wireless from the EZ board.
weird, do you think I need some pullup or down resistors? Is this what is happening. do you have these resistors built into the EZB or do we have to add them?
mel
Good News!!! I placed a pullup resistor from signal to +5 on both signal lines. It has been working flawlessly for 30 minutes now. I am so happy because it is a neat program. Now, I was wondering about set and reset. I understand what the offset is.
Nice! What ohm resistors did you use?
The two 10K ohm resistors did the trick. it has worked for over 2 hours. And, it is pretty accurate on directions. It is Fun to play with.
:-)
Is it possible connect different devices to I2C? Lets say I want to connect a gyroscope and a compass, Can both be connected to the same I2C bus?
You are supposed to be able to connect many devices in parallel with two signal wires and supply them with vcc and ground.
Isn't the limit 254 or something like that
Wow,thats quite a lot actually. Im not sure, Im going to just think out loud here for a bit..
I want my Robot to keep itself leveled. But I get confused about wether to use a tilt sensor, a gyroscope or accelerometer, theres even 9 dof inertial measurment units that include both gyro and accelerometers. I would also like to give it a sense of direction and have thought about trying to connect a compass, but I only have so many ports. Some compasses have built in accelerometers for tilt compensation for the compass. So the sky is basically the limit for how complex and advanced I want it to be...heck It may even be possible to use a GPS system just to give it bearing on north or south etc. but its not like its going to travel the world or even go beyond my garage, and still I only have so many ports.
In theory I could use the I2C header to connect on there whatever and however many I want to connect to it but I have no experience with I2C. Im sure I can make the appropriate connections between the header and the various devices but how am I going to control it? Espescially when theres several different devices hooked up to it. I can get my hands on amazing little sensors and things but if I have no idea how to work with and translate the data and values of these devices, should I even go there? I can understand analog connections but I only have 4 available analog ports, the other 4 are taken by pressure sensors under the feet.
So I can hook up a basic 2 or 3 axis analog gyroscope on ADC to keep it leveled. I can probably figure out how to use the signals from an analog device and use that within ARC to control the servo's in some way. And maybe the Z axis of a Gyroscope can function as a means of giving it direction, isnt that possible? If not then I will need a compass. I do not want to use the Serial I/O ports because the few I have left are reserved for ultrasonic ping sensors. But with I2C Im guessing its not like I can just open up an ADC window within ARC to see a range of values as the data that comes out. I have no clue what kind of data to expect, how to read let alone control it, or even what to do with it.
umm, Im just trying to get a realistic idea of the options that I have. The question I suppose Im wondering about is to what level will using I2C devices require coding experience? Will I need to have a general understanding of VB or C+ coding languages?
DJ keeps hinting about something called EZBit its an addon and could be what you need but we don't know yet?