New (working !) UART to communicate with the raspberry pi
This commit is contained in:
		@@ -27,12 +27,12 @@ Pins used:
 | 
				
			|||||||
 * A5 : Ultimate GPS FeatherWing EN (enabe/disable GPS power)
 | 
					 * A5 : Ultimate GPS FeatherWing EN (enabe/disable GPS power)
 | 
				
			||||||
 * I2C SDA/SCL : BME280 sensor
 | 
					 * I2C SDA/SCL : BME280 sensor
 | 
				
			||||||
 * D5 : RW / RO jumper
 | 
					 * D5 : RW / RO jumper
 | 
				
			||||||
 * D10, D11 : UART TX & RX to Raspberry pi (115200 baudrate)
 | 
					 * A2, A3 : UART TX & RX to Raspberry pi (115200 baudrate)
 | 
				
			||||||
 * D9 : to EN pin on Raspberry Lipo SHIM
 | 
					 * D9 : to EN pin on Raspberry Lipo SHIM
 | 
				
			||||||
 * D13 : onboard LED (as RW/RO indicator)
 | 
					 * D13 : onboard LED (as RW/RO indicator)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Back pins diagramm:
 | 
					Back pins diagramm:
 | 
				
			||||||
    D05 D10 D11 D09 NC_
 | 
					    D05 A2  A3  D09 NC_
 | 
				
			||||||
    GND GND SCL SDA 3V3
 | 
					    GND GND SCL SDA 3V3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Git repository :
 | 
					Git repository :
 | 
				
			||||||
@@ -305,8 +305,8 @@ if gps_enable:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Second UART to communicate with raspberry pi (throught GPIO)
 | 
					# Second UART to communicate with raspberry pi (throught GPIO)
 | 
				
			||||||
if send_json_data:
 | 
					if send_json_data:
 | 
				
			||||||
    rpi_uart = UART(board.D10, board.D11,
 | 
					    rpi_uart = UART(board.A2, board.A3,
 | 
				
			||||||
                    baudrate=9600, timeout=2000, parity=None)
 | 
					                    baudrate=115200, timeout=2000)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Set onboard Neopixel : used as atmo data output
 | 
					# Set onboard Neopixel : used as atmo data output
 | 
				
			||||||
#  brightness is fixed to 1 to spare some memory. Use neopixel_max_value instead
 | 
					#  brightness is fixed to 1 to spare some memory. Use neopixel_max_value instead
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user