Search found 4 matches

by Herve_14
Sun Jan 31, 2021 2:37 pm
Forum: micro:bit boards
Topic: Problem w. microbit V2 and uart
Replies: 0
Views: 2666

Problem w. microbit V2 and uart

Hi.. I have a problem w/ uart microbit's V2 uart. This simple test code works fine w V1.5 but i get error 11 with V2 at line "Buf_Uart=uart.read()" or "uart.readinto(Buf_Uart)" : from microbit import * Buf_Uart=bytearray(20) Entete_Trame ="ABCDE" while True : if uart.any() : #Buf_Uart=uart.read() #e...
by Herve_14
Fri Jan 22, 2021 6:44 am
Forum: micro:bit boards
Topic: Problem with i2c port with V2 Microbit board
Replies: 4
Views: 3977

Re: Problem with i2c port with V2 Microbit board

Hi Jimmo It's better now.. i can use the i2c port w/ the default pins (19/SCL & 20/SDA) .. unlike V1.5 board you can't use the others pins : i2c.init(400000 ,sda=pin14,scl=pin13) for example.. i2c.scan() doesn't work on V2 board, it's not a big problem.. it's just a tool .. (there is an issue on sup...
by Herve_14
Wed Jan 20, 2021 8:19 pm
Forum: micro:bit boards
Topic: Problem with i2c port with V2 Microbit board
Replies: 4
Views: 3977

Re: Problem with i2c port with V2 Microbit board

Hi, thanks for for the reply... Yes i have tested lot of configuration... alone or connected to a breaboard w/ sensor (MPU6050).. I also changed the pin and frequency ( i2c.init(100000,sda=pin14,scl=pin13) ).. every test works fine w/ the V1.5 board.. I looking for the V2 schematic to understand... ...
by Herve_14
Wed Jan 20, 2021 5:36 pm
Forum: micro:bit boards
Topic: Problem with i2c port with V2 Microbit board
Replies: 4
Views: 3977

Problem with i2c port with V2 Microbit board

Hi, I have a microbit V2 board but the script that run fine with V1.5 doesn't run anymore because i have a problem w/ i2c on V2. When i run i2c.scan() on v2 board (stand alone) i get : >>> i2c.scan() [9, 12, 14, 17, 19, 21, 23, 26, 28, 31, 33, 36, 38, 41, 43, 46, 49, 51, 53, 55, 57, 59, 61, 64, 66, ...