Show Posts
Pages: [1]
1  Using Arduino / Sensors / Re: Arduino Uno SPI Accelerometer Code Issue on: May 03, 2014, 08:03:05 pm
The problem that you are having results from settings in the CTRL1 and CTRL4 registers.
There's an ap note (AN3308) on the ST site. here's a link that might work

You have to set the Lpen and HR bits correctly after you start up the chip by setting  the ODR bits.
Lpen is in the CTRL1 register and HR is in the CTRL4 register.
It seems there are only two legit settings for these bits
Lpen   HR
  1           0    Low Power Mode
  0          1     Normal Mode

any other settings of these bits will cause the output to glitch. It looks like, when incorrectly set, only one of each data register is filled.
The ApNote has some other juicy bits in it that I'm just digging into...

Hope that helps smiley
2  Using Arduino / Installation & Troubleshooting / Re: Arduino1.0 and SoftwareSerial Library Example on: February 11, 2012, 01:17:13 pm
looks like a baud rate problem. is it consistent?
the buffer is 64 bytes, you are receiving 150+.
What do you get when you buffer the overflow flag?
3  Forum 2005-2010 (read only) / Syntax & Programs / Re: Typecasting or rounding off... on: June 12, 2010, 09:39:52 pm
got it, thanks.
4  Forum 2005-2010 (read only) / Interfacing / Re: code: interfacing a chipcorder isd1760 on: April 25, 2008, 02:24:50 pm
i'm developing a prototype for presentation using the winbond ESD17240. trying to access my audio using the 'stand alone' setting (push-buttons) was causing undesirable delays. i'm determined to get the SPI working, and your code postings are great in concert with the SPI examples on the arduino site. thanks!
my application will require asking for PLAY_PTR and REC_PTR positions. looks like i'll be able to take saturday off this week!
by the way, i've worked with the winbond chips numerous times and have nothing but good results. great documentation on their website and very helpful reps. (shocking, i know!)
5  Forum 2005-2010 (read only) / Interfacing / Re: Garage door, getting the position on: July 03, 2010, 12:01:10 am
jumping on late here, but what about a simple limit switch at either end of the garage door 'swing'. if the arduino starts up from BOR or POR and does not see either 'all the way open' or 'all the way closed', it will monitor or ignore sensor input until it gets the shut/open signal. then it can start taking reliable readings. You would need two digital pins dedicated to 'open' and 'shut'.

love the idea of the tape measure! I will use that in future!
6  Forum 2005-2010 (read only) / Bar Sport / Re: Required reading in electronics on: January 03, 2007, 07:32:22 pm
I've never gone wrong with Sherz's "Practical Electronics for Inventors". It's out in a new edition, with lots more theory than anyone could possibly swallow, unless you're going for a Phd. I recently upgraded to the second edition myself, and have found more than a couple of typos... but it's still a great resource.

Pages: [1]