Search found 48 matches

by c45713
Thu Oct 11, 2018 8:48 pm
Forum: Other Boards
Topic: [nRF5x] How to connect using WebBluetooth REPL?
Replies: 37
Views: 8066

Re: How to connect with Bluetooth REPL using nRF UART app?

I cannot see any error in your bluetooth_conf.h. The device name advertised should be "mpus". Can you see this when scanning for BLE device using a PC or other scanner app? Also, make sure that you also flash the SoftDevice before "make flash", by issuing "make sd", else the app will not run at all....
by c45713
Thu Aug 30, 2018 9:14 pm
Forum: Other Boards
Topic: [nfr52] battery level
Replies: 2
Views: 1263

Re: [nfr52] battery level

I took a look at this. I also get very strange results on the nrf52 when BLE is enabled. My value is reported to be 0x30 = 48% on coincell using the pca10040. I used the following code for testing: from machine import RTCounter, ADC from ubluepy import Service, Characteristic, UUID, Peripheral, cons...
by c45713
Sat Aug 11, 2018 7:41 pm
Forum: Other Boards
Topic: [nrf52]
Replies: 2
Views: 758

Re: [nrf52]

I'm not sure of your use-case, but if you are thinking of running the SD without LF XTAL, you could try running it with RC. This can be achived by adding the CFLAGS += -DBLUETOOTH_LFCLK_RC in the mpconfigboard.mk For inspiration this is a similar configuration: https://github.com/micropython/micropy...
by c45713
Mon Jul 17, 2017 11:00 pm
Forum: Other Boards
Topic: Porting to Nordic Semiconductor nRF52
Replies: 45
Views: 28306

Re: Porting to Nordic Semiconductor nRF52

Hi Oliver, If i understand you correctly, you are looking for two things, division of integers and floating point numbers. Division of integers are available already now, using the syntax "//". I believe it's called something like floor division or integer division in python3. Let me put up an examp...
by c45713
Fri Jun 30, 2017 10:52 pm
Forum: Programs, Libraries and Tools
Topic: Bluetooth Low Energy (BLE) library
Replies: 11
Views: 10941

Re: bluetooth low energy

I have not noticed this post before now... This is great work! In parallel i have also implemented a quite similar API for nrf5x (nordic semiconductor) using bluepy as base. I can see an opportunity to sync our bluepy derivatives for micropython to make it API compatible in time. This way we could p...
by c45713
Fri Jun 30, 2017 10:17 pm
Forum: Other Boards
Topic: Porting to Nordic Semiconductor nRF52
Replies: 45
Views: 28306

Re: Porting to Nordic Semiconductor nRF52

The code for the PR is hosted at https://github.com/tralamazza/micropython/tree/master

There is a README.md tutorial in the nrf/ folder, which explains how to compile and flash the various targets. Also, to show some basics, some scripts have been added to the nrf/examples.
by c45713
Wed May 10, 2017 8:42 pm
Forum: Other Boards
Topic: Porting to Nordic Semiconductor nRF52
Replies: 45
Views: 28306

Re: Porting to Nordic Semiconductor nRF52

Hi oliverr, It's great to hear that you are playing around with the port! :D I don't suppose anybody could help shed some light on this / point me to where I should be raising this issue? Any advice would be greatly appreciated! Feedback taken! Daniel has opened the "Issue tracker" in the repo ;) We...
by c45713
Wed May 03, 2017 8:36 pm
Forum: Other Boards
Topic: Porting to Nordic Semiconductor nRF52
Replies: 45
Views: 28306

Re: Porting to Nordic Semiconductor nRF52

Hi Matt, When I find a spare ten minutes I'll submit a PR for a readme. That would be awesome! :D Right now there is some kind of documentation in the wiki of the repo, but i guess a readme.md in the nrf5 folder would be very nice! Now to figure out what to build with this board... ;) Haha! That's a...
by c45713
Sat Apr 29, 2017 6:08 pm
Forum: Other Boards
Topic: Porting to Nordic Semiconductor nRF52
Replies: 45
Views: 28306

Re: Porting to Nordic Semiconductor nRF52

Awesome, Matt !!!!! :D :D I'm so happy that you got it running! Nothing is better than seeing that REPL prompt! ;) The issue you saw should be fixed now. I have updated main.c to work with two LEDs only. So, the LED(3) error should be gone. The thing is that there is a portion of code inside the mai...
by c45713
Tue Apr 25, 2017 10:34 pm
Forum: Other Boards
Topic: Porting to Nordic Semiconductor nRF52
Replies: 45
Views: 28306

Re: Porting to Nordic Semiconductor nRF52

Should work now. :D I found the correct UART RX/TX pins. Also got the serial upload to work on my side. I believe the max size is even less than 156kb for serial upload. I'll start looking into how to get ubluepy module fit inside the DFU image next. If you install the nrfutiils from the previous po...