Thanks Heinrich! By using the
manual and redefining the pins, was able to get it working.
I was able to get it working in the I2C1 slot on the Umarim lite v2.
However, once the SHT 75 was working properly, the IMU unfortunately
stopped working. It looks like the IMU and the I2C1 port share the
same SDA and SCL pins. Is there any way to use the I2C1 port while
keeping the IMU working properly? Otherwise, it seems odd to have an
I2C1 port if it can't be used...
I'd like to use the I2C1 slot and leave the ADC (AUX) ports open for
additional sensors. But for now, the ADC port with a 10k pull-up will
be fine.
Tim
Warmers, Heinrich wrote:
>Hi Tim,
>you have to change the used
processor pins.
>The protocol is a bit banging
type (not i2c).
>You have to change the
current clock and data protocol and change the
>used pins of the processor.
>Please read the documentation
(Phillips UM10139) of the lpc2148 to know
>how to program a pin as output
(clock) and as input output and tristate
>for the data line. You have only to change the
pin definition. But
>sometimes there are other
register words used for different pins.
>So sometimes the macros im
paparazzi code can fail.
>Heinrich
>
>Bonin, Tim A. schrieb:
>
>> I recently
switched over to a Umarim lite board, but am having trouble
>> integrating the SHT75 into it. I'm trying to use the
humid_sht module
>> to read in the data. Since
there is no ADC1 port on the Umarim lite,
>> I've tried a few things,
including redefining the pins in the header
>> files to the AUX1 and AUX
2 pins (pins 45 and 39, I think) and
>> plugging the SHT75 into the
AUX port, or by defining the pins in the
>> header file as SDA1 and
SCL1 (pins 41 and 37) and plugging the SHT
>> into the I2C1 port.
> >
>> Either way, the messages from
the SHT show a temperature of -39.66 and
>> 0.1 humidity, which would
indicate that its not getting a signal. Am
>> I assigning the wrong pins,
or maybe doing something else wrong?
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel