Using Baro sensor with USBDroid - SCL/SDA spots

The USBDroid provides USB Host functionality for use as an Android peripheral as an Open Android Development Kit board. [Product page]
Post Reply
Agent
Posts: 4
Joined: Tue Jul 01, 2014 1:09 pm

Using Baro sensor with USBDroid - SCL/SDA spots

Post by Agent » Fri Jan 09, 2015 2:22 pm

The UNO has SCL/SDA spots to connect a baro sensor, whereas a USBdroid lacks these, and having a look at the SimpleBaro code, it doesn't specify how it uses these SCL/SDA spots. I don't know a whole lot about serial communications, but is there a way I can get a baro readout using the digital pins somehow? If so, how do I specify which pins it ought to use?

I've not had a lot of experience with these up to this point, and I haven't been able to find any useful tutorials regarding baro/USBdroid integration.

andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: Using Baro sensor with USBDroid - SCL/SDA spots

Post by andrew » Fri Jan 09, 2015 11:05 pm

With the USBdroid use A4 for SDA and A5 for SCL.

Agent
Posts: 4
Joined: Tue Jul 01, 2014 1:09 pm

Re: Using Baro sensor with USBDroid - SCL/SDA spots

Post by Agent » Mon Jan 12, 2015 1:35 am

Thanks John, I was able to make it work using A4 and A5.

Can they be mapped to other output pins to free up A4 and A5 for another sensor, or are they fixed?

andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: Using Baro sensor with USBDroid - SCL/SDA spots

Post by andrew » Mon Jan 12, 2015 3:27 am

Agent wrote:Thanks John, I was able to make it work using A4 and A5.

Can they be mapped to other output pins to free up A4 and A5 for another sensor, or are they fixed?
Afraid they're fixed.
cheers
john

Post Reply