From d9d6d8058899ecf2bac7ecc664ac6c5fba84178b Mon Sep 17 00:00:00 2001 From: Pierrick C Date: Sun, 12 Aug 2018 17:09:47 +0200 Subject: [PATCH] Add info about pins usage and some tweak to try to debug 2d UART (to raspberry pi) --- circuitpython/code/main.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/circuitpython/code/main.py b/circuitpython/code/main.py index 98f2b19..f35896f 100644 --- a/circuitpython/code/main.py +++ b/circuitpython/code/main.py @@ -22,6 +22,19 @@ Use with: * Adafruit Ultimate GPS FeatherWing * Bosch BME280 sensor (air temperature, humidity, atmospheric pressure) on I2C +Pins used: + * TX/RX : Ultimate GPS FeatherWing (data) + * A5 : Ultimate GPS FeatherWing EN (enabe/disable GPS power) + * I2C SDA/SCL : BME280 sensor + * D5 : RW / RO jumper + * D10, D11 : UART TX & RX to Raspberry pi (115200 baudrate) + * D9 : to EN pin on Raspberry Lipo SHIM + * D13 : onboard LED (as RW/RO indicator) + +Back pins diagramm: + D05 D10 D11 D09 NC_ + GND GND SCL SDA 3V3 + Git repository : https://framagit.org/arofarn/Cameteo @@ -293,7 +306,7 @@ if gps_enable: # Second UART to communicate with raspberry pi (throught GPIO) if send_json_data: rpi_uart = UART(board.D10, board.D11, - baudrate=115200, timeout=2000) + baudrate=9600, timeout=2000, parity=None) # Set onboard Neopixel : used as atmo data output # brightness is fixed to 1 to spare some memory. Use neopixel_max_value instead @@ -331,6 +344,7 @@ while True: data.show() if send_json_data: rpi_uart.write(data.json + '\n') + print(data.json + '\n') if backup_data: data.write_on_flash() if data_to_neopixel: