|
From: | Felix Ruess |
Subject: | Re: [Paparazzi-devel] Sensirion SHT75 on APOGEE |
Date: | Sat, 17 May 2014 00:13:08 +0200 |
Hi,if the timing of the bitbanging is not a problem it should be fairly easy to rewrite the driver to use mcu_periph/gpio (which is the same on lpc21 and stm32) instead of direct register access...Cheers, FelixOn Fri, May 16, 2014 at 11:01 PM, Martin Mueller <address@hidden> wrote:
Hi,
the SHT75 driver would need some changes to work with any non-LPC based autopilot. It uses the LPCs GPIO registers directly in humid_sht.h as the SHT75 only supports a proprietary serial protocol, close but not exactly I2C. You can use the SHT25 which is genuine I2C.
Martin
On 05/16/2014 09:55 AM, Gautier Hattenberger wrote:
Hi,
This module is only for LPC based boards (umarim, tiny). You can try to
use humid_sht_i2c.xml which seems to be for SHT25, no idea if it also
works on SHT75.
Gautier
Le 16/05/2014 09:00, Andreas Philipp a écrit :
Dear list,
trying to compile an air frame file for the APOGEE including the
module humid_sht.xml (for the Sensirion SHT75 humidity and temperature
sensor described at
http://wiki.paparazziuav.org/wiki/Module/Sensirion_SHT75) like this:
---------------------------------------------------------------------
<modules>
[...]
<load name="humid_sht.xml"/>
</modules>
<firmware name="fixedwing">
<target name="sim" board="pc"/>
<target name="ap" board="apogee_1.0_chibios"/>
[...]
</firmware>
---------------------------------------------------------------------
ends in:
---------------------------------------------------------------------
[...]
Compiling humid_sht.c
modules/meteo/humid_sht.c:10:21: fatal error: LPC21xx.h: No such file
or directory
#include "LPC21xx.h"
^
compilation terminated.
make[1]: ***
[/home/philipan/paparazzi/var/aircrafts/es_apogee/ap/obj/modules/meteo/humid_sht.o]
Error 1
make[1]: Leaving directory `/home/philipan/paparazzi/sw/airborne'
make: *** [ap.compile] Error 2
make: Leaving directory `/home/philipan/paparazzi'
FAILED 'make -C /home/philipan/paparazzi -f Makefile.ac
AIRCRAFT=es_apogee ap.compile' with code 2
---------------------------------------------------------------------
Please find the air-frame file and the complete compile log in the
attachments. It seems it uses special files for boards with the LPC21
processor. Is it possible to run this module plugged in at AUX on the
Apogee board (as it is done on the Umarim as described at
http://wiki.paparazziuav.org/wiki/SUMO/prepare_electronics ) ?
Thanks for any help!
Andreas
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
[Prev in Thread] | Current Thread | [Next in Thread] |