Go to advanced search

by messinwu
Mon Sep 17, 2012 1:03 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: ADXL345 Accelerometer
Replies: 51
Views: 30099

Re: ADXL345 Accelerometer

Personally, I couldn't get the driver to function at all. Maybe it's the distro I'm using, not sure. I ended up just using a C program (earlier in this thread) to get data from the sensor.
by messinwu
Wed Sep 12, 2012 4:29 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: HMC5883L 3-Axis Compass
Replies: 14
Views: 14920

Re: HMC5883L 3-Axis Compass

jkp - Thanks! I guess of all the combing through I did with the datasheet, I missed that! As I mentioned, I did clone the ADXL345 code, which actually produced output almost right away as-is, but you're right, that should be swapped. I'll do that, and change the variable type and see what I get. If ...
by messinwu
Tue Sep 11, 2012 11:57 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: HMC5883L 3-Axis Compass
Replies: 14
Views: 14920

HMC5883L 3-Axis Compass

Hey everyone I'm very new to programming, and I mostly know how to adapt from example. So, I'm pulling my hair out trying to get the HMC5883L to work with the Pi. Since it has 3 axis's and uses the first 6 byes from the output just like the ADXL345 accelerometer, I started out by cloning most of the...
by messinwu
Mon Sep 10, 2012 6:15 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: C Code for using BMP085 with Raspberry Pi
Replies: 9
Views: 16355

C Code for using BMP085 with Raspberry Pi

I realize there's already the "Adafruit" way of interfacing with the BMP085 sensor, but I wasn't able to get that to work, and I think it's because it uses python-smbus and that's not available with Arch Linux for some reason, and I got tired of trying to figure out how to convert a DEB (seemingly t...
by messinwu
Sat Aug 18, 2012 4:14 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: ADXL345 Accelerometer
Replies: 51
Views: 30099

Re: ADXL345 Accelerometer

Yeah I think I know what you mean, you're trying to keep something level with movement utilizing the ADXL345's measurements as it's moving... no?
by messinwu
Sat Aug 18, 2012 2:18 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: ADXL345 Accelerometer
Replies: 51
Views: 30099

Re: ADXL345 Accelerometer

That sounds really interesting, I think it should work for what you're talking about, based on my observations of what other people have done with this sensor. Be sure to post when you get it going, please!
by messinwu
Sat Aug 18, 2012 1:48 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: ADXL345 Accelerometer
Replies: 51
Views: 30099

Re: ADXL345 Accelerometer

Oops, by 'script' I meant your C code you posted, I'm trying to tweak it to utilize the other features of the ADXL345. Apparently, there is a register to turn on the activity/inactivity detection, then I'm supposing it generates a value on another register when such is detected. There's also thresho...
by messinwu
Sat Aug 18, 2012 12:58 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: ADXL345 Accelerometer
Replies: 51
Views: 30099

Re: ADXL345 Accelerometer

Joan - your code works great! I had to remove the bit about the other device since currently I only have one device on I2C, but thank you!! Would you be able to offer any hints about determining free fall, activity or inactivity? I see the register values in the datasheet, but I'm new to C programmi...
by messinwu
Fri Aug 17, 2012 11:19 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: ADXL345 Accelerometer
Replies: 51
Views: 30099

Re: ADXL345 Accelerometer

Thanks Joan! Actually, I finally got somewhere late last night, after figuring out that you need to connect the CS pin to 3.3v as well as connecting the VIN (? i think that's what it's labeled, the obvious one) to 3.3v to put the module in I2C mode. Then, I was able to send the 0-16-8 values to turn...
by messinwu
Thu Aug 16, 2012 11:10 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: ADXL345 Accelerometer
Replies: 51
Views: 30099

Re: ADXL345 Accelerometer

I guess this thread is about a month old, but I wanted to chime in and say that I'm attempting to get this chip working as well. I've not been successful yet though. I don't really know what I'm doing I guess. I tried with I2C, but i2c-detect -y 0 found nothing. Every time I tried to initiate the de...
by messinwu
Wed Aug 15, 2012 1:00 am
Forum: Other projects
Topic: Relay connected to GPIO pin
Replies: 7
Views: 4613

Re: Relay connected to GPIO pin

Awesome advice! Thanks everyone!! I'll post some pics after I get it done. Unfortunately, work is keeping me too busy at the moment, so it'll be a few days, this weekend at latest.

Thanks again!!
by messinwu
Tue Aug 14, 2012 11:03 am
Forum: Other projects
Topic: Relay connected to GPIO pin
Replies: 7
Views: 4613

Re: Relay connected to GPIO pin

Thanks guys! Actually, I'm not just trying to switch an LED on and off, I'm switching something else on and off using the relay, but I'd just like an LED to indicate activity or not. So, the suggestion by mahjongg to put it over the coil connections sounds like the best solution. However, I then hav...
by messinwu
Mon Aug 13, 2012 2:01 pm
Forum: Other projects
Topic: Relay connected to GPIO pin
Replies: 7
Views: 4613

Relay connected to GPIO pin

Hey everyone I'm very new to electronics, and very interested in learning. I found this article: http://www.susa.net/wordpress/2012/06/raspberry-pi-relay-using-gpio/ ... and decided to get the stuff from Radio Shack and yesterday after a failed attempt due to misunderstanding of the relay posts, I d...
by messinwu
Mon Aug 13, 2012 1:31 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Additional TTL on I2C or SPI?
Replies: 11
Views: 8830

Re: Additional TTL on I2C or SPI?

Thank you SO MUCH for clearing this issue up, finally! Now I can move on to other methods. Anyone hear of anybody getting SoftwareSerial working on the Pi? It's traditionally an Arduino library, but I'm sure it could be ported to the Pi. I just don't have the knowledge to do so, I have a feeling it ...
by messinwu
Thu Aug 09, 2012 6:00 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Additional TTL on I2C or SPI?
Replies: 11
Views: 8830

Re: Additional TTL on I2C or SPI?

Ahh, gotcha. Here's a link which originally got me thinking about the allegedly available 2nd serial port: http://lavalink.com/2012/04/more-on-raspberry-pi-serial-ports/ They go into lots of detail regarding the capabilities of the supposed second serial port available on the Pi, but stop short of e...
by messinwu
Thu Aug 09, 2012 11:45 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Additional TTL on I2C or SPI?
Replies: 11
Views: 8830

Re: Additional TTL on I2C or SPI?

Thank you, but I've already dealt with that on the Mini-UART pins 14 and 15 and have /dev/ttyAMA0 working properly already with an adapter module as mentioned in my initial post. I'm trying to make an additional serial interface work using alternate pins. The GPS unit does use 5v, but why couldn't I...
by messinwu
Wed Aug 08, 2012 1:41 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Additional TTL on I2C or SPI?
Replies: 11
Views: 8830

Additional TTL on I2C or SPI?

Hey everyone, I'm a newbie with electronics, kind of. I've already got a MAX3232 set up on the "Mini-UART" pins to provide me /dev/ttyAMA0 serial port, which I'm going to use to communicate with a radio modem, and it's working well. However, I'd like to avoid using the USB ports as much as possible ...

Go to advanced search