Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
You will use more memory and generally get a slightly worse performance when you use classes.
Of course it highly depends on your specific implementation and difference might be from practically zero to quite a lot.
Unless you do some bad programming (use a lot of small classes, use often...
I saw your other question...
At least the datasheet you provided doesn't show what data should be sent over SPI. It only shows the general singal constrains like transmit speed etc.
You should search for a datasheet with list of registers and their functions, so you can do something like...
So this accelerometer will work fine and it's quite easy to interface (just set few registers and then keep reading out the data :-) )
I'm a bit doubtfull if you will achieve 0.02degree accuracy even with very good calibration...
Hi DatsAbk,
You didn't write what range of acceleration you need?
For this kind of operation the only precise and cheap accelerometer I know is the BMA180. You will get this sensitivity with a +/- 1.5g range.
I have got a shop - www.robodudes.com - and I have got both the chips and a ready to...
I would advise you to try ADXL345. You can use SPI mode which is very easy to use without special hardware on any GPIOs.
If you need the chip or a "ready to go" module with 2,54mm pinout you can check my shop Robodudes .
Why don't you use SPI?
You can connect all three devices to one SPI bus and just use the chip-select input to point which device you're working with atm.
My shop has got analog devices and ST accelerometers and ST gyroscopes available for EU customers. Usually all devices are in stock all the time.
For Accelerometers you can get:
-**broken link removed** 3axis analog +/-3.3g accelerometer also available soldered - **broken link removed**...
If you leave input without anything connected you can't conclude if it's in high (1) or low (0) state.
You have to use a resistor to pull it up to VCC or pull down to GND.
You can use the internal pullip resistor (PORTx to "1" for specific bit when pin is in input mode) to keep a pin connected...
Hi Miguel,
What do you mean as accuracy?
Generally gyroscopes have got several accuracy errors.
First is the zero-rate level. It usually drifts a bit over time and with temperature.
Second is the sensitivity which changes over time, temperature and might be influenced by acceleration.
Third is...
Bluetooth in visible mode still eats a lot of juice. 40mA is possible.
it's 40mAh if the current is 40mA for an hour. Batteries should include both voltage and mAh (Ah) rating. Check out ni-mh or li-ion/poly accumulators as they usually have this data.
You just use the 8bit stream and read/write 4 bytes at a time or use 16bit and read/write 2*16bits=4 bytes. You don't need "32bit SPI". It will work fine.
sensiron
Don't use the hardware spi.
Simply do it by hand - you need to connect data to one pin and clk to another pin (any general i/o pins will do).
Now just send appropriate commands like:
1.set/reset data bit
2.change clk pin
3.change clk pin
4.repeat 1 untill command is send
Few lines of...
I don't understand your description exactly, but it seems like a form of waveform encoding... read up on it if you're interested.
And it's Huffman encoding
take an amperometer, set it to the highest current measurement (like 10A minimum, no idea what engine you have there) , connect motor to your battery via amperometer and check current when motor is stalled (ie you are holding it tight so it can't rotate). This is your worst case current (it can...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.