Search found 96 matches

by zaord
Thu Mar 24, 2022 9:03 pm
Forum: MicroPython pyboard
Topic: I2c conections beetween pyboard and accelerometer W61P
Replies: 0
Views: 10254

I2c conections beetween pyboard and accelerometer W61P

Hi ! I try to get working the accelerometer W61P with micropython. The documentation of all the i2c adresses are described here : https://drive.google.com/file/d/1d0UI3RfV_Z70K93uUrvJmF-kut96CMgR/view?usp=sharing My verry simple code is here : from machine import Pin, I2C import utime # construct sp...
by zaord
Wed Jan 26, 2022 9:09 pm
Forum: MicroPython pyboard
Topic: Control a pyboard by another pyboard over UART
Replies: 12
Views: 34535

Re: Control a pyboard by another pyboard over UART

Ok, this i understood, but if I do that on the two pyboard, then they reset both.
I tryied to do a simple opération from one pyboard to onother but nothing works from what I tryied...
I don't know how to send request to the pyboard with uart on the 4 uart port after activate it ...
by zaord
Tue Jan 25, 2022 2:21 pm
Forum: MicroPython pyboard
Topic: Control a pyboard by another pyboard over UART
Replies: 12
Views: 34535

Re: Control a pyboard by another pyboard over UART

I don't really understand the pyb.repl_uart() function. I would like to execute the basic summ opération (2+1) on a pyboard 2 through uart from a pyboard 1 script. I tried this : On the pyboard1 : import pyb repl_uart = pyb.UART(4, 115200) repl_uart.write("1+2") # the to execute On the pyboard2 : im...
by zaord
Tue Jan 25, 2022 11:08 am
Forum: MicroPython pyboard
Topic: Control a pyboard by another pyboard over UART
Replies: 12
Views: 34535

Re: Control a pyboard by another pyboard over UART

Works fine,
Do you have any idaea how can I execute a program on the pyb2 from the pyb1 and check when the pyb2 is ready (it have finish to execute the program)
I don't know if uart is similar to rshell with Cpython and the follow / no_follow commands ...
by zaord
Mon Jan 24, 2022 11:50 am
Forum: MicroPython pyboard
Topic: Control a pyboard by another pyboard over UART
Replies: 12
Views: 34535

Re: Control a pyboard by another pyboard over UART

Ha, Peter, just becaise I dit not know the possibility of Uart :)
Do you have a code that I could test for connecting 2 pyboard with uart ??
by zaord
Mon Jan 24, 2022 7:26 am
Forum: MicroPython pyboard
Topic: Control a pyboard by another pyboard over UART
Replies: 12
Views: 34535

Re: Control a pyboard by another pyboard over I2C

Hi, Can you share you code for the micropython side ?
by zaord
Sat Jan 22, 2022 11:09 am
Forum: MicroPython pyboard
Topic: Control a pyboard by another pyboard over UART
Replies: 12
Views: 34535

Re: Control a pyboard by another pyboard over I2C

Hi Peter, Do I need to use uasyncio absolutely ?
by zaord
Sat Jan 22, 2022 9:48 am
Forum: MicroPython pyboard
Topic: Control a pyboard by another pyboard over UART
Replies: 12
Views: 34535

Control a pyboard by another pyboard over UART

Hi here, For a project, I can't manage PWM control and measurement on a same pyboard. I would like to split the work into two micropython system connected like the pyboard.py does. I plan to use I2C protocol. At the moment I wants to control the pwm pyboard by using commands like PWM_1_FC_CONTROL(1,...
by zaord
Sat Jan 08, 2022 12:40 pm
Forum: MicroPython pyboard
Topic: Make realtime Discrate fournier transform from i2S mic
Replies: 25
Views: 85261

Re: Make realtime Discrate fournier transform from i2S mic

With a bandpass filter having better high frequency rejection you would remove the DC component and the ripple. There are various ways to measure the frequency. DFT may well be the answer, but it does have the drawback that the result comprises discrete frequency bins with finite size, so precision...
by zaord
Sat Jan 08, 2022 12:38 pm
Forum: MicroPython pyboard
Topic: Json serialization of ulab np.array generate syntax error
Replies: 2
Views: 18675

Re: Json serialization of ulab np.array generate syntax error

I did not know but ujson can't handle arrays. So,Yes i did that, and now i am using bytearray. Damien Georges solved my problem here : https://github.com/micropython/micropython/issues/8139#issuecomment-1006264156 You need to evaluate the returned data, like this (on the PC): mes_expr = pyb.exec("pr...