Search found 195 matches

by shaoziyang
Tue Aug 21, 2018 3:00 am
Forum: General Discussion and Questions
Topic: Calculation benchmark of micropython in different hardware
Replies: 0
Views: 23

Calculation benchmark of micropython in different hardware

I have made a compare of calculation benchmark of micropython in different hardware, I hope it will be helpful to you.

Because forum does not support table, so I put result in a picture.
benchmark.jpg
benchmark.jpg (64.3 KiB) Viewed 18 times
runtest.zip
(631 Bytes) Downloaded 5 times
by shaoziyang
Mon Aug 20, 2018 7:47 am
Forum: The micro:bit
Topic: arm thumb2 assembly
Replies: 3
Views: 72

Re: arm thumb2 assembly

from microbit import * display.show('S') def get_serial_number(type=hex): NRF_FICR_BASE = 0x10000000 DEVICEID_INDEX = 25 # deviceid[1] @micropython.asm_thumb def reg_read(r0): ldr(r0, [r0, 0]) return type(reg_read(NRF_FICR_BASE + (DEVICEID_INDEX*4))) while True: if button_a.was_pressed(): display.s...
by shaoziyang
Mon Aug 20, 2018 3:25 am
Forum: Other Boards
Topic: Nucleo-H743ZI firmware is not stability
Replies: 0
Views: 49

Nucleo-H743ZI firmware is not stability

I found Nucleo-H743ZI firmware is not very stability, sometimes firmware can't start, REPL did not appear, and blue LED become darken.

It can only recover re-flash firmware again using ST-Link.
by shaoziyang
Sun Aug 19, 2018 1:06 am
Forum: The micro:bit
Topic: Is your micro:bit in the wrong orientation
Replies: 2
Views: 49

Re: Is your micro:bit in the wrong orientation

It's great!

I found it can only run in new version miccropython, old version will cause memory alloc error.
by shaoziyang
Thu Aug 09, 2018 6:04 am
Forum: Other Boards
Topic: STM32F4 Discovery
Replies: 2
Views: 88

Re: STM32F4 Discovery

STM32F4 Discovery using different accelerometer sensor, not same as pyboard. You may try import STAccel.

And STM32F4 Discovery also not enable servo module. If you need it, you must modify mpconfigboard.h and add #define MICROPY_HW_ENABLE_SERVO (1), then rebuild source.
by shaoziyang
Sun Aug 05, 2018 7:01 am
Forum: The micro:bit
Topic: 5V tolerance of Micro Bit
Replies: 3
Views: 79

Re: 5V tolerance of Micro Bit

micro:bit use nRF51822 microcontroller, supply voltage range is 1.8 to 3.6v, and VIO is 0 to 3.6V, so it can tolerance 5V.
by shaoziyang
Tue Jul 31, 2018 4:08 pm
Forum: The MicroPython pyboard
Topic: Does pyboard drive neopixel use any GPIO?
Replies: 0
Views: 61

Does pyboard drive neopixel use any GPIO?

Does pyboard may drive neopixel use any GPIO? Not using SPI bus?
by shaoziyang
Fri Jul 27, 2018 2:27 am
Forum: The MicroPython pyboard
Topic: pyboard ADC bug?
Replies: 7
Views: 145

Re: pyboard ADC bug?

dhylands wrote:
Thu Jul 26, 2018 3:32 pm
You wouldn't by chance be using a PYBLITE ? Is has the pins A0/A1 swapped with A2/A3 relative to the pyboard,
I have using a board like pybv10, not PYBLITE. I have not meat this problem before, when I using pyb.delay() it will made ADC convert inaccurate. I will try old version firmware.
by shaoziyang
Thu Jul 26, 2018 6:49 am
Forum: The MicroPython pyboard
Topic: pyboard ADC bug?
Replies: 7
Views: 145

Re: pyboard ADC bug?

When I not using pyb.delay() or time.sleep(), ADC is working. paste mode; Ctrl-C to cancel, Ctrl-D to finish === from pyb import ADC, Pin === === def _delay(num): === while num>0: === num-=1 === === Vso = ADC(Pin('A0')) === === for i in range(1000): === Vso.read() === _delay(100000) 1979 2019 2035 2...
by shaoziyang
Thu Jul 26, 2018 6:37 am
Forum: The MicroPython pyboard
Topic: pyboard ADC bug?
Replies: 7
Views: 145

Re: This works here...

Well, this works here (link pins X1 and X5): import pyb dac = pyb.DAC(1) dac.write(128) Vso = pyb.ADC(pyb.Pin('A0')) while 1: Vso.read() pyb.delay(200) Produces 2047 2045 2046 2043 2046 2045 2047 2045 2047 2046 2049 2038 2048 So either something is wrong with your setup or you have a dmaged board. ...